Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resource/aws_vpn_connection: Prevent flipped tunnel1_* and tunnel2_* ordering when tunnel1_inside_cidr, tunnel1_inside_ipv6_cidr, or tunnel1_preshared_key is configured #19077

Merged
merged 3 commits into from
Apr 23, 2021

Commits on Apr 23, 2021

  1. resource/aws_vpn_connection: Prevent flipped tunnel1_* and `tunnel2…

    …_*` ordering when `tunnel1_inside_cidr`, `tunnel1_inside_ipv6_cidr`, or `tunnel1_preshared_key` is configured
    
    Reference: #396
    Reference: #3359
    Reference: #4728
    Reference: #5809
    Reference: #11293
    
    Previously (race condition of automatically assigned outside IP addresses):
    
    ```
    === CONT  TestAccAWSVpnConnection_tunnelOptions
    resource_aws_vpn_connection_test.go:210: Step 15/15 error: Check failed: Check 4/6 error: aws_vpn_connection.test: Attribute 'tunnel1_preshared_key' expected "12345678", got "abcdefgh"
    --- FAIL: TestAccAWSVpnConnection_tunnelOptions (738.28s)
    ```
    
    Output from acceptance testing:
    
    ```
    --- PASS: TestAccAWSVpnConnection_Tunnel1PresharedKey (251.02s)
    --- PASS: TestAccAWSVpnConnection_withoutStaticRoutes (263.77s)
    --- PASS: TestAccAWSVpnConnection_Tunnel1InsideCidr (335.14s)
    --- PASS: TestAccAWSVpnConnection_tunnelOptions (342.30s)
    --- PASS: TestAccAWSVpnConnection_disappears (388.07s)
    --- PASS: TestAccAWSVpnConnection_tags (445.29s)
    --- PASS: TestAccAWSVpnConnection_basic (797.33s)
    --- PASS: TestAccAWSVpnConnection_withIpv6 (1235.35s)
    --- PASS: TestAccAWSVpnConnection_TransitGatewayID (1235.72s)
    --- PASS: TestAccAWSVpnConnection_withEnableAcceleration (1352.28s)
    --- PASS: TestAccAWSVpnConnection_Tunnel1InsideIpv6Cidr (1595.79s)
    ```
    bflad committed Apr 23, 2021
    Configuration menu
    Copy the full SHA
    83256e0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e0ad75b View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ac1d7c5 View commit details
    Browse the repository at this point in the history