Skip to content

Instantly share code, notes, and snippets.

@ringanta
Created June 16, 2020 13:35
Show Gist options
  • Save ringanta/3a0797b84fee76ef02fe46d9207ff201 to your computer and use it in GitHub Desktop.
Save ringanta/3a0797b84fee76ef02fe46d9207ff201 to your computer and use it in GitHub Desktop.
Terraform main file
module "atlantis" {
source = "ringanta/ec2-atlantis/aws"
version = "1.0.0"
public_key = "<SSH_PUBLIC_KEY>"
attach_admin_policy = true
}
resource "aws_s3_bucket" "terraform_state" {
bucket = "terraform-s3-backend"
versioning {
enabled = true
}
}
resource "aws_dynamodb_table" "terraform_lock" {
name = "terraform-lock"
read_capacity = 10
write_capacity = 10
hash_key = "LockID"
attribute {
name = "LockID"
type = "S"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment