Skip to content

Commit d2c960f

Browse files
Enable accurate bridge previews by default (#5415)
Enables accurate bridge previews for the AWS provider. This should improve the accuracy of our diffs and previews. Part of pulumi/pulumi-terraform-bridge#2598 fixes #5296
1 parent 980f16f commit d2c960f

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

examples/examples_yaml_test.go

+3-1
Original file line numberDiff line numberDiff line change
@@ -1688,7 +1688,9 @@ func TestMigrateRdsInstance(t *testing.T) {
16881688
"response": {
16891689
"stables": "*",
16901690
"changes": "*",
1691-
"hasDetailedDiff": true
1691+
"hasDetailedDiff": true,
1692+
"detailedDiff": "*",
1693+
"diffs": "*"
16921694
}
16931695
}
16941696
]`

provider/resources.go

+1
Original file line numberDiff line numberDiff line change
@@ -5435,6 +5435,7 @@ compatibility shim in favor of the new "name" field.`)
54355435
},
54365436
Namespaces: namespaceMap,
54375437
},
5438+
EnableAccurateBridgePreview: true,
54385439
}
54395440

54405441
rAlias := func(token string, prev, current tokens.Type, info *tfbridge.ResourceInfo) {

provider/tags_test.go

+2-6
Original file line numberDiff line numberDiff line change
@@ -488,12 +488,8 @@ func TestAddingEmptyTagProducesChangeDiff(t *testing.T) {
488488
"changes": "DIFF_SOME",
489489
"hasDetailedDiff": true,
490490
"detailedDiff": {
491-
"tags": {
492-
"kind": "UPDATE"
493-
},
494-
"tagsAll": {
495-
"kind": "UPDATE"
496-
}
491+
"tags.y": {},
492+
"tagsAll.y": {}
497493
},
498494
"diffs": ["*", "*"]
499495
}

0 commit comments

Comments
 (0)