Files
terraform-course/demo-15/sns.tf
T
Edward Viaene 5d9eeb6c4c Terraform 0.12 (#20)
* Terraform 0.12
2019-10-06 13:46:10 +02:00

16 lines
618 B
Terraform

# Uncomment if you want to have autoscaling notifications
#resource "aws_sns_topic" "example-sns" {
# name = "sg-sns"
# display_name = "example ASG SNS topic"
#} # email subscription is currently unsupported in terraform and can be done using the AWS Web Console
#
#resource "aws_autoscaling_notification" "example-notify" {
# group_names = ["${aws_autoscaling_group.example-autoscaling.name}"]
# topic_arn = "${aws_sns_topic.example-sns.arn}"
# notifications = [
# "autoscaling:EC2_INSTANCE_LAUNCH",
# "autoscaling:EC2_INSTANCE_TERMINATE",
# "autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
# ]
#}