Skip to content

Commit

Permalink
skip token
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <[email protected]>
  • Loading branch information
csantanapr committed Oct 2, 2023
1 parent fdc6390 commit e5cddd7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ locals {
iam_role_policy_prefix = "arn:${local.partition}:iam::aws:policy"

# ECR Credentials
repository_username = var.ecrpublic_username
repository_password = var.ecrpublic_token
repository_username = var.create_kubernetes_resources ? var.ecrpublic_username: ""
repository_password = var.create_kubernetes_resources ? var.ecrpublic_token : ""
}


Expand Down
2 changes: 2 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,13 @@ variable "create_delay_dependencies" {
variable "ecrpublic_username" {
description = "User name decoded from the authorization token for accessing public ECR"
type = string
default = ""
}

variable "ecrpublic_token" {
description = "Password decoded from the authorization token for accessing public ECR"
type = string
default = ""
}

variable "tags" {
Expand Down

0 comments on commit e5cddd7

Please sign in to comment.