Skip to content

feat(ecs-patterns) add idle timeout to multi alb fargate and ec2 services#21266

Merged
mergify[bot] merged 10 commits intoaws:mainfrom
michaeldrey:multi_alb_idle_timeout
Aug 1, 2022
Merged

feat(ecs-patterns) add idle timeout to multi alb fargate and ec2 services#21266
mergify[bot] merged 10 commits intoaws:mainfrom
michaeldrey:multi_alb_idle_timeout

Conversation

@michaeldrey
Copy link
Copy Markdown
Contributor

This PR exposes the idleTime property for both EC2 and Fargate multi ALB services. Per the CFN specs, I have set the idleTimeout to default to 60 seconds, and it cannot exceed 4000 seconds.

If no value is provided we set the value to undefined. We do this because:

  1. The default value is set for the user via the CFN. The behavior for the property is to either add a value or leave it undefined and let CFN set the default. See here

  2. Setting a default causes snapshot tests to fail for dependent services as we're adding a new attribute to the cloudformation.

A README entry has been created for this property.

Relates to
#21221
#21261

closes #12913

All Submissions:

Adding new Unconventional Dependencies:

  • This PR adds new unconventional dependencies following the process described here

New Features

  • Have you added the new feature to an integration test?
    • Did you use yarn integ to deploy the infrastructure and generate the snapshot (i.e. yarn integ without --dry-run)?

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@gitpod-io
Copy link
Copy Markdown

gitpod-io bot commented Jul 21, 2022

@aws-cdk-automation aws-cdk-automation requested a review from a team July 21, 2022 17:04
@github-actions github-actions bot added effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2 labels Jul 21, 2022
@michaeldrey michaeldrey changed the title feat(ecs-patterns) adds idle timeout to multi alb fargate and ec2 services feat(ecs-patterns) add idle timeout to multi alb fargate and ec2 services Jul 22, 2022
@michaeldrey
Copy link
Copy Markdown
Contributor Author

Do not merge until #21261 is completed.

@TheRealAmazonKendra TheRealAmazonKendra self-assigned this Jul 22, 2022
Copy link
Copy Markdown
Contributor

@TheRealAmazonKendra TheRealAmazonKendra left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just assigning this to myself and marking it as changes requested to indicate to my team mates that we're already engaging on this, now split into mulitple PRs.

@TheRealAmazonKendra
Copy link
Copy Markdown
Contributor

@Mergifyio update

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 29, 2022

update

✅ Branch has been successfully updated

mergify bot pushed a commit that referenced this pull request Jul 30, 2022
…21261)

This PR exposes the idleTime property for both EC2 and Fargate ALB services. [Per the CFN specs](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-elasticloadbalancingv2-loadbalancer-loadbalancerattributes.html), I have set the idleTimeout to default to 60 seconds, and it cannot exceed 4000 seconds.

If no value is provided we set the value to undefined. We do this because:

1. The default value is set for the user via the CFN. The behavior for the property is to either add a value or leave it undefined and let CFN set the default.[ See here](https://github.com/aws/aws-cdk/blob/main/packages/%40aws-cdk/aws-elasticloadbalancingv2/lib/alb/application-load-balancer.ts#L102)

2. Setting a default causes snapshot tests to fail for dependent services as we're adding a new attribute to the cloudformation.

A README entry has been created for this property.

Relates to
#21221
#21266

closes #12913
----

### All Submissions:

* [x] Have you followed the guidelines in our [Contributing guide?](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md)

### Adding new Unconventional Dependencies:

* [ ] This PR adds new unconventional dependencies following the process described [here](https://github.com/aws/aws-cdk/blob/main/CONTRIBUTING.md/#adding-new-unconventional-dependencies)

### New Features

* [x] Have you added the new feature to an [integration test](https://github.com/aws/aws-cdk/blob/main/INTEGRATION_TESTS.md)?
	* [x] Did you use `yarn integ` to deploy the infrastructure and generate the snapshot (i.e. `yarn integ` without `--dry-run`)?

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
@michaeldrey
Copy link
Copy Markdown
Contributor Author

@Mergifyio update

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 1, 2022

update

❌ Base branch update has failed

Details

merge conflict between base and head
err-code: 251F3

@michaeldrey
Copy link
Copy Markdown
Contributor Author

@Mergifyio update

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 1, 2022

update

☑️ Nothing to do

Details
  • -closed [:pushpin: update requirement]
  • #commits-behind>0 [:pushpin: update requirement]

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review August 1, 2022 04:35

Pull request has been modified.

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 1, 2022

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

@aws-cdk-automation
Copy link
Copy Markdown
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildv2Project1C6BFA3F-wQm2hXv2jqQv
  • Commit ID: dcde635
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

Powered by github-codebuild-logs, available on the AWS Serverless Application Repository

@mergify mergify bot merged commit e2b3e23 into aws:main Aug 1, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Aug 1, 2022

Thank you for contributing! Your pull request will be updated from main and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ApplicationLoadBalancedFargateService CDK construct: currently there is no way to specify idleTimeout for the load balancer

3 participants