mirror of
https://github.com/opentofu/opentofu.git
synced 2025-02-25 18:45:20 -06:00
providers/aws/vpn_connection id-only refresh
This commit is contained in:
parent
d14b4872d7
commit
9e65c30707
@ -316,10 +316,8 @@ func resourceAwsVpnConnectionRead(d *schema.ResourceData, meta interface{}) erro
|
|||||||
if err := d.Set("vgw_telemetry", telemetryToMapList(vpnConnection.VgwTelemetry)); err != nil {
|
if err := d.Set("vgw_telemetry", telemetryToMapList(vpnConnection.VgwTelemetry)); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
if vpnConnection.Routes != nil {
|
if err := d.Set("routes", routesToMapList(vpnConnection.Routes)); err != nil {
|
||||||
if err := d.Set("routes", routesToMapList(vpnConnection.Routes)); err != nil {
|
return err
|
||||||
return err
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
|
@ -14,9 +14,10 @@ import (
|
|||||||
|
|
||||||
func TestAccAWSVpnConnection_basic(t *testing.T) {
|
func TestAccAWSVpnConnection_basic(t *testing.T) {
|
||||||
resource.Test(t, resource.TestCase{
|
resource.Test(t, resource.TestCase{
|
||||||
PreCheck: func() { testAccPreCheck(t) },
|
PreCheck: func() { testAccPreCheck(t) },
|
||||||
Providers: testAccProviders,
|
IDRefreshName: "aws_vpn_connection.foo",
|
||||||
CheckDestroy: testAccAwsVpnConnectionDestroy,
|
Providers: testAccProviders,
|
||||||
|
CheckDestroy: testAccAwsVpnConnectionDestroy,
|
||||||
Steps: []resource.TestStep{
|
Steps: []resource.TestStep{
|
||||||
resource.TestStep{
|
resource.TestStep{
|
||||||
Config: testAccAwsVpnConnectionConfig,
|
Config: testAccAwsVpnConnectionConfig,
|
||||||
|
Loading…
Reference in New Issue
Block a user