Difference between revisions of "Create S3 bucket using Terraform"
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
+ | provider "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" |
Revision as of 10:27, 19 October 2023
provider "aws" { region = "us-west-1" #profile = "YourProfile" }
resource "aws_s3_bucket" "my-resource-bucket" { bucket = "my-tf-test-bucket" tags = { Name = "My bucket" Environment = "Dev" } }
See also
Advertising: