Skip to content

Instantly share code, notes, and snippets.

@rohitg00
Created June 14, 2020 16:21
Show Gist options
  • Save rohitg00/aaa699887b2e3a3fedac68b25339b728 to your computer and use it in GitHub Desktop.
Save rohitg00/aaa699887b2e3a3fedac68b25339b728 to your computer and use it in GitHub Desktop.
//Creating a S3 Bucket for Terraform Integration
resource "aws_s3_bucket" "rg-bucket" {
bucket = "rg-static-data-bucket"
acl = "public-read"
}
//Putting Objects in S3 Bucket
resource "aws_s3_bucket_object" "web-object1" {
bucket = "${aws_s3_bucket.rg-bucket.bucket}"
key = "rg.jpg"
source = "C:/Users/ROHIT/OneDrive/Desktop/rg.jpg"
acl = "public-read"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment