Skip to content

Commit

Permalink
Merge pull request #21 from trussworks/multiple_repos
Browse files Browse the repository at this point in the history
Multiple repos
  • Loading branch information
pjdufour-truss authored May 20, 2019
2 parents 6aaa9f3 + 65c03eb commit 10bbc1d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version: 2
jobs:
build:
docker:
- image: trussworks/circleci-docker-primary:8734409e869c644343833aa565ef84a792bf6986
- image: trussworks/circleci-docker-primary:9bb7cfcfbbcf70fa56051ed5ba71da8a9be75b78
steps:
- checkout
- restore_cache:
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ module "app_ecs_service" {
| container\_health\_check\_port | An additional port on which the container can receive a health check. Zero means the container port can only receive a health check on the port set by the container_port variable. | string | `"0"` | no |
| container\_image | The image of the container. | string | `"golang:1.12.5-alpine"` | no |
| container\_port | The port on which the container will receive traffic. | string | `"80"` | no |
| ecr\_repo\_arn | The ARN of the ECR repo. By default, allows all repositories. | string | `"*"` | no |
| ecr\_repo\_arns | The ARNs of the ECR repos. By default, allows all repositories. | list | `[ "*" ]` | no |
| ecs\_cluster\_arn | The ARN of the ECS cluster. | string | n/a | yes |
| ecs\_instance\_role | The name of the ECS instance role. | string | `""` | no |
| ecs\_subnet\_ids | Subnet IDs for the ECS tasks. | list | n/a | yes |
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ data "aws_iam_policy_document" "instance_role_policy_doc" {
"ecr:BatchGetImage",
]

resources = ["${var.ecr_repo_arn}"]
resources = ["${var.ecr_repo_arns}"]
}
}

Expand Down Expand Up @@ -317,7 +317,7 @@ data "aws_iam_policy_document" "task_execution_role_policy_doc" {
"ecr:BatchGetImage",
]

resources = ["${var.ecr_repo_arn}"]
resources = ["${var.ecr_repo_arns}"]
}
}

Expand Down
8 changes: 4 additions & 4 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ variable "logs_cloudwatch_group" {
type = "string"
}

variable "ecr_repo_arn" {
description = "The ARN of the ECR repo. By default, allows all repositories."
type = "string"
default = "*"
variable "ecr_repo_arns" {
description = "The ARNs of the ECR repos. By default, allows all repositories."
type = "list"
default = ["*"]
}

variable "ecs_use_fargate" {
Expand Down

0 comments on commit 10bbc1d

Please sign in to comment.