add associate_public_ip_address attr to the acceptance test of aws_launch_configuration

This commit is contained in:
Tomotaka Sakuma 2014-11-24 13:26:03 +09:00
parent 1170111c7e
commit db8256a4a7
1 changed files with 3 additions and 0 deletions

View File

@ -28,6 +28,8 @@ func TestAccAWSLaunchConfiguration(t *testing.T) {
"aws_launch_configuration.bar", "name", "foobar-terraform-test"), "aws_launch_configuration.bar", "name", "foobar-terraform-test"),
resource.TestCheckResourceAttr( resource.TestCheckResourceAttr(
"aws_launch_configuration.bar", "instance_type", "t1.micro"), "aws_launch_configuration.bar", "instance_type", "t1.micro"),
resource.TestCheckResourceAttr(
"aws_launch_configuration.bar", "associate_public_ip_address", "true"),
), ),
}, },
}, },
@ -124,5 +126,6 @@ resource "aws_launch_configuration" "bar" {
image_id = "ami-21f78e11" image_id = "ami-21f78e11"
instance_type = "t1.micro" instance_type = "t1.micro"
user_data = "foobar-user-data" user_data = "foobar-user-data"
associate_public_ip_address = true
} }
` `