Skip to content

Commit

Permalink
Merge pull request #2262 from seriousben/support-update-cf-stack-tags
Browse files Browse the repository at this point in the history
resource/aws_cloudformation_stack: Support updating tags
  • Loading branch information
radeksimko authored Nov 15, 2017
2 parents 04b31ad + 1e24c16 commit 84dcbf9
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 84dcbf9

Please sign in to comment.