Difference between revisions of "Terraform resource: aws s3 versioning"
Jump to navigation
Jump to search
Line 3: | Line 3: | ||
Arguments: | Arguments: | ||
* <code>[[bucket]]</code> | * <code>[[bucket]]</code> | ||
− | * <code>versioning_configuration: status (required), mfa_delete (optional)</code> | + | * <code>versioning_configuration: status (required), [[mfa_delete]] (optional)</code> |
* <code>[[mfa]]</code> (optional) | * <code>[[mfa]]</code> (optional) | ||
* <code>[[expected_bucket_owner]]</code> (optional) | * <code>[[expected_bucket_owner]]</code> (optional) |
Revision as of 04:40, 11 July 2024
Arguments:
bucket
versioning_configuration: status (required), mfa_delete (optional)
mfa
(optional)expected_bucket_owner
(optional)
Official example
resource "aws_s3_bucket" "example" { bucket = "example-bucket" } resource "aws_s3_bucket_acl" "example" { bucket = aws_s3_bucket.example.id acl = "private" } resource "aws_s3_bucket_versioning" "versioning_example" { bucket = aws_s3_bucket.example.id versioning_configuration { status = "Enabled" } }
Related
See also
- AWS S3 versioning, aws_s3_versioning
- AWS S3:
aws s3control
.aws s3
[cp | ls
|sync | presing
|mb | rm | rb
]
Advertising: