Repository: aws-samples/cdk-keycloak (language: python)

Issue:
Add template description
Let's stay aligned with `keycloak-on-aws`:

https://github.com/aws-samples/keycloak-on-aws/blob/aab1476598c234b2ad6087288f0fa231e2d9fea4/source/src/stack.ts#L56


Discussion / hints:

Fix patch:
diff --git a/src/keycloak.ts b/src/keycloak.ts
index 1e19607..c7686ba 100644
--- a/src/keycloak.ts
+++ b/src/keycloak.ts
@@ -202,6 +202,9 @@ export class KeyCloak extends cdk.Construct {
       autoScaleTask: props.autoScaleTask,
       env: props.env,
     });
+    if (!cdk.Stack.of(this).templateOptions.description) {
+      cdk.Stack.of(this).templateOptions.description = '(SO8021) - Deploy keycloak on AWS with cdk-keycloak construct library';
+    }
   }
   public addDatabase(props: DatabaseProps): Database {
     return new Database(this, 'Database', props);


Test patch:
diff --git a/test/__snapshots__/integ.snapshot.test.ts.snap b/test/__snapshots__/integ.snapshot.test.ts.snap
index 85ccf6b..eaaa529 100644
--- a/test/__snapshots__/integ.snapshot.test.ts.snap
+++ b/test/__snapshots__/integ.snapshot.test.ts.snap
@@ -2,6 +2,7 @@
 
 exports[`integ snapshot validation 1`] = `
 Object {
+  "Description": "(SO8021) - Deploy keycloak on AWS with cdk-keycloak construct library",
   "Outputs": Object {
     "KeyCloakDatabaseDBSecretArn28BEB641": Object {
       "Value": Object {