Skip to content

Instantly share code, notes, and snippets.

@juanesech
Last active November 12, 2021 02:26
Show Gist options
  • Save juanesech/51bc7a2942f3e6fe8bffa46237989b6f to your computer and use it in GitHub Desktop.
Save juanesech/51bc7a2942f3e6fe8bffa46237989b6f to your computer and use it in GitHub Desktop.
terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}
# Configure the AWS Provider
provider "aws" {
region = "us-east-1"
}
terraform {
backend "s3" {
bucket = "jns-test-bucket"
key = "terraform/sample"
region = "us-east-1"
}
}
resource "aws_s3_bucket" "jns_bucket" {
bucket = "tf-sample-jns-test-bucket"
acl = "private"
tags = {
resourceowner = "jechavarria"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment