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(ecs-patterns): Add PlatformVersion option to ScheduledFargateTask props #12676

Merged
merged 9 commits into from
Jan 30, 2021
Merged

feat(ecs-patterns): Add PlatformVersion option to ScheduledFargateTask props #12676

merged 9 commits into from
Jan 30, 2021

Conversation

richardhughes
Copy link
Contributor

@richardhughes richardhughes commented Jan 23, 2021

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

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
@gitpod-io
Copy link

gitpod-io bot commented Jan 23, 2021

@mergify
Copy link
Contributor

mergify bot commented Jan 23, 2021

Title does not follow the guidelines of Conventional Commits. Please adjust title before merge.

Rearrange the imports into the correct order
@richardhughes richardhughes changed the title feat(ecs-patterns) Add PlatformVersion option to ScheduledFargateTask props feat(ecs-patterns): Add PlatformVersion option to ScheduledFargateTask props Jan 23, 2021
Add a new section to the readme to explain the platform version option
Change double quotes to single quotes
@NGL321 NGL321 changed the title feat(ecs-patterns): Add PlatformVersion option to ScheduledFargateTask props feat(aws-ecs-patterns): Add PlatformVersion option to ScheduledFargateTask props Jan 25, 2021
Copy link
Contributor

@piradeepk piradeepk left a 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.

@piradeepk piradeepk self-assigned this Jan 29, 2021
@piradeepk piradeepk added @aws-cdk/aws-ecs-patterns Related to ecs-patterns library p1 pr/do-not-merge This PR should not be merged at this time. labels Jan 29, 2021
@piradeepk piradeepk changed the title feat(aws-ecs-patterns): Add PlatformVersion option to ScheduledFargateTask props feat(ecs-patterns): Add PlatformVersion option to ScheduledFargateTask props Jan 29, 2021
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
Copy link
Contributor

@piradeepk piradeepk left a 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
@richardhughes
Copy link
Contributor Author

All fixed, Thanks @piradeepk :)

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

  • CodeBuild project: AutoBuildProject6AEA49D1-qxepHUsryhcu
  • Commit ID: 28660df
  • Result: SUCCEEDED
  • Build Logs (available for 30 days)

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

Copy link
Contributor

@piradeepk piradeepk left a 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!

@piradeepk piradeepk removed p1 pr/do-not-merge This PR should not be merged at this time. labels Jan 30, 2021
@mergify
Copy link
Contributor

mergify bot commented Jan 30, 2021

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).

@mergify mergify bot merged commit 3cbf38b into aws:master Jan 30, 2021
@richardhughes richardhughes deleted the add-platform-version branch January 30, 2021 09:53
NovakGu pushed a commit to NovakGu/aws-cdk that referenced this pull request Feb 18, 2021
…k props (aws#12676)

Add the platformversion as an extra option to the Fargate Scheduled Task

closes aws#12623

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
@aws-cdk/aws-ecs-patterns Related to ecs-patterns library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

(ecs-patterns): Allow Platform Version to be set on ScheduledFargateTask
3 participants