This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SNS topic lifecycle hooks are sent to | |
resource "aws_sns_topic" "nomad_graceful_termination_topic" { | |
name = "${local.instance_prefix}-nomad_graceful_termination_topic" | |
} | |
resource "aws_sns_topic_policy" "nomad_graceful_termination_topic" { | |
arn = aws_sns_topic.nomad_graceful_termination_topic.arn | |
policy = data.aws_iam_policy_document.nomad_graceful_termination_topic_policy.json | |
} | |
data "aws_iam_policy_document" "nomad_graceful_termination_topic_policy" { | |
policy_id = "__default_policy_ID" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# lxc: linux Container library | |
# Authors: | |
# Daniel Lezcano <daniel.lezcano@free.fr> | |
# This library is free software; you can redistribute it and/or |