Skip to content

Instantly share code, notes, and snippets.

@amacal
Last active October 31, 2020 08:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save amacal/081aff1bd704396260c4f51febbb5e55 to your computer and use it in GitHub Desktop.
Save amacal/081aff1bd704396260c4f51febbb5e55 to your computer and use it in GitHub Desktop.
provider "aws" {
region = var.region
}
terraform {
backend "s3" {}
}
variable "region" {}
variable "plan_name" {}
resource "aws_s3_bucket" "data_bucket" {
bucket = "${var.plan_name}-data"
acl = "private"
}
resource "aws_ecs_cluster" "cluster" {
name = var.plan_name
capacity_providers = ["FARGATE"]
default_capacity_provider_strategy {
capacity_provider = "FARGATE"
weight = 100
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment