Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: construct library for ECS #1041

Closed
wants to merge 113 commits into from
Closed

feat: construct library for ECS #1041

wants to merge 113 commits into from

Commits on Sep 28, 2018

  1. Ignore swp files

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    939452c View commit details
    Browse the repository at this point in the history
  2. Add ECS lib and example

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    7302a2f View commit details
    Browse the repository at this point in the history
  3. Add service and task def constructs

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    4c7127a View commit details
    Browse the repository at this point in the history
  4. WIP adding VPC/ASG

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    98749ec View commit details
    Browse the repository at this point in the history
  5. Refactor ECS demo

    - Fix linting errors
    - VPC is now an argument and not created inside the cluster
    - Link the AutoScalingGroup up to the cluster via userData
    - Give the ASG instance role the required IAM permissions
    - Extend ECS-optimized AMI table with all regions
    - Add an example configuration option to deny containers
      access to EC2 instance metadata service.
    Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    6d0942f View commit details
    Browse the repository at this point in the history
  6. Add more props on Service

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    bddfe56 View commit details
    Browse the repository at this point in the history
  7. Add TODO for AMI IDs

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    3574611 View commit details
    Browse the repository at this point in the history
  8. Weird hack?

    Was getting error:
    lib/index.ts(7,1): error TS2308: Module './cluster' has already exported
    a member named 'ClusterName'. Consider explicitly re-exporting to
    resolve the ambiguity.
    lib/index.ts(7,1): error TS2308: Module './task-definition' has already
    exported a member named 'TaskDefinitionArn'. Consider explicitly
    re-exporting to resolve the ambiguity.
    
    This seemed to make npm run build happy
    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    a63c377 View commit details
    Browse the repository at this point in the history
  9. Update example to instantiate service separately

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    b00e0dd View commit details
    Browse the repository at this point in the history
  10. WIP Add Container Definitions

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    80ba2e4 View commit details
    Browse the repository at this point in the history
  11. WIP Add other Task Def properties

    SoManyHs authored and Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    0980f52 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8648540 View commit details
    Browse the repository at this point in the history
  13. Indentation 4 -> 2

    Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    2d53d89 View commit details
    Browse the repository at this point in the history
  14. Fix type errors

    Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    dbdab86 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    ee6b427 View commit details
    Browse the repository at this point in the history
  16. Move containerdefinition to its own file

    Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    2b16dad View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    16a92c0 View commit details
    Browse the repository at this point in the history
  18. Turning ContainerDefinition into a construct

    Rico Huijbers committed Sep 28, 2018
    Configuration menu
    Copy the full SHA
    ae881c2 View commit details
    Browse the repository at this point in the history

Commits on Oct 1, 2018

  1. Configuration menu
    Copy the full SHA
    0672e6a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f93a5b View commit details
    Browse the repository at this point in the history
  3. Qualify "PlacementConstraintType" usage with package name

    Rico Huijbers committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    9b61b89 View commit details
    Browse the repository at this point in the history
  4. ECR can return itself as container image

    Rico Huijbers committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    98bf81b View commit details
    Browse the repository at this point in the history
  5. Automatically generate execution and task roles

    Rico Huijbers committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    ae1d525 View commit details
    Browse the repository at this point in the history
  6. Make taskRole public

    Rico Huijbers committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    23072a9 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    e5cc7f2 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    047eed8 View commit details
    Browse the repository at this point in the history
  9. Some work on Service

    Rico Huijbers committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    65d3f79 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    11541d3 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    fb17532 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    be8cb86 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    b8cce3a View commit details
    Browse the repository at this point in the history
  14. Fix lint errors

    SoManyHs committed Oct 1, 2018
    Configuration menu
    Copy the full SHA
    2741608 View commit details
    Browse the repository at this point in the history

Commits on Oct 2, 2018

  1. Fix lint errors

    SoManyHs committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    a901912 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    a91bda7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    51adff5 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    70ae682 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    298e0a7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    1541edd View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    a154d09 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    4b46685 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9875c6e View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    1044d1c View commit details
    Browse the repository at this point in the history
  11. Rename renderLogDriver

    SoManyHs committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    e7f8000 View commit details
    Browse the repository at this point in the history
  12. Do most of Service

    Rico Huijbers committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    e7f7b7d View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    dda869d View commit details
    Browse the repository at this point in the history
  14. Add Ulimits

    SoManyHs committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    97083dc View commit details
    Browse the repository at this point in the history
  15. Fix log driver

    SoManyHs committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    a3e3615 View commit details
    Browse the repository at this point in the history
  16. Make add* functions consistently plural

    Except for `addTmpfs`, bc `addTmpfses` is just silly
    SoManyHs committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    b913f0e View commit details
    Browse the repository at this point in the history
  17. Make load balancers respect network mode

    Rico Huijbers committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    fd21c0d View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    3b4695c View commit details
    Browse the repository at this point in the history
  19. Make add* functions consistently plural

    Except for `addTmpfs`, bc `addTmpfses` is just silly
    SoManyHs committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    187f62b View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    6912e3f View commit details
    Browse the repository at this point in the history
  21. Missing semicolons

    SoManyHs committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    2bf2d57 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    f477d8d View commit details
    Browse the repository at this point in the history
  23. Change 'addContainer' to take the props and return ContainerDefinition.

    Add (start of) integ test.
    Rico Huijbers committed Oct 2, 2018
    Configuration menu
    Copy the full SHA
    b947f51 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    ab83d35 View commit details
    Browse the repository at this point in the history
  25. Configuration menu
    Copy the full SHA
    30cb925 View commit details
    Browse the repository at this point in the history

Commits on Oct 3, 2018

  1. Configuration menu
    Copy the full SHA
    c64e184 View commit details
    Browse the repository at this point in the history
  2. Remove Service Role, fix DesiredCount default, make task memory defin…

    …ition work
    Rico Huijbers committed Oct 3, 2018
    Configuration menu
    Copy the full SHA
    566aac3 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    96e3105 View commit details
    Browse the repository at this point in the history
  4. Starting on port mapping defaults

    Rico Huijbers committed Oct 3, 2018
    Configuration menu
    Copy the full SHA
    48cd8d4 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e311293 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    4ffed09 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2018

  1. Make ALB listener ACTUALLY default to 'true'

    Rico Huijbers committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    97d3db3 View commit details
    Browse the repository at this point in the history
  2. Add dependency on listener

    This ensures that the dependency resolution by CFN works properly when
    attaching a load balancer to an ECS service
    SoManyHs committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    4f9b548 View commit details
    Browse the repository at this point in the history
  3. Integ test for Fargate service

    Notes:
    - Loadbalancer needs to be specified to be "internetFacing"
    - Cannot modify LoadBalancer on service once service has been created;
      can get around this by modifying ID of LB
    - Listener must be set to open
    SoManyHs committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    e8aa186 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    eb4a562 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e06a3ec View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    95b8d84 View commit details
    Browse the repository at this point in the history
  7. Starting on port mapping defaults

    Rico Huijbers authored and SoManyHs committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    5595707 View commit details
    Browse the repository at this point in the history
  8. Make ALB listener ACTUALLY default to 'true'

    Rico Huijbers authored and SoManyHs committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    a1b78f4 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    6f08406 View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    5312362 View commit details
    Browse the repository at this point in the history
  11. Add dependency on listener

    This ensures that the dependency resolution by CFN works properly when
    attaching a load balancer to an ECS service
    SoManyHs committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    6f42026 View commit details
    Browse the repository at this point in the history
  12. Integ test for Fargate service

    Notes:
    - Loadbalancer needs to be specified to be "internetFacing"
    - Cannot modify LoadBalancer on service once service has been created;
      can get around this by modifying ID of LB
    - Listener must be set to open
    SoManyHs committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    1983858 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4ea6b8b View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    e34d515 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    bf90c27 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    ffbad9f View commit details
    Browse the repository at this point in the history
  17. Application AutoScaling WIP

    Rico Huijbers committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    d1b22bd View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    7840634 View commit details
    Browse the repository at this point in the history
  19. Make declarative example work

    Rico Huijbers committed Oct 4, 2018
    Configuration menu
    Copy the full SHA
    d1ec640 View commit details
    Browse the repository at this point in the history

Commits on Oct 5, 2018

  1. Configuration menu
    Copy the full SHA
    36e1ba2 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    178898f View commit details
    Browse the repository at this point in the history
  3. Clean up fargate integ test

    SoManyHs committed Oct 5, 2018
    Configuration menu
    Copy the full SHA
    b73bdad View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    049557e View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    2295ef2 View commit details
    Browse the repository at this point in the history
  6. Fix ingress/containerPort on LBs

    Allows bridge network mode to work
    SoManyHs committed Oct 5, 2018
    Configuration menu
    Copy the full SHA
    f34c23c View commit details
    Browse the repository at this point in the history
  7. Cleanup example

    SoManyHs committed Oct 5, 2018
    Configuration menu
    Copy the full SHA
    c491a1d View commit details
    Browse the repository at this point in the history
  8. Add cloudwatch metrics

    SoManyHs committed Oct 5, 2018
    Configuration menu
    Copy the full SHA
    430f81e View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    dca6972 View commit details
    Browse the repository at this point in the history

Commits on Oct 12, 2018

  1. Merge remote-tracking branch 'origin/master' into ecs-demo

    Rico Huijbers committed Oct 12, 2018
    Configuration menu
    Copy the full SHA
    cf528d6 View commit details
    Browse the repository at this point in the history
  2. Fix libs to be in line with latest API changes from master

    Rico Huijbers committed Oct 12, 2018
    Configuration menu
    Copy the full SHA
    ef51786 View commit details
    Browse the repository at this point in the history

Commits on Oct 15, 2018

  1. Merge remote-tracking branch 'origin/master' into ecs-demo

    Rico Huijbers committed Oct 15, 2018
    Configuration menu
    Copy the full SHA
    c3b543a View commit details
    Browse the repository at this point in the history

Commits on Oct 17, 2018

  1. Fix build errors

    Rico Huijbers committed Oct 17, 2018
    Configuration menu
    Copy the full SHA
    64b6d06 View commit details
    Browse the repository at this point in the history
  2. Merge remote-tracking branch 'origin/master' into ecs-demo

    Rico Huijbers committed Oct 17, 2018
    Configuration menu
    Copy the full SHA
    af5a2a4 View commit details
    Browse the repository at this point in the history

Commits on Oct 22, 2018

  1. Configuration menu
    Copy the full SHA
    51097fd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7b19dd2 View commit details
    Browse the repository at this point in the history

Commits on Oct 25, 2018

  1. Add ability to specify cluster size

    Sets maxSize and desiredCapabity on ASG for ECS Cluster.
    NOTE: Should we set minSize to 0 or 1? See ecs-cli default)
    SoManyHs committed Oct 25, 2018
    Configuration menu
    Copy the full SHA
    9bea6be View commit details
    Browse the repository at this point in the history

Commits on Oct 26, 2018

  1. Merge remote-tracking branch 'origin/master' into ecs-demo

    Rico Huijbers committed Oct 26, 2018
    Configuration menu
    Copy the full SHA
    4ab455c View commit details
    Browse the repository at this point in the history
  2. feat(aws-ecs): add Task AutoScaling to Service

    This uses the @aws-cdk/aws-applicationautoscaling library to add
    Task AutoScaling facilities to ECS and Fargate services.
    Rico Huijbers committed Oct 26, 2018
    Configuration menu
    Copy the full SHA
    be9f447 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    2eab513 View commit details
    Browse the repository at this point in the history

Commits on Oct 29, 2018

  1. Configuration menu
    Copy the full SHA
    57857a9 View commit details
    Browse the repository at this point in the history
  2. Unit tests for Cluster

    SoManyHs committed Oct 29, 2018
    Configuration menu
    Copy the full SHA
    4cf23fc View commit details
    Browse the repository at this point in the history

Commits on Oct 30, 2018

  1. Configuration menu
    Copy the full SHA
    37d3c4e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    1ad3669 View commit details
    Browse the repository at this point in the history
  3. WIP Unit tests on EcsTaskDefinition

    TaskExecutionRole not being set -- lazy evaluation of executionRole on
    TaskDef not working on private call to generateExecutionRole?
    
    Also weird issue with importing aws-iam
    SoManyHs committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    78d2a49 View commit details
    Browse the repository at this point in the history
  4. WIP Unit tests for EcsService

    Add default deployment configuration
    SoManyHs committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    ca61a74 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    98345b3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    35ebd9c View commit details
    Browse the repository at this point in the history
  7. Merge branch 'huijbers/autoscaling' into ecs-demo

    Rico Huijbers committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    09a182a View commit details
    Browse the repository at this point in the history
  8. Add docs and readme and a couple of tests

    Rico Huijbers committed Oct 30, 2018
    Configuration menu
    Copy the full SHA
    2fd2e7c View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    9825127 View commit details
    Browse the repository at this point in the history