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

fix: Make ecr user and token as variables #37

Merged
merged 6 commits into from
Dec 19, 2022

Conversation

victorgu-github
Copy link
Collaborator

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

  • Resolves #

Test Results

Additional Notes

@victorgu-github victorgu-github marked this pull request as ready for review December 19, 2022 21:52
@victorgu-github victorgu-github requested a review from a team as a code owner December 19, 2022 21:52
@victorgu-github victorgu-github changed the title [Bug fix] make ecr user and token as variables [fix] make ecr user and token as variables Dec 19, 2022
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
Copy link
Contributor

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*

@victorgu-github victorgu-github changed the title [fix] make ecr user and token as variables fix: make ecr user and token as variables Dec 19, 2022
variables.tf Outdated
@@ -3,6 +3,16 @@ variable "cluster_id" {
type = string
}

variable "ecrpublic_username" {
description = "EKS Cluster Id"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

variables.tf Outdated Show resolved Hide resolved
@victorgu-github victorgu-github changed the title fix: make ecr user and token as variables fix: Make ecr user and token as variables Dec 19, 2022
@victorgu-github
Copy link
Collaborator Author

@bryantbiggs updated based on your comments.

@victorgu-github victorgu-github merged commit 215648e into aws-ia:main Dec 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants