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

r/aws_efs_file_system: Add support for backup_policy #14670

Closed

Conversation

shuheiktgw
Copy link
Collaborator

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 #14372

Release note for CHANGELOG:

r/aws_efs_file_system: Add support for backup_policy

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSEFSFileSystem_backupPolicy'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSEFSFileSystem_backupPolicy -timeout 120m
=== RUN   TestAccAWSEFSFileSystem_backupPolicy
=== PAUSE TestAccAWSEFSFileSystem_backupPolicy
=== RUN   TestAccAWSEFSFileSystem_backupPolicy_update
=== PAUSE TestAccAWSEFSFileSystem_backupPolicy_update
=== RUN   TestAccAWSEFSFileSystem_backupPolicy_removal
=== PAUSE TestAccAWSEFSFileSystem_backupPolicy_removal
=== CONT  TestAccAWSEFSFileSystem_backupPolicy
=== CONT  TestAccAWSEFSFileSystem_backupPolicy_removal
=== CONT  TestAccAWSEFSFileSystem_backupPolicy_update
2020/08/16 14:17:54 [INFO] AWS Auth provider used: "SharedCredentialsProvider"
2020/08/16 14:17:54 [DEBUG] Trying to get account information via sts:GetCallerIdentity
--- PASS: TestAccAWSEFSFileSystem_backupPolicy (59.05s)
--- PASS: TestAccAWSEFSFileSystem_backupPolicy_removal (91.88s)
--- PASS: TestAccAWSEFSFileSystem_backupPolicy_update (92.73s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	94.713s
...

Thank you for your review! 👍

@shuheiktgw shuheiktgw requested a review from a team August 16, 2020 05:53
@ghost ghost added size/L Managed by automation to categorize the size of a PR. documentation Introduces or discusses updates to documentation. service/efs Issues and PRs that pertain to the efs service. needs-triage Waiting for first response or review from a maintainer. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Aug 16, 2020
@galindro
Copy link

Will this be available in 0.13 only?

@shuheiktgw
Copy link
Collaborator Author

shuheiktgw commented Aug 20, 2020

@galindro I'm not particularly sure when this PR will be merged, but I think the latest terraform-aws-provider should still support terraform v0.12. So I guess you can use this feature with v0.12!

I recommend you check which terraform-aws-provider version this change will be bundled with and see if its compatibility with your terraform version once this PR is merged 👍

@bflad bflad added enhancement Requests to existing resources that expand the functionality or scope. and removed needs-triage Waiting for first response or review from a maintainer. labels Aug 25, 2020
@anatrizna
Copy link

Hi @shuheiktgw ,

I am using:
Terraform v0.13.5
aws v2.57.0

And when I try to use backup_policy, terraform validate fails with error:
$ terraform validate
Error: Unsupported argument
on aws/02-efs.tf line 4, in resource "aws_efs_file_system" "efs_file_system":
4: backup_policy = {
An argument named "backup_policy" is not expected here.
ERROR: Job failed: exit code 1

Do you think this is issue with my environment? Or feature is not yet implemented?

resource "aws_efs_file_system" "foo" {
creation_token = "my-product"
backup_policy = {
status = "ENABLED"
}
}

Anastasija

@cageyv
Copy link
Contributor

cageyv commented Nov 12, 2020

Hi @anatrizna ,
this function is awaiting a merge.
But you can clone this repository with these changes and change branch and build the provider locally, then try the function

@lirlia
Copy link

lirlia commented Dec 4, 2020

I really hope this exciting function!!

Base automatically changed from master to main January 23, 2021 00:58
@breathingdust breathingdust requested a review from a team as a code owner January 23, 2021 00:58
@felipesere
Copy link

This looks really nice. Anything we can do to get this over the line?

@DrFaust92
Copy link
Collaborator

Hi, while this doesn’t suffer from the same issue as IAM policy maybe it will be more appropriate to move this to a separate resource more similar to. https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/efs_file_system_policy

@sporokh
Copy link

sporokh commented Mar 8, 2021

Any estimates on the PR merge?

@shuheiktgw
Copy link
Collaborator Author

@DrFaust92 Ah, that makes sense. Let me move this into a separate resource!

@shuheiktgw
Copy link
Collaborator Author

I've created a new PR #18006 to make it a separate resource, so I'll close this one.

@shuheiktgw shuheiktgw closed this Mar 9, 2021
@shuheiktgw shuheiktgw deleted the support_efs_backup_policy branch March 9, 2021 22:36
@ghost
Copy link

ghost commented Apr 9, 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 Apr 9, 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. 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.

Add backup support for aws_efs_file_system
9 participants