Created
December 17, 2020 17:16
-
-
Save Jagdeep1/885e42bbcb889b7c3faeec6587da5a7f to your computer and use it in GitHub Desktop.
Terraform example
This file contains 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
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