1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
The CloudWatch alarm embeds a Json payload in the context when sending the SNS notification, which is automatically extracted to the event variable of the Lambda - did you try reading that information? You should get the alarm name from it at the very least. For example, if you take a look at the following blog post (https://aws.amazon.com/blogs/mt/customize-amazon-cloudwatch-alarm-notifications-to-your-local-time-zone-part-1), you'll see that you can get the alarm name with alarmName=event['detail']['alarmName']
Likewise, you can get from event['detail'] the alarm configuration, which will give you extra information that you may need/want?
répondu il y a 10 mois
Contenus pertinents
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 2 ans
Side note: Why do you want to go through all of these steps you have to manually create instead of just using a scaling policy on the ASG?