-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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): Add PlatformVersion option to ScheduledFargateTask props #12676
Conversation
fixes #12623 - Add extra parameter to the ScheduledFargateTaskProps to allow PlatformVersion to be passed. Rearranged code to handle EC2 & Fargate lanuch types correctly
Add a new test to cover the changes in the previous commit. Tests whether the Rule Target has a defined platform version (1.4.0) rather than the default LATEST
Title does not follow the guidelines of Conventional Commits. Please adjust title before merge. |
Rearrange the imports into the correct order
Add a new section to the readme to explain the platform version option
Change double quotes to single quotes
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.
Looks good overall, had a minor comment.
packages/@aws-cdk/aws-ecs-patterns/lib/base/scheduled-task-base.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-ecs-patterns/lib/ecs/scheduled-ecs-task.ts
Outdated
Show resolved
Hide resolved
Revert the code to remove the function breaking change. EC2 Task uses old functions and the Fargate Task builds the ECS Task and then adds it to the target separately
packages/@aws-cdk/aws-ecs-patterns/lib/base/scheduled-task-base.ts
Outdated
Show resolved
Hide resolved
packages/@aws-cdk/aws-ecs-patterns/lib/ecs/scheduled-ecs-task.ts
Outdated
Show resolved
Hide resolved
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.
Had a minor comment, but looks good overall! 👍🏾
fix some PR issues and add a comment and remove the ecstask import
All fixed, Thanks @piradeepk :) |
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.
Ship it! 💯 Thanks for adding this feature @richardhughes! This is awesome!
Thank you for contributing! Your pull request will be updated from master and then merged automatically (do not update manually, and be sure to allow changes to be pushed to your fork). |
Add the platformversion as an extra option to the Fargate Scheduled Task
closes #12623
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license