Resolves DefaultOS and ConfigurationManager conflict (#6244)

This commit is contained in:
Justin Clark 2016-04-19 11:59:03 -07:00 committed by Paul Stack
parent c011e1c3f3
commit 8249cb10eb
1 changed files with 4 additions and 0 deletions

View File

@ -310,6 +310,10 @@ func resourceAwsOpsworksStackCreate(d *schema.ResourceData, meta interface{}) er
DefaultOs: aws.String(d.Get("default_os").(string)),
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
if vpcId, ok := d.GetOk("vpc_id"); ok {
req.VpcId = aws.String(vpcId.(string))