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.

feita há 2 anos461 visualizações
1 Resposta
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
respondido há 2 anos
  • No EC2 instance scale up and down. All applications are hosted on EC2 instances.

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas