Skip to content

Commit

Permalink
Merge pull request #27367 from rquadling/master
Browse files Browse the repository at this point in the history
Fix resource/aws_rds_proxy_endpoint: Respect `tags_all` attribute
  • Loading branch information
ewbankkit authored Oct 24, 2022
2 parents 380f008 + 890e5ad commit 2d836cc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .changelog/27367.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:bug
resource/aws_rds_proxy_endpoint: Respect configured provider `default_tags` value on resource Update
```
4 changes: 2 additions & 2 deletions internal/service/rds/proxy_endpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -206,8 +206,8 @@ func resourceProxyEndpointUpdate(d *schema.ResourceData, meta interface{}) error
}
}

if d.HasChange("tags") {
o, n := d.GetChange("tags")
if d.HasChange("tags_all") {
o, n := d.GetChange("tags_all")

if err := UpdateTags(conn, d.Get("arn").(string), o, n); err != nil {
return fmt.Errorf("Error updating RDS DB Proxy Endpoint (%s) tags: %w", d.Get("arn").(string), err)
Expand Down

0 comments on commit 2d836cc

Please sign in to comment.