1

We have a bunch of existing servers in EC2. Future servers are created with Cloudformation with Cloudwatch integration. However, I need to setup Cloudwatch for servers that weren't created with Cloudformation.

I have been asked to create a Cloudwatch Cloudformation stack. Is it possible to just create alarms in Cloudformation? If so, how do I specify which servers to monitor?

Thanks!

4

CloudWatch on EC2 is enabled with the EC2 API. Since you have already created the instances outside CloudFormation, CloudFormation cannot modify them. You can create Alarms with CloudFormation, but you cannot enable monitoring on the instances. If you have monitoring enabled, you can reference the instances by specifying the "Dimensions" property in the template.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.