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_efs_filesystem: create tags when resource is created #10254

Merged
merged 1 commit into from
Sep 27, 2019

Conversation

mildwonkey
Copy link
Contributor

The tags for the efs filesystems were being attached after the resource
was created. AWS has since updated their API so that tags can be
specificed at create time.

Fixes #7662

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" comments, they generate extra noise for pull request followers and do not help prioritize the request

Closes #7662

Release note for CHANGELOG:

resource/aws_efs_file_system: add tags at create time

Output from acceptance testing:

AWS_PROFILE=testacc TF_ACC=1 go test -v ./aws/ -run TestAccAWSEFSFileSystem
=== RUN   TestAccAWSEFSFileSystem_importBasic
=== PAUSE TestAccAWSEFSFileSystem_importBasic
=== RUN   TestAccAWSEFSFileSystem_basic
=== PAUSE TestAccAWSEFSFileSystem_basic
=== RUN   TestAccAWSEFSFileSystem_pagedTags
=== PAUSE TestAccAWSEFSFileSystem_pagedTags
=== RUN   TestAccAWSEFSFileSystem_kmsKey
=== PAUSE TestAccAWSEFSFileSystem_kmsKey
=== RUN   TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption
=== PAUSE TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption
=== RUN   TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps
=== PAUSE TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps
=== RUN   TestAccAWSEFSFileSystem_ThroughputMode
=== PAUSE TestAccAWSEFSFileSystem_ThroughputMode
=== RUN   TestAccAWSEFSFileSystem_lifecyclePolicy
=== PAUSE TestAccAWSEFSFileSystem_lifecyclePolicy
=== RUN   TestAccAWSEFSFileSystem_lifecyclePolicy_update
=== PAUSE TestAccAWSEFSFileSystem_lifecyclePolicy_update
=== RUN   TestAccAWSEFSFileSystem_lifecyclePolicy_removal
=== PAUSE TestAccAWSEFSFileSystem_lifecyclePolicy_removal
=== CONT  TestAccAWSEFSFileSystem_importBasic
=== CONT  TestAccAWSEFSFileSystem_ThroughputMode
=== CONT  TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps
=== CONT  TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption
--- PASS: TestAccAWSEFSFileSystem_importBasic (29.44s)
=== CONT  TestAccAWSEFSFileSystem_kmsKey
--- PASS: TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption (36.99s)
=== CONT  TestAccAWSEFSFileSystem_pagedTags
--- PASS: TestAccAWSEFSFileSystem_ThroughputMode (44.96s)
=== CONT  TestAccAWSEFSFileSystem_basic
--- PASS: TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps (45.47s)
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy_update
--- PASS: TestAccAWSEFSFileSystem_pagedTags (25.57s)
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy
--- PASS: TestAccAWSEFSFileSystem_kmsKey (56.22s)
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy_removal
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (43.64s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (37.87s)
--- PASS: TestAccAWSEFSFileSystem_basic (62.46s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (39.58s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	126.953s

@mildwonkey mildwonkey requested a review from a team September 26, 2019 13:52
@ghost ghost added size/XS Managed by automation to categorize the size of a PR. service/efs Issues and PRs that pertain to the efs service. labels Sep 26, 2019
The tags for the efs filesystems were being attached after the resource
was created. AWS has since updated their API so that tags can be
specificed at create time.

Fixes #7662
@mildwonkey mildwonkey force-pushed the mildwonkey/f-efs-tagging branch from 583aef1 to a3686f0 Compare September 26, 2019 15:30
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Sep 27, 2019
Copy link
Contributor

@bflad bflad left a comment

Choose a reason for hiding this comment

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

LGTM, thanks @mildwonkey! 🚀

Output from acceptance testing in AWS Commercial:

--- PASS: TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption (25.39s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (38.23s)
--- PASS: TestAccAWSEFSFileSystem_kmsKey (48.54s)
--- PASS: TestAccAWSEFSFileSystem_importBasic (74.63s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (84.50s)
--- PASS: TestAccAWSEFSFileSystem_ThroughputMode (89.04s)
--- PASS: TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps (98.46s)
--- PASS: TestAccAWSEFSFileSystem_basic (99.58s)
--- PASS: TestAccAWSEFSFileSystem_pagedTags (104.21s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (105.36s)

Output from acceptance testing in AWS GovCloud (US) (failure unrelated):

--- PASS: TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption (22.17s)
--- FAIL: TestAccAWSEFSFileSystem_basic (27.73s)
--- PASS: TestAccAWSEFSFileSystem_importBasic (45.85s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (52.93s)
--- PASS: TestAccAWSEFSFileSystem_kmsKey (56.27s)
--- PASS: TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps (63.13s)
--- PASS: TestAccAWSEFSFileSystem_ThroughputMode (68.27s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (99.66s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (112.61s)
--- PASS: TestAccAWSEFSFileSystem_pagedTags (116.25s)

@bflad bflad added this to the v2.31.0 milestone Sep 27, 2019
@bflad bflad merged commit 64e8ef9 into master Sep 27, 2019
@bflad bflad deleted the mildwonkey/f-efs-tagging branch September 27, 2019 18:04
bflad added a commit that referenced this pull request Sep 27, 2019
bflad added a commit that referenced this pull request Oct 3, 2019
@ghost
Copy link

ghost commented Oct 3, 2019

This has been released in version 2.31.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 Nov 1, 2019

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 and limited conversation to collaborators Nov 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. service/efs Issues and PRs that pertain to the efs service. size/XS Managed by automation to categorize the size of a PR.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

EFS doesn't pass tags in creation request
2 participants