Removing a terraform test configuration

This commit is contained in:
stack72 2017-03-05 15:47:28 +02:00
parent d50f2aca6f
commit 300ff13b58
No known key found for this signature in database
GPG Key ID: 8619A619B085CB16
1 changed files with 0 additions and 36 deletions

36
main.tf
View File

@ -1,36 +0,0 @@
provider "aws" {
region = "us-west-2"
}
resource "aws_launch_configuration" "foobar" {
name_prefix = "test-"
image_id = "ami-21f78e11"
instance_type = "t1.micro"
}
resource "aws_autoscaling_group" "foobar" {
availability_zones = ["us-west-2a"]
name = "test"
max_size = 1
min_size = 1
health_check_grace_period = 300
health_check_type = "ELB"
force_delete = true
termination_policies = ["OldestInstance"]
launch_configuration = "${aws_launch_configuration.foobar.name}"
tag {
key = "Foo"
value = "foo-bar"
propagate_at_launch = true
}
}
resource "aws_autoscaling_schedule" "foobar" {
scheduled_action_name = "foobar"
min_size = 0
max_size = 1
desired_capacity = 0
start_time = "2017-12-11T18:00:00Z"
end_time = "2017-12-12T06:00:00Z"
autoscaling_group_name = "${aws_autoscaling_group.foobar.name}"
}