Difference between revisions of "Create S3 bucket using Terraform"

From wikieduonline
Jump to navigation Jump to search
 
Line 15: Line 15:
 
== Related ==
 
== Related ==
 
* <code>[[Error: creating Amazon S3 (Simple Storage) Bucket]]</code>
 
* <code>[[Error: creating Amazon S3 (Simple Storage) Bucket]]</code>
 
  
 
== See also ==
 
== See also ==

Latest revision as of 10:43, 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"
  }
}

Related[edit]

See also[edit]

Advertising: