Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save chloegrace94/9fca9565674d73c4b80d43f75338e0c0 to your computer and use it in GitHub Desktop.
Save chloegrace94/9fca9565674d73c4b80d43f75338e0c0 to your computer and use it in GitHub Desktop.
Interactive Slack message formatting used by reminder Lambda for running instance reminder service
{
"text": message,
"channel": slack_owner,
"attachments": [
{
"fallback": "Sorry, an error has occured",
"callback_id": "instance_reminder",
"attachment_type": "default",
"actions": [
{
"name": instance_info,
"text": "Stop",
"style": "danger",
"type": "button",
"value": "stop",
"confirm": {
"title": "Are you sure?",
"text": ":electric_plug: This will stop your instance",
"ok_text": "Shutdown",
"dismiss_text": "Cancel"
}
},
{
"name": instance_info,
"text": "Keep up",
"type": "button",
"value": "keep_up"
}
]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment