-
Notifications
You must be signed in to change notification settings - Fork 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
fix: Make ecr user and token as variables #37
Conversation
main.tf
Outdated
locals { | ||
# this makes downstream resources wait for data plane to be ready | ||
cluster_id = time_sleep.dataplane.triggers["cluster_id"] | ||
region = data.aws_region.current.name | ||
|
||
eks_oidc_issuer_url = replace(data.aws_eks_cluster.this.identity[0].oidc[0].issuer, "https://", "") | ||
|
||
ecrpublic_username = var.ecrpublic_username |
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.
nit: We don't need to re-wrap these as locals. Just use them directly. You can delete these two lines here and just change the local.ecr*
to var.ecr*
variables.tf
Outdated
@@ -3,6 +3,16 @@ variable "cluster_id" { | |||
type = string | |||
} | |||
|
|||
variable "ecrpublic_username" { | |||
description = "EKS Cluster Id" |
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.
lets update the descriptions - just copy paste the text from the resource https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecrpublic_authorization_token#password
@bryantbiggs updated based on your comments. |
What does this PR do?
🛑 Please open an issue first to discuss any significant work and flesh out details/direction - we would hate for your time to be wasted.
Consult the CONTRIBUTING guide for submitting pull-requests.
Motivation
Test Results
Additional Notes