Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ecr_repository_arns variable #67

Merged
merged 1 commit into from
Jan 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ data "aws_iam_policy_document" "task_role_policy_doc" {
"ecr:BatchGetImage",
]

resources = ["arn:aws:ecr:us-east-1:037370603820:repository/github-actions-runner"]
resources = var.ecr_repository_arns
}

statement {
Expand Down
8 changes: 7 additions & 1 deletion variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ variable "ecr_repo_tag" {
default = "latest"
}

variable "ecr_repository_arns" {
description = "The ECR ARNs referenced by aws_iam_policy_document task_role_policy_doc"
type = list(string)
default = ["arn:aws:ecr:us-east-1:037370603820:repository/github-actions-runner"]
}

# ECS variables

variable "environment" {
Expand Down Expand Up @@ -107,4 +113,4 @@ variable "container_memory" {
description = "The container memory size"
type = number
default = 1024
}
}