Skip to content

Commit

Permalink
resource/aws_cloudformation_stack: Support updating tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Boudreau committed Nov 13, 2017
1 parent ce28900 commit 1e24c16
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion aws/resource_aws_cloudformation_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ func resourceAwsCloudFormationStack() *schema.Resource {
"tags": {
Type: schema.TypeMap,
Optional: true,
ForceNew: true,
},
"iam_role_arn": {
Type: schema.TypeString,
Expand Down Expand Up @@ -386,6 +385,10 @@ func resourceAwsCloudFormationStackUpdate(d *schema.ResourceData, meta interface
input.Parameters = expandCloudFormationParameters(v.(map[string]interface{}))
}

if v, ok := d.GetOk("tags"); ok {
input.Tags = expandCloudFormationTags(v.(map[string]interface{}))
}

if d.HasChange("policy_body") {
policy, err := normalizeJsonString(d.Get("policy_body"))
if err != nil {
Expand Down

0 comments on commit 1e24c16

Please sign in to comment.