Resolves DefaultOS and ConfigurationManager conflict (#6244)
This commit is contained in:
parent
c011e1c3f3
commit
8249cb10eb
|
@ -310,6 +310,10 @@ func resourceAwsOpsworksStackCreate(d *schema.ResourceData, meta interface{}) er
|
||||||
DefaultOs: aws.String(d.Get("default_os").(string)),
|
DefaultOs: aws.String(d.Get("default_os").(string)),
|
||||||
UseOpsworksSecurityGroups: aws.Bool(d.Get("use_opsworks_security_groups").(bool)),
|
UseOpsworksSecurityGroups: aws.Bool(d.Get("use_opsworks_security_groups").(bool)),
|
||||||
}
|
}
|
||||||
|
req.ConfigurationManager = &opsworks.StackConfigurationManager{
|
||||||
|
Name: aws.String(d.Get("configuration_manager_name").(string)),
|
||||||
|
Version: aws.String(d.Get("configuration_manager_version").(string)),
|
||||||
|
}
|
||||||
inVpc := false
|
inVpc := false
|
||||||
if vpcId, ok := d.GetOk("vpc_id"); ok {
|
if vpcId, ok := d.GetOk("vpc_id"); ok {
|
||||||
req.VpcId = aws.String(vpcId.(string))
|
req.VpcId = aws.String(vpcId.(string))
|
||||||
|
|
Loading…
Reference in New Issue