Invoke AWS CloudFormation Stack

0

I was able to create an alarm for EC2 via the CF template. It takes some parameters. How do I create the same for 100s of EC2 instances? How do I get the parameter values dynamically? I don't want to do it one by one.

demandé il y a 2 ans461 vues
1 réponse
0

I don't think CF offers anything natively to handle dynamic creation of alarms for multiple instances. With the assumption that the EC2 instance scale up and down:

I would suggest using Event Bridge to notify when instances are created and trigger a Lambda function which would create the required cloudwatch alarms based on the event. The same process can be reversed when instances are scaling down. You can use SQS / SNS between Event Bridge and Lambda if you wish

--Syd

profile picture
Syd
répondu il y a 2 ans
  • No EC2 instance scale up and down. All applications are hosted on EC2 instances.

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions