main.tf 464 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
// Configure remote state
terraform {
  backend "s3" {}
}

// Use credentials from environment or shared credentials file
provider "aws" {
  region  = "us-east-1"
  version = "~> 1.41"
}

12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
// ECR Repository
resource "aws_ecr_repository" "snowplow_ecr_repository" {
  name = "SnowPlow"
  tags = {
    environment = "SnowPlow"
  }
}

// ECS Cluster
resource "aws_ecs_cluster" "snowplow_ecs_cluster" {
  name = "SnowPlow"
  tags = {
    environment = "SnowPlow"
  }
}