Skip to content

Commit

Permalink
Add document for efs_file_system_backup_policy resource
Browse files Browse the repository at this point in the history
  • Loading branch information
shuheiktgw authored and ewbankkit committed Jun 22, 2021
1 parent aa3a359 commit d577344
Showing 1 changed file with 53 additions and 0 deletions.
53 changes: 53 additions & 0 deletions website/docs/r/efs_file_system_backup_policy.html.markdown
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
```

0 comments on commit d577344

Please sign in to comment.