-
-
Notifications
You must be signed in to change notification settings - Fork 225
Added ecr #20
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
Added ecr #20
Conversation
aws/ecr/ecr-repo-app.tf
Outdated
| source = "git::https://github.com/cloudposse/terraform-aws-kops-ecr.git?ref=tags/0.1.0" | ||
| namespace = "${var.namespace}" | ||
| stage = "${var.stage}" | ||
| name = "langing" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Typo
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
make it a variable. Add terraform.tfvars.example with defaults.
aws/ecr/ecr-repo-app.tf
Outdated
| source = "git::https://github.com/cloudposse/terraform-aws-kops-ecr.git?ref=tags/0.1.0" | ||
| namespace = "${var.namespace}" | ||
| stage = "${var.stage}" | ||
| name = "${element(repositories_names,0)}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is an invalid variable :P
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, I don't understand why it's valid that we create an ECR for only the first (0) repository.
aws/ecr/main.tf
Outdated
| } | ||
|
|
||
| variable "repositories_names" { | ||
| type = "list" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems like this should be a string or our ecr module should be made to support lists.
osterman
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See inline comments
What
Why