Created
April 12, 2020 17:13
-
-
Save AymenSegni/e81a821088dff87f81f90ea6caf4b3b7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # * 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