keycloak / keycloak-benchmark

Keycloak Benchmark
https://www.keycloak.org/keycloak-benchmark/
Apache License 2.0
127 stars 70 forks source link

deploy-route53-failover-lambda task should be idempotent when re-deploying with other deployment args adjusted #755

Open kami619 opened 4 months ago

kami619 commented 4 months ago

Description

We could have situations where the lambda is deployed and then we would have to re-deploy to adjust CPU requests or Memory settings or instances of the Keycloak deployment.

Right now, when we attempt to do that, the deploy-route53-failover-lambda exits with a status code 254 indicating the role is already present. We should make this code path idempotent to be able to re-deploy even when the lambda is already created.

task: [deploy-route53-failover-lambda] DOMAIN=primary.gh-keycloak-a-gh-keycloak-b-nzixmqo.keycloak-benchmark.com ./route53_create_failover_lambda.sh
[deploy-route53-failover-lambda]
[deploy-route53-failover-lambda] An error occurred (EntityAlreadyExists) when calling the CreateRole operation: Role with name 963c6aea-869e-48b0-a900-b762a6d6a5fd already exists.
task: Failed to run task "default": exit status 254

Discussion

No response

Motivation

No response

Details

No response