Create S3 bucket using Terraform

From wikieduonline
Revision as of 10:43, 19 October 2023 by Welcome (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
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"
  }
}

Related[edit]

See also[edit]

Advertising: