more updates

This commit is contained in:
Dave Horton
2020-06-04 08:20:47 -04:00
parent 13e0b4fc53
commit 342b9e79bb
6 changed files with 7 additions and 10 deletions
@@ -75,7 +75,7 @@ tags:
EOT
systemctl enable datadog-agent
systemctl start datadog-agent
systemctl restart datadog-agent
fi
echo "user data script completed"
+2 -5
View File
@@ -1,6 +1,6 @@
# create an SNS notification topic
resource "aws_sns_topic" "jambonz_sns_topic" {
name = "${var.prefix}-fs-lifecycle-events"
# name = "${var.prefix}-fs-lifecycle-events"
}
resource "aws_iam_role" "jambonz_sns_publish" {
@@ -41,7 +41,7 @@ resource "aws_iam_policy" "allow_jambonz_sns_publish" {
EOF
}
resource "aws_iam_role_policy_attachment" "sns-publish-policy-attachment" {
resource "aws_iam_role_policy_attachment" "sns_publish_policy_attachment" {
role = aws_iam_role.jambonz_sns_publish.name
policy_arn = aws_iam_policy.allow_jambonz_sns_publish.arn
}
@@ -122,7 +122,4 @@ resource "aws_autoscaling_lifecycle_hook" "jambonz-scale-in" {
lifecycle_transition = "autoscaling:EC2_INSTANCE_TERMINATING"
notification_target_arn = aws_sns_topic.jambonz_sns_topic.arn
role_arn = aws_iam_role.jambonz_sns_publish.arn
depends_on = [aws_sns_topic.jambonz_sns_topic]
}
@@ -185,7 +185,7 @@ tags:
EOT
systemctl enable datadog-agent
systemctl start datadog-agent
systemctl restart datadog-agent
fi
@@ -75,7 +75,7 @@ tags:
EOT
systemctl enable datadog-agent
systemctl start datadog-agent
systemctl restart datadog-agent
fi
echo "user data script completed"
@@ -14,6 +14,6 @@ tags:
EOT
systemctl enable datadog-agent
systemctl start datadog-agent
systemctl restart datadog-agent
fi
@@ -185,7 +185,7 @@ tags:
EOT
systemctl enable datadog-agent
systemctl start datadog-agent
systemctl restart datadog-agent
fi