Skip to content

Instantly share code, notes, and snippets.

@AymenSegni
Created April 12, 2020 17:13
Embed
What would you like to do?
# * main.tf
// Create ECR Repo
resource "aws_ecr_repository" "krypton" {
name = var.image_name
image_tag_mutability = "MUTABLE"
image_scanning_configuration {
scan_on_push = true
}
}
# * variables.tf
variable "image_name" {
default = "krypton"
description = "ECR Repo name"
type = string
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment