Skip to content

Commit

Permalink
Merge pull request #39054 from hashicorp/d-db_instance_role_associati…
Browse files Browse the repository at this point in the history
…on-example

docs: `db_instance_role_association`: add `replace_triggered_by` to example config
  • Loading branch information
justinretzolk authored Aug 29, 2024
2 parents 96a591b + 4ee53fe commit bf72bc0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions website/docs/r/db_instance_role_association.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ resource "aws_db_instance_role_association" "example" {
db_instance_identifier = aws_db_instance.example.identifier
feature_name = "S3_INTEGRATION"
role_arn = aws_iam_role.example.arn
# Only necessary where the instance identifier is a known string value; ensuring recreation when the instance is replaced. Requires Terraform 1.2 or later.
lifecycle {
replace_triggered_by = [
aws_db_instance.example.id
]
}
}
```

Expand Down

0 comments on commit bf72bc0

Please sign in to comment.