Difference between revisions of "Create S3 bucket using Terraform"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
  [[provider]] "[[aws]]" {
+
  [[provider]] "[[Terraform provider: aws|aws]]" {
 
   region  = "us-west-1"
 
   region  = "us-west-1"
 
   #profile = "YourProfile"
 
   #profile = "YourProfile"

Revision as of 10:30, 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: