-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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(ecs-patterns): support propagateTags
and ecsManagedTags
#4100
Conversation
Thanks so much for taking the time to contribute to the AWS CDK ❤️ We will shortly assign someone to review this pull request and help get it
|
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
6a29773
to
3ef34d3
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure the breaking change here is justified. @deprecate
the old property (while still supporting it!), you'll get a chance to remove it when we go 2.x
.
That is to say, the "breaking change escape hatch" we have is not to be used willy-nilly. It's there if we've painted ourselves into a corner that we REALLY have no other way of getting out of. A stable API should be treated as such, or the guarantee means nothing. |
I understand, IMO this breaking change would actually provide a better experience for users, as it wouldn't work today if they used that property. As you can see in the Ec2Service construct: https://github.com/aws/aws-cdk/blob/master/packages/%40aws-cdk/aws-ecs/lib/ec2/ec2-service.ts#L138, I wasn't removing the property altogether, but rather moving it into the BaseServiceProps out of the BaseServiceOptions. Ec2Service/FargateService constructs already have the property Let me know if you disagree and think this should be approached another way? |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
I guess you prefer the term |
Either way, we would have 2 properties that mean the same thing available to be used in the subclass. The properties that are currently defined:
Users can see both properties when they try to create instances of FargateService and Ec2Service. Today, we only use I think we have 2 choices:
Thoughts? |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Yep, and we will I agree that it's not clean, but we have API stability for a reason. Again, we can clean up when we release |
8a90942
to
8af7780
Compare
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
8af7780
to
84b9571
Compare
Updated the PR to implement the check, we can decide which property to deprecate and update that separately. |
@rix0rrr updated the PR to deprecate the propagateTaskTagsFrom properties. |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
Ah, conflict unfortunately :( |
ceeaac6
to
c446391
Compare
Resolved conflicts and pushed! |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
AWS CodeBuild CI Report
Powered by github-codebuild-logs, available on the AWS Serverless Application Repository |
propagateTags
and ecsManagedTags
Add propagateTaskTagsFrom and EcsManagedTags properties to constructs in ecs-patterns.
Addresses: #3979
BREAKING CHANGE:
The property PropagateTags exists in the BaseServiceOptions, while both Ec2Service and FargateService have a property PropagateTaskTagsFrom that's mapped to PropagateTags. Having both is confusing for users and doesn't really make sense to have both configurable for Ec2Service and FargateService.
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license