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

Bug: 'databaseRemovalPolicy' - property is not removing the deletion protection from database #217

Open
Tobiklee opened this issue May 10, 2024 · 1 comment

Comments

@Tobiklee
Copy link

Description
When creating a new Keycloak instance the rollback will failed (I guess deletion aswell) because the deletion protection property is set to true even though databaseRemovalPolicy is set to RemovalPolicy.DESTROY.

A reproducible test case or series of steps

  1. create a new KeyCloak - Deployment:
new KeyCloak(this, 'KeyCloak', {
  hostname: '<hostname>',
  certificateArn: '<certificateArn>',
  keycloakVersion: KeycloakVersion.V22_0_4,
  auroraServerlessV2: true,
  nodeCount: 2,
  autoScaleTask: {
    min: 1,
    max: 10,
    targetCpuUtilization: 60,
  },
  databaseRemovalPolicy: RemovalPolicy.DESTROY,
});
  1. Delete Stack (or Creation Failes and Rollback happens)
  2. -> Stack is in a failed state

The version of our code being used
^2.9.0

Any modifications you've made relevant to the bug
no modifications were made, used code above

Anything unusual about your environment or deployment
I have used a fresh stack with only keycloak. Bug produced in region eu-central-1

@marko-ucentix
Copy link

Same here.

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

2 participants