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

Supply tags in the Creating EFS resource at creation time #10279

Closed
wants to merge 3 commits into from
Closed

Supply tags in the Creating EFS resource at creation time #10279

wants to merge 3 commits into from

Conversation

dbgeek
Copy link
Contributor

@dbgeek dbgeek commented Sep 27, 2019

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

Relates OR Closes #10278

This pull request supplies the tags at conn.CreateFileSystem(createOpts) instead of apply the TAGS after the resource is created.
This should make it possible to create EFS resource when control IAM access by tags conditions

PR include a fix in the tests so it possible to run the TEST against different AWS regions then us-west-2 and not failing

Output from acceptance testing:

TF_ACC=1 go test ./aws -v -run=TestAccAWSEFSFileSystem -timeout 120m
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.0+incompatible
go: finding github.com/terraform-providers/terraform-provider-tls v2.1.0+incompatible
=== 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_lifecyclePolicy_removal
=== CONT  TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption
=== CONT  TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy_update
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy
=== CONT  TestAccAWSEFSFileSystem_ThroughputMode
=== CONT  TestAccAWSEFSFileSystem_kmsKey
--- PASS: TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption (44.25s)
=== CONT  TestAccAWSEFSFileSystem_pagedTags
--- PASS: TestAccAWSEFSFileSystem_importBasic (59.50s)
=== CONT  TestAccAWSEFSFileSystem_basic
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (62.48s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (65.30s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (78.28s)
--- PASS: TestAccAWSEFSFileSystem_pagedTags (34.99s)
--- PASS: TestAccAWSEFSFileSystem_kmsKey (86.41s)
--- PASS: TestAccAWSEFSFileSystem_ThroughputMode (96.07s)
--- PASS: TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps (115.94s)
--- PASS: TestAccAWSEFSFileSystem_basic (75.91s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       136.670s

@dbgeek dbgeek requested a review from a team September 27, 2019 18:59
@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. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Sep 27, 2019
@dbgeek
Copy link
Contributor Author

dbgeek commented Sep 27, 2019

Closing this PR as of duplicate. #10254 has already been merged. I fix another PR for the test fix(d308db5)

@dbgeek dbgeek closed this Sep 27, 2019
@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
service/efs Issues and PRs that pertain to the efs service. size/XS 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.

Supply tags in the CreateFileSystemInput when create and EFS resource
2 participants