Merge pull request #1412 from hashicorp/b-asg-in-classic
providers/aws: fix LCs being invalid in classic
This commit is contained in:
commit
a9ea489487
|
@ -278,10 +278,8 @@ func resourceAwsLaunchConfigurationCreate(d *schema.ResourceData, meta interface
|
||||||
createLaunchConfigurationOpts.PlacementTenancy = aws.String(v.(string))
|
createLaunchConfigurationOpts.PlacementTenancy = aws.String(v.(string))
|
||||||
}
|
}
|
||||||
|
|
||||||
if v := d.Get("associate_public_ip_address"); v != nil {
|
if v, ok := d.GetOk("associate_public_ip_address"); ok {
|
||||||
createLaunchConfigurationOpts.AssociatePublicIPAddress = aws.Boolean(v.(bool))
|
createLaunchConfigurationOpts.AssociatePublicIPAddress = aws.Boolean(v.(bool))
|
||||||
} else {
|
|
||||||
createLaunchConfigurationOpts.AssociatePublicIPAddress = aws.Boolean(false)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if v, ok := d.GetOk("key_name"); ok {
|
if v, ok := d.GetOk("key_name"); ok {
|
||||||
|
|
Loading…
Reference in New Issue