Difference between revisions of "Create S3 bucket using Terraform"
Jump to navigation
Jump to search
(Created page with " resource "aws_s3_bucket" "my-resource-bucket" { bucket = "my-tf-test-bucket" tags = { Name = "My bucket" Environment = "Dev" } }") |
|||
(6 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
+ | [[provider]] "[[Terraform provider: aws|aws]]" { | ||
+ | region = "us-west-1" | ||
+ | #profile = "YourProfile" | ||
+ | } | ||
+ | |||
resource "aws_s3_bucket" "my-resource-bucket" { | resource "aws_s3_bucket" "my-resource-bucket" { | ||
bucket = "my-tf-test-bucket" | bucket = "my-tf-test-bucket" | ||
Line 7: | Line 12: | ||
} | } | ||
} | } | ||
+ | |||
+ | == Related == | ||
+ | * <code>[[Error: creating Amazon S3 (Simple Storage) Bucket]]</code> | ||
+ | |||
+ | == See also == | ||
+ | * {{Terraform examples}} | ||
+ | |||
+ | [[Category:Terraform]] |
Latest revision as of 10:43, 19 October 2023
Advertising: