Skip to content

Commit

Permalink
token expired
Browse files Browse the repository at this point in the history
  • Loading branch information
morga471 committed Apr 15, 2025
1 parent 125314a commit c62c074
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 13 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,6 @@ Common issues and solutions:

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | 5.88.0 |
| <a name="provider_helm"></a> [helm](#provider\_helm) | 2.17.0 |

## Modules
Expand All @@ -86,8 +85,6 @@ Common issues and solutions:
| Name | Type |
|------|------|
| [helm_release.keycloak](https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release) | resource |
| [aws_ecr_authorization_token.ecr_token](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecr_authorization_token) | data source |
| [aws_ecr_authorization_token.token](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/ecr_authorization_token) | data source |

## Inputs

Expand Down
20 changes: 10 additions & 10 deletions copy_images.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,17 @@ module "images" {
force_delete = true
lifecycle_policy_keep_count = 5

source_username = data.aws_ecr_authorization_token.ecr_token.user_name
source_password = data.aws_ecr_authorization_token.ecr_token.password
# source_username = data.aws_ecr_authorization_token.ecr_token.user_name
# source_password = data.aws_ecr_authorization_token.ecr_token.password

destination_username = data.aws_ecr_authorization_token.token.user_name
destination_password = data.aws_ecr_authorization_token.token.password
# destination_username = data.aws_ecr_authorization_token.token.user_name
# destination_password = data.aws_ecr_authorization_token.token.password
}

data "aws_ecr_authorization_token" "ecr_token" {
registry_id = var.account_id
}
# data "aws_ecr_authorization_token" "ecr_token" {
# registry_id = var.account_id
# }

data "aws_ecr_authorization_token" "token" {
registry_id = var.account_id
}
# data "aws_ecr_authorization_token" "token" {
# registry_id = var.account_id
# }
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# tflint-ignore: terraform_unused_declarations
variable "account_id" {
description = "aws account number"
type = string
Expand Down

0 comments on commit c62c074

Please sign in to comment.