Skip to content

Commit f0ef9c6

Browse files
committed
"Added provider to module"
1 parent 3e18789 commit f0ef9c6

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
provider "aws" {
2+
region = var.region
3+
}
4+
15
resource "aws_ecr_repository" "ecr_repo" {
26
name = var.name
37
image_tag_mutability = "MUTABLE"

variables.tf

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,10 @@ variable "allowed_arns" {
77
type = list(string)
88
description = "The list of IAM user arns that are allowed to push and pull to and from the repository"
99
}
10+
11+
variable "region" {
12+
type = string
13+
default = "us-west-2"
14+
description = "Define the region you'd wish the cloudtrail resources to be created in, example: us-west-2"
15+
}
16+

0 commit comments

Comments
 (0)