You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 11, 2023. It is now read-only.
Jun 26 12:39:35 ip-10-23-11-146.ap-south-1.compute.internal systemd[1]: Started Autoscale Lifecycle Daemon.
56
+
Jun 26 12:39:35 ip-10-23-11-146.ap-south-1.compute.internal systemd[1]: Starting Autoscale Lifecycle Daemon...
57
+
Jun 26 12:39:35 ip-10-23-11-146.ap-south-1.compute.internal lifecycled[3412]: {"level":"info","msg":"Looking up instance id from metadata service","time":"2020-06-26T12:39:35Z"}
58
+
Jun 26 12:39:35 ip-10-23-11-146.ap-south-1.compute.internal lifecycled[3412]: {"instanceId":"i-xxx","level":"info","listener":"autoscaling","msg":"Starting listener","time":"2020-06-26T12:39:35Z"}
59
+
Jun 26 12:39:35 ip-10-23-11-146.ap-south-1.compute.internal lifecycled[3412]: {"instanceId":"i-xxx","level":"info","msg":"Waiting for termination notices","time":"2020-06-26T12:39:35Z"}
34
60
```
35
-
systemctl status lifecycled.service
36
-
```
37
-
38
61
39
-
## Test the Notification
40
-
41
-
To generate a notification for a launch event, update the Auto Scaling group by increasing the desired capacity of the Auto Scaling group by 1. You receive a notification within a few minutes after instance launch.
62
+
## Note about lifecycle-handler.sh
42
63
43
-
To change the desired capacity using the console
64
+
For testing that the handler is working properly, you have to observe
65
+
that you are able to observe the side effect from the script.
44
66
45
-
Open the Amazon EC2 console at https://console.aws.amazon.com/ec2/.
67
+
One easy way to validate is by spawning a new EC2 instance with a
68
+
sample website deployed in it (You could use busybox for it) and then
69
+
doing a SSH and watching to see if you are able to observe any logs on
70
+
it whenever it's being hit with an HTTP request. Example:
46
71
47
-
On the navigation pane, under Auto Scaling, choose Auto Scaling Groups.
0 commit comments