buildkite / lifecycled

A daemon for responding to AWS AutoScaling Lifecycle Hooks
MIT License
146 stars 34 forks source link

daemon not receiving message from sns? #66

Closed Urahara closed 5 years ago

Urahara commented 5 years ago

Hi,

I trying to use this daemon but my daemon don't get message from sns (i receive the message in my email), and have done this setup:

  1. Created a SNS Topic
  2. On CloudWatch i have this event pattern:
    {
    "source": [
    "aws.autoscaling"
    ],
    "detail-type": [
    "EC2 Instance Launch Successful",
    "EC2 Instance Terminate Successful",
    "EC2 Instance Launch Unsuccessful",
    "EC2 Instance Terminate Unsuccessful",
    "EC2 Instance-launch Lifecycle Action",
    "EC2 Instance-terminate Lifecycle Action"
    ],
    "detail": {
    "AutoScalingGroupName": [
      "teste-terminate"
    ]
    }
    }
  3. On target i configured this way: captura de tela em 2019-01-08 12-59-56

I tried add/remove Lifecycle Hooks on autoscalling with Lifecycle Transition : Instance Terminate but it's seens that daemon don't receive the message. Is there any more documentation have i could do to try make this work? I think this could be related with format of message that aws is sending? Is there any message pattern that have to be sended to ARN?

Thanks!

Urahara commented 5 years ago

Creating lifecycle via cli resolved this.