Skip to content

Instantly share code, notes, and snippets.

@bogue1979
bogue1979 / Nomad_Agent_Autoscaling.tf
Last active May 1, 2022 11:15
Nomad Agent autoscaling
# 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"
@bogue1979
bogue1979 / lxc-debian
Created October 20, 2013 12:08
create lxc container
#!/bin/bash
#
# lxc: linux Container library
# Authors:
# Daniel Lezcano <daniel.lezcano@free.fr>
# This library is free software; you can redistribute it and/or