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

AWS region is hard coded in the IAM Policy for Keyclock (keyclock.tf) #20

Open
shivkanwer opened this issue Jan 24, 2024 · 6 comments
Open

Comments

@shivkanwer
Copy link
Contributor

AWS region is hard coded to us-west-2 when creating the IAM policy for keyclock. If the user chooses to deploy the reference architecture in a different AWS region, the KeyClock IAM policy still looks for a secret in us-west-2 which does not exist and breaks the implementation.

image

Proposed Solution:
"arn:aws:secretsmanager:us-west-2:${data.aws_caller_identity.current.account_id}:secret:cnoe/keycloak/*" should be replaced by "arn:aws:secretsmanager:${var.region}:${data.aws_caller_identity.current.account_id}:secret:cnoe/keycloak/*"

@nabuskey
Copy link
Contributor

I think this was supposed to be addressed in #5. @kahilof Any update on the PR?

@allamand
Copy link
Contributor

Maybe related, but tried to isntall ref architecture, and hist the following : Error: secret "keycloak-config" not found I deploy in eu-west-3

@nimakaviani
Copy link
Contributor

takes a bit of time for the idpbuilder to reconcile and register keycloak-config. did it eventually resolve or did it completely fail?

@allamand
Copy link
Contributor

I just see the postgresql failed also, seems i need to install ebs csi driver

@allamand
Copy link
Contributor

with that it works, but I also patch the terraform to use my region, not sure if it was needed or not

@allamand
Copy link
Contributor

in fact it does not progress:

kubectl_manifest.application_argocd_keycloak: Still creating... [21m50s elapsed]

while the ArgoCD keycload Application seems healthy:

argocd keycloak Synced Healthy

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

No branches or pull requests

4 participants