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

adding lifecycle_policy config block to efs_file_system (fixes #7623) #9636

Merged
merged 1 commit into from
Aug 6, 2019

Conversation

ryno75
Copy link
Contributor

@ryno75 ryno75 commented Aug 6, 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

Fixes #7623

Release note for CHANGELOG:

ENHANCEMENTS:

* resource/aws_efs_file_system: Add `lifecycle_policy` configuration block (support transition to IA storage after 14, 30, 60, or 90 days) ([#7623](https://github.com/terraform-providers/terraform-provider-aws/issues/7623))

Output from acceptance testing:

make testacc TEST=./aws TESTARGS='-run=TestAccAWSEFSFileSystem'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSEFSFileSystem -timeout 120m
=== 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_lifecyclePolicy_removal
=== CONT  TestAccAWSEFSFileSystem_kmsKey
=== CONT  TestAccAWSEFSFileSystem_basic
=== CONT  TestAccAWSEFSFileSystem_pagedTags
=== CONT  TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps
=== CONT  TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy_update
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy
--- PASS: TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption (30.36s)
--- PASS: TestAccAWSEFSFileSystem_pagedTags (32.98s)
--- PASS: TestAccAWSEFSFileSystem_importBasic (42.48s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (60.50s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (63.74s)
--- PASS: TestAccAWSEFSFileSystem_kmsKey (66.81s)
--- PASS: TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps (87.70s)
--- PASS: TestAccAWSEFSFileSystem_basic (98.08s)
--- PASS: TestAccAWSEFSFileSystem_ThroughputMode (108.28s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (116.03s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	116.645s
make testacc TEST=./aws TESTARGS='-run=TestAccAWSEFSFileSystem_lifecyclePolicy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -parallel 20 -run=TestAccAWSEFSFileSystem_lifecyclePolicy -timeout 120m
go: finding github.com/hashicorp/terraform v0.12.6
go: finding github.com/aws/aws-sdk-go v1.21.7
go: finding github.com/hashicorp/hcl2 v0.0.0-20190725010614-0c3fe388e450
go: finding github.com/zclconf/go-cty-yaml v1.0.1
go: downloading github.com/aws/aws-sdk-go v1.21.7
go: downloading github.com/hashicorp/terraform v0.12.6
go: downloading github.com/hashicorp/hcl2 v0.0.0-20190725010614-0c3fe388e450
go: downloading github.com/zclconf/go-cty-yaml v1.0.1
=== RUN   TestAccAWSEFSFileSystem_lifecyclePolicy
=== PAUSE TestAccAWSEFSFileSystem_lifecyclePolicy
=== RUN   TestAccAWSEFSFileSystem_lifecyclePolicy_update
=== PAUSE TestAccAWSEFSFileSystem_lifecyclePolicy_update
=== RUN   TestAccAWSEFSFileSystem_lifecyclePolicy_removal
=== PAUSE TestAccAWSEFSFileSystem_lifecyclePolicy_removal
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy_update
=== CONT  TestAccAWSEFSFileSystem_lifecyclePolicy_removal
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (31.07s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (33.86s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (34.68s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	35.256s

@ryno75 ryno75 requested a review from a team August 6, 2019 06:53
@ghost ghost added size/L 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. documentation Introduces or discusses updates to documentation. labels Aug 6, 2019
@bflad bflad self-assigned this Aug 6, 2019
@bflad bflad added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 6, 2019
@bflad bflad added this to the v2.23.0 milestone Aug 6, 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.

Looks good, thanks so much @ryno75 🚀

--- PASS: TestResourceAWSEFSFileSystem_hasEmptyFileSystems (0.00s)
--- PASS: TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption (25.09s)
--- PASS: TestAccAWSEFSFileSystem_importBasic (49.86s)
--- PASS: TestAccAWSEFSFileSystem_pagedTags (52.40s)
--- PASS: TestAccAWSEFSFileSystem_kmsKey (52.95s)
--- PASS: TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps (60.86s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (68.73s)
--- PASS: TestAccAWSEFSFileSystem_basic (87.47s)
--- PASS: TestAccAWSEFSFileSystem_ThroughputMode (94.01s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (103.79s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (116.24s)

@bflad bflad merged commit 021a342 into hashicorp:master Aug 6, 2019
bflad added a commit that referenced this pull request Aug 6, 2019
@ryno75 ryno75 deleted the feature/efs_lifecycle_policy branch August 7, 2019 07:05
@ghost
Copy link

ghost commented Aug 7, 2019

This has been released in version 2.23.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 2, 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 2, 2019
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. enhancement Requests to existing resources that expand the functionality or scope. service/efs Issues and PRs that pertain to the efs service. size/L 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.

EFS with infrequent access life cycle
2 participants