-
Notifications
You must be signed in to change notification settings - Fork 265
Description
Describe the bug
After a successful upgrade of one QnABot stack (Stack A) to a 7.x version, we noticed that an independent deployment of QnABot via a separate stack (Stack B - 6.1.5 version of a QnABot) in the same account was affected. The Admin UI and Bot for Stack B no longer worked correctly and the Bot was not functioning. Tracking down the Admin UI errors, it turned out that the API get request on /questions was returning a 404 error. Looking in the log files for the responsible lambda, the CFN-DefaultQnABotSettings SSM parameter for this instance was not available and the lambda returned an error to the Admin UI. I checked cloudtrail for who deleted this SSM parameter and the user name associated with this delete was the CFN lambda for the first stack that was upgraded. Both stacks still exists. The upgrade of stack A effected stack B to the point that stack B is not usable due to the missing parameter. I don't know yet if anything else was deleted.
To Reproduce
I image, install stack A and B using QnABot version 6.1.5. Both stacks should operate fine. Upgrade stack A to 7.0.2. Verify that Stack B still functions and that the DefaultQnABotSettings SSM parameter still exists.
Expected behavior
Stack updates should operate independently of each other.
Please complete the following information about the solution:
- Version:6.1.5 and Version 7.0.2
To get the version of the solution, you can look at the description of the created CloudFormation stack. For example, "(SO0189) QnABot [...] v0.0.1".
- [ us-east-1] Region: us-east-1
- [ No] Was the solution modified from the version published on this repository? No
- If the answer to the previous question was yes, are the changes available on GitHub?
- Have you checked your service quotas for the services this solution uses?
- [Yes ] Were there any errors in the CloudWatch Logs?
Additional context
Still looking to find the DeleteParameter logic on the SSM parameter in the CFN lambda function. Something got confused and deleted multiple SSM parameters owned by different stacks.