-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
r/ecs - Add support for FARGATE Windows Containers and ARM based Containers #22016
Conversation
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.
Welcome @ChrisMcKee 👋
It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.
Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.
Thanks again, and welcome to the community! 😃
make testacc TESTS=TestAccECSTaskDefinition_withRuntimePlatform PKG=ecs
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecs/... -v -count 1 -parallel 20 -run='TestAccECSTaskDefinition_withRuntimePlatform' -timeout 180m
=== RUN TestAccECSTaskDefinition_withRuntimePlatform
=== PAUSE TestAccECSTaskDefinition_withRuntimePlatform
=== CONT TestAccECSTaskDefinition_withRuntimePlatform
--- PASS: TestAccECSTaskDefinition_withRuntimePlatform (24.44s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecs 24.483s
make testacc TESTS=TestAccECSTaskDefinition_Fargate_withRuntimePlatform PKG=ecs
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecs/... -v -count 1 -parallel 20 -run='TestAccECSTaskDefinition_Fargate_withRuntimePlatform' -timeout 180m
=== RUN TestAccECSTaskDefinition_Fargate_withRuntimePlatform
=== PAUSE TestAccECSTaskDefinition_Fargate_withRuntimePlatform
=== CONT TestAccECSTaskDefinition_Fargate_withRuntimePlatform
--- PASS: TestAccECSTaskDefinition_Fargate_withRuntimePlatform (14.03s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecs 14.075s
The time on the first ones higher as I ran the thing in US West (forgot to set my region env) |
``` runtime_platform { operating_system_family = "LINUX" cpu_architecture = "X86_64" } ```
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.
LGTM 🚀.
% make testacc TESTS=TestAccECSTaskDefinition_ PKG=ecs
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/ecs/... -v -count 1 -parallel 20 -run='TestAccECSTaskDefinition_' -timeout 180m
=== RUN TestAccECSTaskDefinition_basic
=== PAUSE TestAccECSTaskDefinition_basic
=== RUN TestAccECSTaskDefinition_withScratchVolume
=== PAUSE TestAccECSTaskDefinition_withScratchVolume
=== RUN TestAccECSTaskDefinition_withDockerVolume
=== PAUSE TestAccECSTaskDefinition_withDockerVolume
=== RUN TestAccECSTaskDefinition_withDockerVolumeMinimal
=== PAUSE TestAccECSTaskDefinition_withDockerVolumeMinimal
=== RUN TestAccECSTaskDefinition_withRuntimePlatform
=== PAUSE TestAccECSTaskDefinition_withRuntimePlatform
=== RUN TestAccECSTaskDefinition_Fargate_withRuntimePlatform
=== PAUSE TestAccECSTaskDefinition_Fargate_withRuntimePlatform
=== RUN TestAccECSTaskDefinition_Fargate_withRuntimePlatformWithoutArch
=== PAUSE TestAccECSTaskDefinition_Fargate_withRuntimePlatformWithoutArch
=== RUN TestAccECSTaskDefinition_withEFSVolumeMinimal
=== PAUSE TestAccECSTaskDefinition_withEFSVolumeMinimal
=== RUN TestAccECSTaskDefinition_withEFSVolume
=== PAUSE TestAccECSTaskDefinition_withEFSVolume
=== RUN TestAccECSTaskDefinition_withTransitEncryptionEFSVolume
=== PAUSE TestAccECSTaskDefinition_withTransitEncryptionEFSVolume
=== RUN TestAccECSTaskDefinition_withEFSAccessPoint
=== PAUSE TestAccECSTaskDefinition_withEFSAccessPoint
=== RUN TestAccECSTaskDefinition_withFSxWinFileSystem
=== PAUSE TestAccECSTaskDefinition_withFSxWinFileSystem
=== RUN TestAccECSTaskDefinition_withTaskScopedDockerVolume
=== PAUSE TestAccECSTaskDefinition_withTaskScopedDockerVolume
=== RUN TestAccECSTaskDefinition_withECSService
=== PAUSE TestAccECSTaskDefinition_withECSService
=== RUN TestAccECSTaskDefinition_withTaskRoleARN
=== PAUSE TestAccECSTaskDefinition_withTaskRoleARN
=== RUN TestAccECSTaskDefinition_withNetworkMode
=== PAUSE TestAccECSTaskDefinition_withNetworkMode
=== RUN TestAccECSTaskDefinition_withIPCMode
=== PAUSE TestAccECSTaskDefinition_withIPCMode
=== RUN TestAccECSTaskDefinition_withPidMode
=== PAUSE TestAccECSTaskDefinition_withPidMode
=== RUN TestAccECSTaskDefinition_constraint
=== PAUSE TestAccECSTaskDefinition_constraint
=== RUN TestAccECSTaskDefinition_changeVolumesForcesNewResource
=== PAUSE TestAccECSTaskDefinition_changeVolumesForcesNewResource
=== RUN TestAccECSTaskDefinition_arrays
=== PAUSE TestAccECSTaskDefinition_arrays
=== RUN TestAccECSTaskDefinition_fargate
=== PAUSE TestAccECSTaskDefinition_fargate
=== RUN TestAccECSTaskDefinition_Fargate_ephemeralStorage
=== PAUSE TestAccECSTaskDefinition_Fargate_ephemeralStorage
=== RUN TestAccECSTaskDefinition_executionRole
=== PAUSE TestAccECSTaskDefinition_executionRole
=== RUN TestAccECSTaskDefinition_disappears
=== PAUSE TestAccECSTaskDefinition_disappears
=== RUN TestAccECSTaskDefinition_tags
=== PAUSE TestAccECSTaskDefinition_tags
=== RUN TestAccECSTaskDefinition_proxy
=== PAUSE TestAccECSTaskDefinition_proxy
=== RUN TestAccECSTaskDefinition_inferenceAccelerator
=== PAUSE TestAccECSTaskDefinition_inferenceAccelerator
=== CONT TestAccECSTaskDefinition_basic
=== CONT TestAccECSTaskDefinition_withNetworkMode
=== CONT TestAccECSTaskDefinition_executionRole
=== CONT TestAccECSTaskDefinition_withECSService
=== CONT TestAccECSTaskDefinition_inferenceAccelerator
=== CONT TestAccECSTaskDefinition_proxy
=== CONT TestAccECSTaskDefinition_tags
=== CONT TestAccECSTaskDefinition_withEFSVolume
=== CONT TestAccECSTaskDefinition_disappears
=== CONT TestAccECSTaskDefinition_withTaskRoleARN
=== CONT TestAccECSTaskDefinition_withTaskScopedDockerVolume
=== CONT TestAccECSTaskDefinition_withFSxWinFileSystem
=== CONT TestAccECSTaskDefinition_withEFSAccessPoint
=== CONT TestAccECSTaskDefinition_Fargate_ephemeralStorage
=== CONT TestAccECSTaskDefinition_fargate
=== CONT TestAccECSTaskDefinition_arrays
=== CONT TestAccECSTaskDefinition_changeVolumesForcesNewResource
=== CONT TestAccECSTaskDefinition_constraint
=== CONT TestAccECSTaskDefinition_withRuntimePlatform
=== CONT TestAccECSTaskDefinition_withTransitEncryptionEFSVolume
--- PASS: TestAccECSTaskDefinition_Fargate_ephemeralStorage (48.15s)
=== CONT TestAccECSTaskDefinition_withPidMode
--- PASS: TestAccECSTaskDefinition_arrays (48.34s)
=== CONT TestAccECSTaskDefinition_withIPCMode
--- PASS: TestAccECSTaskDefinition_inferenceAccelerator (48.40s)
=== CONT TestAccECSTaskDefinition_withDockerVolume
--- PASS: TestAccECSTaskDefinition_withRuntimePlatform (49.05s)
=== CONT TestAccECSTaskDefinition_withDockerVolumeMinimal
--- PASS: TestAccECSTaskDefinition_withTaskScopedDockerVolume (49.75s)
=== CONT TestAccECSTaskDefinition_withEFSVolumeMinimal
--- PASS: TestAccECSTaskDefinition_withTaskRoleARN (52.59s)
=== CONT TestAccECSTaskDefinition_withScratchVolume
--- PASS: TestAccECSTaskDefinition_constraint (52.77s)
=== CONT TestAccECSTaskDefinition_Fargate_withRuntimePlatformWithoutArch
--- PASS: TestAccECSTaskDefinition_withNetworkMode (52.81s)
=== CONT TestAccECSTaskDefinition_Fargate_withRuntimePlatform
--- PASS: TestAccECSTaskDefinition_executionRole (53.41s)
--- PASS: TestAccECSTaskDefinition_withEFSVolume (61.99s)
--- PASS: TestAccECSTaskDefinition_proxy (63.02s)
--- PASS: TestAccECSTaskDefinition_withTransitEncryptionEFSVolume (63.48s)
--- PASS: TestAccECSTaskDefinition_fargate (65.93s)
--- PASS: TestAccECSTaskDefinition_withEFSAccessPoint (68.91s)
--- PASS: TestAccECSTaskDefinition_disappears (69.03s)
--- PASS: TestAccECSTaskDefinition_basic (74.58s)
--- PASS: TestAccECSTaskDefinition_changeVolumesForcesNewResource (75.26s)
--- PASS: TestAccECSTaskDefinition_withDockerVolume (32.76s)
--- PASS: TestAccECSTaskDefinition_withDockerVolumeMinimal (32.29s)
--- PASS: TestAccECSTaskDefinition_withScratchVolume (29.29s)
--- PASS: TestAccECSTaskDefinition_withIPCMode (33.55s)
--- PASS: TestAccECSTaskDefinition_withPidMode (33.93s)
--- PASS: TestAccECSTaskDefinition_Fargate_withRuntimePlatform (29.90s)
--- PASS: TestAccECSTaskDefinition_Fargate_withRuntimePlatformWithoutArch (30.10s)
--- PASS: TestAccECSTaskDefinition_withEFSVolumeMinimal (38.15s)
--- PASS: TestAccECSTaskDefinition_tags (90.74s)
--- PASS: TestAccECSTaskDefinition_withECSService (133.30s)
--- PASS: TestAccECSTaskDefinition_withFSxWinFileSystem (3138.02s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/ecs 3141.532s
@ChrisMcKee Thanks for the contribution 🎉 👏. |
This functionality has been released in v3.69.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you! |
Correct CHANGELOG for #22016
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. |
Adds platform runtime properties and validation based on https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html
Adds documentation for new fields (but no new examples; I'd happily add examples for windows fargate if its wanted, I didn't want to bloat the document)
Community Note
Closes #21706
Closes #22033
Output from acceptance testing: