1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
1
I can think of two ways to achieve this.
First Set the lambda up as an cloudwatch rule which is triggered by this specific stack update - I believe this would have to be a "AWS API Call via CloudTrail" event. Your nested stack would create the cloudwatch rule and potentially run the lambda on the initial creation. But I don't think this will work in your case as you need the output within the stack on the update
Second - one I have used multiple times Create a parameter to the parent stack, pass to nested stack and add as a environment var within your lambda. When I have used this method I usually triggered via a pipeline so I make the parameter the pipeline-execution-id so it changes on every execution.
Contenus pertinents
- demandé il y a un an
- demandé il y a un mois
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans
- AWS OFFICIELA mis à jour il y a 3 ans