fix ecr authentication config
This commit is contained in:
@@ -7,3 +7,5 @@ resource "aws_ecr_repository" "myapp-repo" {
|
||||
scan_on_push = true
|
||||
}
|
||||
}
|
||||
|
||||
data "aws_ecr_authorization_token" "token" {}
|
||||
@@ -9,3 +9,12 @@ output cluster_url {
|
||||
output kubeconfig {
|
||||
value = "module.eks.kubeconfig"
|
||||
}
|
||||
|
||||
output ecr_user_name {
|
||||
value = data.aws_ecr_authorization_token.token.user_name
|
||||
}
|
||||
|
||||
output ecr_user_password {
|
||||
value = data.aws_ecr_authorization_token.token.password
|
||||
sensitive = true
|
||||
}
|
||||
Reference in New Issue
Block a user