File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
examples/resources/retool_resource_configuration Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments