Skip to content

Commit 1820a91

Browse files
committed
mention ignoring options in docs
1 parent bb2d512 commit 1820a91

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

docs/resources/resource_configuration.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,11 @@ resource "retool_resource_configuration" "postgres_production" {
4242
password = "prod_password"
4343
ssl = true
4444
})
45+
46+
lifecycle {
47+
# Ignore changes to options since the API adds default values
48+
ignore_changes = [options]
49+
}
4550
}
4651
4752
# Create a staging-specific configuration
@@ -57,6 +62,10 @@ resource "retool_resource_configuration" "postgres_staging" {
5762
password = "staging_password"
5863
ssl = true
5964
})
65+
66+
lifecycle {
67+
ignore_changes = [options]
68+
}
6069
}
6170
```
6271

examples/resources/retool_resource_configuration/resource.tf

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ resource "retool_resource_configuration" "postgres_production" {
2626
password = "prod_password"
2727
ssl = true
2828
})
29+
30+
lifecycle {
31+
# Ignore changes to options since the API adds default values
32+
ignore_changes = [options]
33+
}
2934
}
3035

3136
# Create a staging-specific configuration
@@ -41,5 +46,9 @@ resource "retool_resource_configuration" "postgres_staging" {
4146
password = "staging_password"
4247
ssl = true
4348
})
49+
50+
lifecycle {
51+
ignore_changes = [options]
52+
}
4453
}
4554

0 commit comments

Comments
 (0)