Skip to content

Commit

Permalink
Merge pull request #33969 from hashicorp/b-cloudformation_stack_computed
Browse files Browse the repository at this point in the history
r/aws_cloudformation_stack: Set computed fields correctly
  • Loading branch information
johnsonaj authored Oct 17, 2023
2 parents 3294967 + d5413c9 commit 9857b58
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .changelog/33969.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_cloudformation_stack: Fix error when `computed` values are not set when there is no update
```
2 changes: 1 addition & 1 deletion internal/service/cloudformation/stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -332,7 +332,7 @@ func resourceStackUpdate(ctx context.Context, d *schema.ResourceData, meta inter
}, errCodeValidationError, "is invalid or cannot be assumed")

if tfawserr.ErrMessageContains(err, errCodeValidationError, "No updates are to be performed") {
return diags
return append(diags, resourceStackRead(ctx, d, meta)...)
}

if err != nil {
Expand Down

0 comments on commit 9857b58

Please sign in to comment.