diff --git a/.changelog/21085.txt b/.changelog/21085.txt new file mode 100644 index 00000000000..743edc222af --- /dev/null +++ b/.changelog/21085.txt @@ -0,0 +1,7 @@ +```release-note:bug +resource/aws_dx_connection: Mark `provider_name` as Computed to avoid resource recreation with pre-v3.56.0 configurations +``` + +```release-note:bug +resource/aws_dx_lag: Mark `provider_name` as Computed to avoid resource recreation with pre-v3.56.0 configurations +``` \ No newline at end of file diff --git a/aws/resource_aws_dx_connection.go b/aws/resource_aws_dx_connection.go index b5d98004733..6f8212a0e4d 100644 --- a/aws/resource_aws_dx_connection.go +++ b/aws/resource_aws_dx_connection.go @@ -65,6 +65,7 @@ func resourceAwsDxConnection() *schema.Resource { "provider_name": { Type: schema.TypeString, Optional: true, + Computed: true, ForceNew: true, }, "tags": tagsSchema(), diff --git a/aws/resource_aws_dx_lag.go b/aws/resource_aws_dx_lag.go index 11cdbafe44f..1ce690a48a5 100644 --- a/aws/resource_aws_dx_lag.go +++ b/aws/resource_aws_dx_lag.go @@ -65,6 +65,7 @@ func resourceAwsDxLag() *schema.Resource { "provider_name": { Type: schema.TypeString, Optional: true, + Computed: true, ForceNew: true, }, "tags": tagsSchema(),