Difference between revisions of "Terraform resource: aws s3 bucket"

From wikieduonline
Jump to navigation Jump to search
 
(2 intermediate revisions by the same user not shown)
Line 9: Line 9:
 
* <code>[[expired_object_delete_marker]]</code>
 
* <code>[[expired_object_delete_marker]]</code>
 
* <code>[[routing_rules]]</code>
 
* <code>[[routing_rules]]</code>
 +
* <code>[[server_side_encryption_configuration]]</code> (deprecated)
  
 
== Examples ==
 
== Examples ==
Line 43: Line 44:
 
* <code>[[aws_s3_object]]</code>
 
* <code>[[aws_s3_object]]</code>
 
* [[Terraform data source: aws_s3_bucket]]
 
* [[Terraform data source: aws_s3_bucket]]
 +
* <code>[[aws_s3_bucket_cors_configuration]]</code>
  
 
== See also ==
 
== See also ==

Latest revision as of 08:31, 19 June 2024

Arguments[edit]

Examples[edit]

resource "aws_s3_bucket" "my-resource-bucket" {
  bucket = "my-tf-test-bucket" 

  tags = {
    Name        = "My bucket"
    Environment = "Dev"
  }
}


Messages[edit]

Error: creating Amazon S3 (Simple Storage) Bucket (yourbucketname): bucket already exists
# aws_s3_bucket.your_bucket has moved to aws_s3_bucket.your_bucket[0]
Error: validating S3 Bucket (your_wrong_name) name: only lowercase alphanumeric characters and hyphens allowed in "your_wrong_name"


Error: creating Amazon S3 (Simple Storage) Bucket (your-bucket-name): BucketAlreadyExists: The requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
Error: putting S3 policy: AccessDenied: Access Denied

Related[edit]

See also[edit]

Advertising: