amazon-cloudwatch-auto-alarms icon indicating copy to clipboard operation
amazon-cloudwatch-auto-alarms copied to clipboard

Is there a way to fire this manually for a running instance instead of stop/starting it?

Open vaughnd opened this issue 4 years ago • 5 comments

This would be really useful to manually add to existing EC2 instances with less disruption.

vaughnd avatar May 21 '21 10:05 vaughnd

Yeah I wonder if we could use a put/remove tag event in addition to the instance starting/stopping.

gumschu avatar Jul 13 '21 14:07 gumschu

Not exactly for put/remove tag but this should be able to pick up any new instances you want to hook up

GnatorX avatar Jul 29 '21 18:07 GnatorX

i set it up using put tags events using the following schema:

          "source": [
            "aws.tag"
          ],
          "detail-type": [
            "Tag Change on Resource"
          ],
          "detail": {
            "changed-tag-keys": [
              "Create_Auto_Alarms"
            ],
            "service": [
              "ec2"
            ],
            "resource-type": [
              "instance"
            ]
          }
        }

gumschu avatar Jul 30 '21 18:07 gumschu

@eschu21 Hi, did this solution work for you, could you perhaps ellaborate on the steps you did to configure this?

maxwell-ops-code avatar Nov 29 '21 10:11 maxwell-ops-code