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): refactor fargate interfaces and add support for runtimePlatform #21529

Merged
merged 3 commits into from
Aug 10, 2022

Conversation

michaeldrey
Copy link
Contributor

Stemming from #20756, currently there are a lot of duplicated Fargate props throughout the library ie cpu, memory. This can make adding Fargate properties tedious as you have to add them into every Fargate type.

This PR introduces FargateServiceBaseProps which will hold all of the common Fargate properties and allows all Fargate variations to inherit from.

As an example, I have added in runtimePlatform to all Fargate services.

I still need to make a small README update, but want to get this pushed up for thoughts/suggestions/feedback.

closes #20756 #18462

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

gitpod-io bot commented Aug 10, 2022

@aws-cdk-automation aws-cdk-automation requested a review from a team August 10, 2022 01:18
@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 Aug 10, 2022
@TheRealAmazonKendra TheRealAmazonKendra changed the title chore(ecs-patterns) clean up fargate interfaces chore(ecs-patterns): refactor fargate interfaces Aug 10, 2022
@TheRealAmazonKendra TheRealAmazonKendra changed the title chore(ecs-patterns): refactor fargate interfaces feat(ecs-patterns): refactor fargate interfaces and add support for runtimePlatform Aug 10, 2022
@TheRealAmazonKendra
Copy link
Contributor

@michaeldrey I don't think I have any notes here. Once you add in the README update, this seems like a no brainer and like it's just ready to go. I suppose I'd like it if you added the other tests into this one that you had in the closed one, but those might(?) be redundant with this refactor.

I am changing this to a feat since it's adding functionality that we'd want in the changelog, but I have no requested changes to the code at this time.

Copy link
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 putting this in changes requested so I see when it's been updated.

@mergify mergify bot dismissed TheRealAmazonKendra’s stale review August 10, 2022 04:12

Pull request has been modified.

@aws-cdk-automation
Copy link
Collaborator

AWS CodeBuild CI Report

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

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

@mergify
Copy link
Contributor

mergify bot commented Aug 10, 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).

@mergify mergify bot merged commit b4f9e5e into aws:main Aug 10, 2022
josephedward pushed a commit to josephedward/aws-cdk that referenced this pull request Aug 30, 2022
…untimePlatform (aws#21529)

Stemming from aws#20756, currently there are a lot of duplicated Fargate props throughout the library ie `cpu`, `memory`. This can make adding Fargate properties tedious as you have to add them into every Fargate type.

This PR introduces `FargateServiceBaseProps` which will hold all of the common Fargate properties and allows all Fargate variations to inherit from. 

As an example, I have added in `runtimePlatform` to all Fargate services.


I still need to make a small README update, but want to get this pushed up for thoughts/suggestions/feedback.


closes aws#20756 aws#18462
----

### 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*
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.

None yet

3 participants