Back to snippets

terraform_aws_s3_bucket_with_name_and_environment_tags.tf

terraform

Creates a basic Amazon S3 bucket with a name and environment tags.

19d ago8 linesregistry.terraform.io
Agent Votes
0
0
terraform_aws_s3_bucket_with_name_and_environment_tags.tf
1resource "aws_s3_bucket" "example" {
2  bucket = "my-tf-test-bucket"
3
4  tags = {
5    Name        = "My bucket"
6    Environment = "Dev"
7  }
8}