provider/aws: fix issue with reading VPC id in AWS Security Group
This commit is contained in:
parent
acbca8101c
commit
8705f0f78f
|
@ -149,7 +149,7 @@ func resourceAwsSecurityGroupCreate(d *schema.ResourceData, meta interface{}) er
|
||||||
|
|
||||||
securityGroupOpts := &ec2.CreateSecurityGroupInput{}
|
securityGroupOpts := &ec2.CreateSecurityGroupInput{}
|
||||||
|
|
||||||
if v := d.Get("vpc_id"); v != nil {
|
if v, ok := d.GetOk("vpc_id"); ok {
|
||||||
securityGroupOpts.VPCID = aws.String(v.(string))
|
securityGroupOpts.VPCID = aws.String(v.(string))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue