From cde1afbfd35b0645e960490f45bca4744cbb8e9d Mon Sep 17 00:00:00 2001 From: Clint Date: Wed, 22 Mar 2017 15:26:47 -0500 Subject: [PATCH] provider/aws: OpsWorks updates (#12979) * provider/aws: Opsworks updates to allow minimal configuration * update --- builtin/providers/aws/resource_aws_opsworks_stack.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/builtin/providers/aws/resource_aws_opsworks_stack.go b/builtin/providers/aws/resource_aws_opsworks_stack.go index b7d04b28d..6a58583d5 100644 --- a/builtin/providers/aws/resource_aws_opsworks_stack.go +++ b/builtin/providers/aws/resource_aws_opsworks_stack.go @@ -71,7 +71,7 @@ func resourceAwsOpsworksStack() *schema.Resource { "configuration_manager_version": { Type: schema.TypeString, Optional: true, - Default: "11.4", + Default: "11.10", }, "manage_berkshelf": { @@ -156,6 +156,7 @@ func resourceAwsOpsworksStack() *schema.Resource { "default_subnet_id": { Type: schema.TypeString, Optional: true, + Computed: true, }, "hostname_theme": { @@ -179,6 +180,7 @@ func resourceAwsOpsworksStack() *schema.Resource { "vpc_id": { Type: schema.TypeString, ForceNew: true, + Computed: true, Optional: true, }, }, @@ -431,10 +433,12 @@ func resourceAwsOpsworksStackUpdate(d *schema.ResourceData, meta interface{}) er if v, ok := d.GetOk("color"); ok { req.Attributes["Color"] = aws.String(v.(string)) } + req.ChefConfiguration = &opsworks.ChefConfiguration{ BerkshelfVersion: aws.String(d.Get("berkshelf_version").(string)), ManageBerkshelf: aws.Bool(d.Get("manage_berkshelf").(bool)), } + req.ConfigurationManager = &opsworks.StackConfigurationManager{ Name: aws.String(d.Get("configuration_manager_name").(string)), Version: aws.String(d.Get("configuration_manager_version").(string)),