Skip to content

Instantly share code, notes, and snippets.

@Jagdeep1
Created December 17, 2020 17:16
Show Gist options
  • Save Jagdeep1/885e42bbcb889b7c3faeec6587da5a7f to your computer and use it in GitHub Desktop.
Save Jagdeep1/885e42bbcb889b7c3faeec6587da5a7f to your computer and use it in GitHub Desktop.
Terraform example
terraform {
backend "s3" {
bucket = "tfrb"
key = "tfrb.state"
region = "eu-west-1"
}
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 3.0"
}
}
}
provider "aws" {
region = "eu-west-1"
}
resource "aws_ecr_repository" "exmple" {
name = "example"
image_tag_mutability = "MUTABLE"
image_scanning_configuration {
scan_on_push = true
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment