aws-samples / amazon-q-slack-gateway

MIT No Attribution
81 stars 30 forks source link

Fix/add stack description, Initialize secret with valid JSON, Configure DynamoDB tables to be removed on stack deletion #8

Closed rstrahan closed 11 months ago

rstrahan commented 11 months ago

Issue #, if available:

Description of changes:

  1. Add Stack Description (with version read from package.json file) to CDK stack constructor, for visibility of deployed project and version from CloudFormation.

  2. Configure DynamoDB tables to be removed on stack deletion

  3. Initialize secret with valid JSON containing placeholders.. a) syntax more obvious to users editing the secret for the first time, and b) error message thrown by the Lambda more clear if user forgets to edit the initial secret value (it current throws a 'invalid JSON' error - better to throw a slack auth error).
    Initial value now looks like this:

image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.