add docs for asg notifications
This commit is contained in:
parent
d65c8a421a
commit
3858ee0ade
|
@ -0,0 +1,65 @@
|
||||||
|
---
|
||||||
|
layout: "aws"
|
||||||
|
page_title: "AWS: aws_vpc"
|
||||||
|
sidebar_current: "docs-aws-resource-autoscaling-notification"
|
||||||
|
description: |-
|
||||||
|
Provides an AutoScaling Group with Notification support
|
||||||
|
---
|
||||||
|
|
||||||
|
# aws\_vpc
|
||||||
|
|
||||||
|
Provides an AutoScaling Group with Notification support, via SNS Topics
|
||||||
|
|
||||||
|
## Example Usage
|
||||||
|
|
||||||
|
Basic usage:
|
||||||
|
|
||||||
|
```
|
||||||
|
resource "aws_autoscaling_notification" "example_notifications" {
|
||||||
|
group_names = [
|
||||||
|
"${aws_autoscaling_group.bar.name}",
|
||||||
|
"${aws_autoscaling_group.foo.name}",
|
||||||
|
]
|
||||||
|
notifications = [
|
||||||
|
"autoscaling:EC2_INSTANCE_LAUNCH",
|
||||||
|
"autoscaling:EC2_INSTANCE_TERMINATE",
|
||||||
|
"autoscaling:EC2_INSTANCE_LAUNCH_ERROR"
|
||||||
|
]
|
||||||
|
topic_arn = "${aws_sns_topic.example.arn}"
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "aws_sns_topic" "example" {
|
||||||
|
name = "example-topic"
|
||||||
|
# arn is an exported attribute
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "aws_autoscaling_group" "bar" {
|
||||||
|
name = "foobar1-terraform-test"
|
||||||
|
[... ASG attributes ...]
|
||||||
|
}
|
||||||
|
|
||||||
|
resource "aws_autoscaling_group" "foo" {
|
||||||
|
name = "barfoo-terraform-test"
|
||||||
|
[... ASG attributes ...]
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
## Argument Reference
|
||||||
|
|
||||||
|
The following arguments are supported:
|
||||||
|
|
||||||
|
* `group_names` - (Required) A list of AutoScaling Group Names
|
||||||
|
* `notifications` - (Required) A list of Notification Types that trigger
|
||||||
|
notifications. Acceptable are documented [in the AWS documentation here][1]
|
||||||
|
* `topic_arn` - (Required) The Topic ARN for notifications to be sent through
|
||||||
|
|
||||||
|
## Attributes Reference
|
||||||
|
|
||||||
|
The following attributes are exported:
|
||||||
|
|
||||||
|
* `group_names`
|
||||||
|
* `notifications`
|
||||||
|
* `topic_arn`
|
||||||
|
|
||||||
|
|
||||||
|
[1]: http://docs.aws.amazon.com/AutoScaling/latest/APIReference/API_NotificationConfiguration.html
|
|
@ -17,6 +17,10 @@
|
||||||
<a href="/docs/providers/aws/r/autoscaling_group.html">aws_autoscaling_group</a>
|
<a href="/docs/providers/aws/r/autoscaling_group.html">aws_autoscaling_group</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
||||||
|
<li<%= sidebar_current("docs-aws-resource-autoscaling-notification") %>>
|
||||||
|
<a href="/docs/providers/aws/r/autoscaling_notification.html">aws_autoscaling_notification</a>
|
||||||
|
</li>
|
||||||
|
|
||||||
<li<%= sidebar_current("docs-aws-resource-customer-gateway") %>>
|
<li<%= sidebar_current("docs-aws-resource-customer-gateway") %>>
|
||||||
<a href="/docs/providers/aws/r/customer_gateway.html">aws_customer_gateway</a>
|
<a href="/docs/providers/aws/r/customer_gateway.html">aws_customer_gateway</a>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in New Issue