Skip to content

Instantly share code, notes, and snippets.

@oxlb
Created July 24, 2021 02:50
Show Gist options
  • Save oxlb/f540547a133c140f616a62fea74f0fec to your computer and use it in GitHub Desktop.
Save oxlb/f540547a133c140f616a62fea74f0fec to your computer and use it in GitHub Desktop.
# Public Cloud Configuration
provider "aws" {
region = "us-east-1"
access_key = "test123"
secret_key = "testabc"
skip_credentials_validation = true
skip_requesting_account_id = true
skip_metadata_api_check = true
s3_force_path_style = true
endpoints {
s3 = "http://localhost:4566"
}
}
# Create Bucket
resource "aws_s3_bucket" "b" {
bucket = "onexlab-bucket-terraform"
acl = "public-read"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment