Skip to content

Commit

Permalink
r/aws_efs_file_system: Support 7-day lifecycle management policy. (#1…
Browse files Browse the repository at this point in the history
…0825)

Output from acceptance testing:

```
--- PASS: TestAccAWSEFSFileSystem_kmsConfigurationWithoutEncryption (24.74s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_removal (66.07s)
--- PASS: TestAccAWSEFSFileSystem_ThroughputMode (72.03s)
--- PASS: TestAccAWSEFSFileSystem_basic (81.67s)
--- PASS: TestAccAWSEFSFileSystem_kmsKey (87.24s)
--- PASS: TestAccAWSEFSFileSystem_ProvisionedThroughputInMibps (89.03s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy (91.89s)
--- PASS: TestAccAWSEFSFileSystem_pagedTags (97.24s)
--- PASS: TestAccAWSEFSFileSystem_lifecyclePolicy_update (133.01s)
```
  • Loading branch information
ewbankkit authored and bflad committed Nov 15, 2019
1 parent 36bb33e commit 1bde9db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions aws/resource_aws_efs_file_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ func resourceAwsEfsFileSystem() *schema.Resource {
Type: schema.TypeString,
Optional: true,
ValidateFunc: validation.StringInSlice([]string{
efs.TransitionToIARulesAfter7Days,
efs.TransitionToIARulesAfter14Days,
efs.TransitionToIARulesAfter30Days,
efs.TransitionToIARulesAfter60Days,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/efs_file_system.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ system creation. By default generated by Terraform. See [Elastic File System]
### Lifecycle Policy Arguments
For **lifecycle_policy** the following attributes are supported:

* `transition_to_ia` - (Optional) Indicates how long it takes to transition files to the IA storage class. Valid values: `AFTER_14_DAYS`, `AFTER_30_DAYS`, `AFTER_60_DAYS`, or `AFTER_90_DAYS`.
* `transition_to_ia` - (Optional) Indicates how long it takes to transition files to the IA storage class. Valid values: `AFTER_7_DAYS`, `AFTER_14_DAYS`, `AFTER_30_DAYS`, `AFTER_60_DAYS`, or `AFTER_90_DAYS`.

## Attributes Reference

Expand Down

0 comments on commit 1bde9db

Please sign in to comment.