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

From wikieduonline
Jump to navigation Jump to search
Line 28: Line 28:
 
  # aws_s3_bucket.your_bucket [[has moved to]] aws_s3_bucket.your_bucket[0]
 
  # aws_s3_bucket.your_bucket [[has moved to]] aws_s3_bucket.your_bucket[0]
  
  [[Error: validating S3 Bucket]]
+
  [[Error: validating S3 Bucket]] (your_wrong_name) name: only lowercase alphanumeric characters and hyphens allowed in "your_wrong_name"
  
 
== Related ==
 
== Related ==

Revision as of 13:24, 7 July 2023

Arguments

Examples

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

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


Messages

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"

Related

See also

Advertising: