proud-art-41399
10/27/2022, 7:54 AMinfra
stack which provides basic resources for the rest of the stacks. One example is an ACM certificate which is managed by the infra
stack and used e.g. in an api
stack. Now when I update the infra
stack, it tries to replace the ACM certificate. It creates the new certificate but fails to delete the old one due to ResourceInUseException
exception because the certificate is in use by the resources managed by the api
stack (via a stack reference). I have to deploy the dependant stack so they use the new certificate and then re-redeploy the infra
stack.
Does this have any "standard" solution? I'm thinking of using an S3 bucket notifications which would trigger a Lambda function when the infra
stack (backed by S3 bucket) is updated, which would re-deploy the dependant stacks and then retry the deployment of infra
stack. But maybe there's a more elegant way.fierce-ability-58936
10/27/2022, 8:45 AMproud-art-41399
10/27/2022, 10:52 AMlittle-cartoon-10569
10/27/2022, 6:43 PMproud-art-41399
10/27/2022, 6:48 PMlittle-cartoon-10569
10/27/2022, 8:19 PM