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

resource/aws_batch_job_definition: Add propagate_tags argument #18336

Merged

Conversation

leonsmith
Copy link
Contributor

@leonsmith leonsmith commented Mar 22, 2021

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #17278

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSBatchJobDefinition_PropagateTags'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSBatchJobDefinition_PropagateTags -timeout 180m
=== RUN   TestAccAWSBatchJobDefinition_PropagateTags
=== PAUSE TestAccAWSBatchJobDefinition_PropagateTags
=== CONT  TestAccAWSBatchJobDefinition_PropagateTags
--- PASS: TestAccAWSBatchJobDefinition_PropagateTags (23.73s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws   25.465s

@leonsmith leonsmith requested a review from a team as a code owner March 22, 2021 20:42
@ghost ghost added size/S Managed by automation to categorize the size of a PR. service/batch Issues and PRs that pertain to the batch service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Mar 22, 2021
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Mar 22, 2021
@leonsmith leonsmith force-pushed the f-aws_batch_job_definition-propagate-tags branch from 171ee9d to 0c6501d Compare March 22, 2021 20:46
@leonsmith leonsmith changed the title WIP: Add ability to set propagateTags attribute in AWS Batch job definitions resource/aws_batch_job_definition: Add propagate_tags argument Mar 22, 2021
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

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

Welcome @leonsmith 👋

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! 😃

@ewbankkit ewbankkit self-assigned this Apr 19, 2021
@ewbankkit ewbankkit removed the needs-triage Waiting for first response or review from a maintainer. label Apr 19, 2021
@ewbankkit ewbankkit force-pushed the f-aws_batch_job_definition-propagate-tags branch from 0c6501d to 41f2c4e Compare April 19, 2021 16:15
@ghost ghost added size/M Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. and removed size/S Managed by automation to categorize the size of a PR. labels Apr 19, 2021
Copy link
Contributor

@ewbankkit ewbankkit left a comment

Choose a reason for hiding this comment

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

LGTM.

Commercial
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchJobDefinition_'                                                  
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSBatchJobDefinition_ -timeout 180m
=== RUN   TestAccAWSBatchJobDefinition_basic
=== PAUSE TestAccAWSBatchJobDefinition_basic
=== RUN   TestAccAWSBatchJobDefinition_disappears
=== PAUSE TestAccAWSBatchJobDefinition_disappears
=== RUN   TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2
=== PAUSE TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2
=== RUN   TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate
=== PAUSE TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate
=== RUN   TestAccAWSBatchJobDefinition_ContainerProperties_Advanced
=== PAUSE TestAccAWSBatchJobDefinition_ContainerProperties_Advanced
=== RUN   TestAccAWSBatchJobDefinition_updateForcesNewResource
=== PAUSE TestAccAWSBatchJobDefinition_updateForcesNewResource
=== RUN   TestAccAWSBatchJobDefinition_Tags
=== PAUSE TestAccAWSBatchJobDefinition_Tags
=== RUN   TestAccAWSBatchJobDefinition_PropagateTags
=== PAUSE TestAccAWSBatchJobDefinition_PropagateTags
=== CONT  TestAccAWSBatchJobDefinition_basic
=== CONT  TestAccAWSBatchJobDefinition_updateForcesNewResource
=== CONT  TestAccAWSBatchJobDefinition_ContainerProperties_Advanced
=== CONT  TestAccAWSBatchJobDefinition_disappears
=== CONT  TestAccAWSBatchJobDefinition_PropagateTags
=== CONT  TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate
=== CONT  TestAccAWSBatchJobDefinition_Tags
=== CONT  TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2
--- PASS: TestAccAWSBatchJobDefinition_disappears (12.67s)
--- PASS: TestAccAWSBatchJobDefinition_PropagateTags (14.91s)
--- PASS: TestAccAWSBatchJobDefinition_ContainerProperties_Advanced (16.62s)
--- PASS: TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2 (16.83s)
--- PASS: TestAccAWSBatchJobDefinition_basic (16.86s)
--- PASS: TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate (22.95s)
--- PASS: TestAccAWSBatchJobDefinition_updateForcesNewResource (26.36s)
--- PASS: TestAccAWSBatchJobDefinition_Tags (35.40s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	39.364s
GovCloud
% make testacc TEST=./aws TESTARGS='-run=TestAccAWSBatchJobDefinition_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSBatchJobDefinition_ -timeout 180m
=== RUN   TestAccAWSBatchJobDefinition_basic
=== PAUSE TestAccAWSBatchJobDefinition_basic
=== RUN   TestAccAWSBatchJobDefinition_disappears
=== PAUSE TestAccAWSBatchJobDefinition_disappears
=== RUN   TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2
=== PAUSE TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2
=== RUN   TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate
=== PAUSE TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate
=== RUN   TestAccAWSBatchJobDefinition_ContainerProperties_Advanced
=== PAUSE TestAccAWSBatchJobDefinition_ContainerProperties_Advanced
=== RUN   TestAccAWSBatchJobDefinition_updateForcesNewResource
=== PAUSE TestAccAWSBatchJobDefinition_updateForcesNewResource
=== RUN   TestAccAWSBatchJobDefinition_Tags
=== PAUSE TestAccAWSBatchJobDefinition_Tags
=== RUN   TestAccAWSBatchJobDefinition_PropagateTags
=== PAUSE TestAccAWSBatchJobDefinition_PropagateTags
=== CONT  TestAccAWSBatchJobDefinition_basic
=== CONT  TestAccAWSBatchJobDefinition_updateForcesNewResource
=== CONT  TestAccAWSBatchJobDefinition_PropagateTags
=== CONT  TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate
=== CONT  TestAccAWSBatchJobDefinition_Tags
=== CONT  TestAccAWSBatchJobDefinition_disappears
=== CONT  TestAccAWSBatchJobDefinition_ContainerProperties_Advanced
=== CONT  TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2
--- PASS: TestAccAWSBatchJobDefinition_disappears (16.76s)
--- PASS: TestAccAWSBatchJobDefinition_PlatformCapabilities_EC2 (20.30s)
--- PASS: TestAccAWSBatchJobDefinition_PropagateTags (23.97s)
--- PASS: TestAccAWSBatchJobDefinition_PlatformCapabilities_Fargate (26.03s)
--- PASS: TestAccAWSBatchJobDefinition_ContainerProperties_Advanced (26.18s)
--- PASS: TestAccAWSBatchJobDefinition_basic (26.25s)
--- PASS: TestAccAWSBatchJobDefinition_updateForcesNewResource (38.56s)
--- PASS: TestAccAWSBatchJobDefinition_Tags (43.89s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	46.865s

@ewbankkit
Copy link
Contributor

@leonsmith Thanks for the contribution 👏.
I took the liberty of tweaking a couple of things to get this one merged quickly,
The new propagate_tags argument is ForceNew: true so that any changes to it cause the resource to be recreated.

@ewbankkit ewbankkit merged commit 67df8c8 into hashicorp:main Apr 19, 2021
@github-actions github-actions bot added this to the v3.38.0 milestone Apr 19, 2021
@ghost
Copy link

ghost commented Apr 30, 2021

This has been released in version 3.38.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 for triage. Thanks!

@ghost
Copy link

ghost commented May 19, 2021

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!

@ghost ghost locked as resolved and limited conversation to collaborators May 19, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. service/batch Issues and PRs that pertain to the batch service. size/M Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add ability to set propagate tags in AWS Batch job definitions
2 participants