aws-samples / cdk-keycloak

CDK construct library that allows you to create KeyCloak on AWS in TypeScript or Python
Apache License 2.0
89 stars 30 forks source link

Allow secrets for the Keycloak container to be passed as an parameter in KeyCloakProps #202

Open nidhiraj98 opened 1 year ago

nidhiraj98 commented 1 year ago

Using AWS secrets as environment variables in Fargate container requires it to be passed in the secrets parameter within FargateTaskDefinition.addContainer().

Currently cdk-keycloak doesn't allow us to pass secrets from AWS Secrets Manager to the container in which Keycloak is deployed. The secrets parameter has been hardcoded to use only the ones generated by the Keycloak stack.

Request: Allow secrets parameter within FargateTaskDefinition.addContainer() to be appended with custom secrets.