From 1170111c7eb498590dd9d411fe3ae516e6f95a49 Mon Sep 17 00:00:00 2001 From: Tomotaka Sakuma Date: Sun, 2 Nov 2014 08:21:55 +0900 Subject: [PATCH] support associate_public_ip_address for aws_launch_configuration --- builtin/providers/aws/resource_aws_launch_configuration.go | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/builtin/providers/aws/resource_aws_launch_configuration.go b/builtin/providers/aws/resource_aws_launch_configuration.go index 0cb80c395..0b3fcacb5 100644 --- a/builtin/providers/aws/resource_aws_launch_configuration.go +++ b/builtin/providers/aws/resource_aws_launch_configuration.go @@ -75,6 +75,12 @@ func resourceAwsLaunchConfiguration() *schema.Resource { return hashcode.String(v.(string)) }, }, + + "associate_public_ip_address": &schema.Schema{ + Type: schema.TypeBool, + Optional: true, + Default: false, + }, }, } } @@ -90,6 +96,7 @@ func resourceAwsLaunchConfigurationCreate(d *schema.ResourceData, meta interface createLaunchConfigurationOpts.InstanceType = d.Get("instance_type").(string) createLaunchConfigurationOpts.KeyName = d.Get("key_name").(string) createLaunchConfigurationOpts.UserData = d.Get("user_data").(string) + createLaunchConfigurationOpts.AssociatePublicIpAddress = d.Get("associate_public_ip_address").(bool) if v, ok := d.GetOk("security_groups"); ok { createLaunchConfigurationOpts.SecurityGroups = expandStringList(