dsaidgovsg/terraform-modules

Detect `user_data` failure

lawliet89 opened this issue · 0 comments

We run pretty elaborate scripts in the user_data portions of the EC2 instances.

We need some way to detect if these scripts have failed.

Probabilities:

Idea:

  • Define the existence of a user_data completion marker file as a service health check in Consul
  • Forward logs via td-agent from User_data

TODOs:

  • Consul Server
  • Consul Agents (#131)
  • Forward user_data logs via td-agent