-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add document for efs_file_system_backup_policy resource
- Loading branch information
1 parent
aa3a359
commit d577344
Showing
1 changed file
with
53 additions
and
0 deletions.
There are no files selected for viewing
53 changes: 53 additions & 0 deletions
53
website/docs/r/efs_file_system_backup_policy.html.markdown
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
--- | ||
subcategory: "EFS" | ||
layout: "aws" | ||
page_title: "AWS: aws_efs_file_system_backup_policy" | ||
description: |- | ||
Provides an Elastic File System (EFS) File System Backup Policy resource. | ||
--- | ||
|
||
# Resource: aws_efs_file_system_backup_policy | ||
|
||
Provides an Elastic File System (EFS) File System Backup Policy resource. | ||
|
||
## Example Usage | ||
|
||
```hcl | ||
resource "aws_efs_file_system" "fs" { | ||
creation_token = "my-product" | ||
} | ||
resource "aws_efs_file_system_backup_policy" "policy" { | ||
file_system_id = aws_efs_file_system.fs.id | ||
backup_policy { | ||
status = "ENABLED" | ||
} | ||
} | ||
``` | ||
|
||
## Argument Reference | ||
|
||
The following arguments are supported: | ||
|
||
* `file_system_id` - (Required) The ID of the EFS file system. | ||
* `backup_policy` - (Required) A file system backup_policy object (documented below). | ||
|
||
### Backup Policy Arguments | ||
For **backup_policy** the following attributes are supported: | ||
|
||
* `status` - (Required) A status of the backup policy. Valid values: `Enabled`. | ||
|
||
## Attributes Reference | ||
|
||
In addition to all arguments above, the following attributes are exported: | ||
|
||
* `id` - The ID that identifies the file system (e.g. fs-ccfc0d65). | ||
|
||
## Import | ||
|
||
The EFS file system backup policies can be imported using the `id`, e.g. | ||
|
||
``` | ||
$ terraform import aws_efs_file_system_backup_policy.foo fs-6fa144c6 | ||
``` |