Skip to content

fix(ecs): ec2Service placement strategies use incorrect casing which causes drift#20946

Merged
mergify[bot] merged 11 commits intoaws:mainfrom
tea-418:main
Jul 30, 2022
Merged

fix(ecs): ec2Service placement strategies use incorrect casing which causes drift#20946
mergify[bot] merged 11 commits intoaws:mainfrom
tea-418:main

Conversation

@tea-418
Copy link
Copy Markdown
Contributor

@tea-418 tea-418 commented Jul 1, 2022

Fixes #20812

Switches lowercase cpu and memory placement strategy to uppercase as required by cloudformation:
https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-ecs-service-placementstrategy.html


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 1, 2022

@github-actions github-actions bot added bug This issue is a bug. p2 labels Jul 1, 2022
@aws-cdk-automation aws-cdk-automation requested a review from a team July 1, 2022 07:52
@peterwoodworth peterwoodworth changed the title fix(ecs): aws_ecs_PlacementStrategy.packedByCpu() generating faulty cf template fix(ecs): ec2Service placement strategies use incorrect casing which causes drift Jul 7, 2022
@peterwoodworth peterwoodworth added p1 effort/small Small work item – less than a day of effort and removed p2 labels Jul 7, 2022
Copy link
Copy Markdown
Contributor

@peterwoodworth peterwoodworth left a comment

Choose a reason for hiding this comment

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

It seems we aren't testing this property in any integration tests yet - we should be testing deployment of all properties we set. Could you whip up a quick integration test, or edit an existing one to use this property?

@mergify mergify bot dismissed peterwoodworth’s stale review July 7, 2022 11:16

Pull request has been modified.

@tea-418
Copy link
Copy Markdown
Contributor Author

tea-418 commented Jul 8, 2022

Hey @peterwoodworth Thanks for your response!
I tried creating an integ test. Unfortunately I am unable to run it myself since I dont have no personal account and the one from work is a bit restrictive.

If you could run the test it would also be greatly appreciated.
I am not the best integration tester so any adjustment also would be greatly appreciated.

If you have any questions to my code do not hesitate to ask. I tried orienting myself on other integ tests but didnt really find alot using assertions.
Anyway thanks in advance!
Cheers

@peterwoodworth
Copy link
Copy Markdown
Contributor

Thanks @tea-418, I'll get to this next week!

@ntachukwu
Copy link
Copy Markdown
Contributor

Hello @peterwoodworth, i am currently learning about writing tests for this project and would like to attempt writing tests for this.

@TheRealAmazonKendra
Copy link
Copy Markdown
Contributor

@Mergifyio update

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 30, 2022

update

✅ Branch has been successfully updated

@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 30, 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: 6588cf7
  • 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 715158f into aws:main Jul 30, 2022
@mergify
Copy link
Copy Markdown
Contributor

mergify bot commented Jul 30, 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

bug This issue is a bug. effort/small Small work item – less than a day of effort p1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

aws_ecs: ec2Service placement strategies use incorrect casing which causes drift

6 participants