Difference between revisions of "Terraform resource: aws s3 versioning"
Jump to navigation
Jump to search
Line 4: | Line 4: | ||
* <code>[[bucket]]</code> | * <code>[[bucket]]</code> | ||
* <code>versioning_configuration</code> | * <code>versioning_configuration</code> | ||
− | * <code> | + | * <code>mfa</code> (optional) |
* <code>[[expected_bucket_owner]]</code> (optional) | * <code>[[expected_bucket_owner]]</code> (optional) | ||
Revision as of 09:48, 3 September 2023
Arguments:
bucket
versioning_configuration
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:
aws s3control
.aws s3
[cp | ls
|sync | presing
|mb | rm | rb
] - AWS S3,
aws s3, aws s3api, aws s3control, s3:
, Amazon S3 Storage Lens, AWS S3 replication, CRR, SSR, CAR, S3 Replication Time Control (S3 RTC), Website endpoint, Amazon Macie, Versioning, Lifecycle, Encryption, logging, Amazon S3 Inventory, Amazon S3 Batch Operations, Storage Classes, Amazon S3 clients, Terraform S3, AWS canned ACLs, Directory buckets, security,PutObject
Advertising: