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

service/directconnect: vpn_gateway_id Argument Removals and Increase aws_dx_gateway_association Default Timeouts #14144

Merged
merged 3 commits into from
Jul 24, 2020

Commits on Jul 24, 2020

  1. resource/aws_dx_gateway_association: Increase default create/update/d…

    …elete timeouts to 30 minutes
    
    Previously, we were seeing consistent failures across many of acceptance tests:
    
    ```
        TestAccAwsDxGatewayAssociation_allowedPrefixesVpnGatewaySingleAccount: testing.go:684: Step 1 error: errors during apply:
    
            Error: error waiting for Direct Connect gateway association (ga-a59d30b3-e6de-435e-bb17-cd7ed23f400evgw-06bccd6488d2b8d87) to become available: timeout while waiting for state to become 'associated' (last state: 'updating', timeout: 10m0s)
    
        TestAccAwsDxGatewayAssociation_allowedPrefixesVpnGatewayCrossAccount: testing.go:684: Step 1 error: errors during apply:
    
            Error: error waiting for Direct Connect gateway association (ga-a8b1b976-c0a1-4b64-8560-9d9cc45d11a3vgw-0a2e52679acf9c250) to become available: timeout while waiting for state to become 'associated' (last state: 'updating', timeout: 10m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_basicTransitGatewaySingleAccount (989.81s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-48d0e3d3-e131-443d-9693-e64eff519baatgw-0a2a0ea77f65ed202) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_basicTransitGatewayCrossAccount (991.80s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-9f9c1ed2-97b6-41c5-8018-0724f6162b59tgw-06f7ce56df96282d7) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_basicVpnGatewaySingleAccount (1816.92s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-76c9d0f4-b0aa-4b1b-96d9-10ce8c3ca025vgw-0c47a2c63baf7d4d8) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    testing.go:745: Error destroying resource! WARNING: Dangling resources
    may exist. The full state and error is shown below.
    Error: errors during apply: error waiting for Direct Connect gateway association (ga-76c9d0f4-b0aa-4b1b-96d9-10ce8c3ca025vgw-0c47a2c63baf7d4d8) to be deleted: timeout while waiting for state to become 'disassociated, deleted' (last state: 'disassociating', timeout: 15m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_allowedPrefixesVpnGatewaySingleAccount (1816.89s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-12a5c1e8-322e-4bc1-8a5a-f4b778a00db3vgw-09c811d121256131b) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    testing.go:745: Error destroying resource! WARNING: Dangling resources
    may exist. The full state and error is shown below.
    Error: errors during apply: error waiting for Direct Connect gateway association (ga-12a5c1e8-322e-4bc1-8a5a-f4b778a00db3vgw-09c811d121256131b) to be deleted: timeout while waiting for state to become 'disassociated, deleted' (last state: 'disassociating', timeout: 15m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_allowedPrefixesVpnGatewayCrossAccount (1819.25s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-ccf678f2-5d51-441e-86c5-308c731f26abvgw-063e75f539bc3719c) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    testing.go:745: Error destroying resource! WARNING: Dangling resources
    may exist. The full state and error is shown below.
    Error: errors during apply: error waiting for Direct Connect gateway association (ga-ccf678f2-5d51-441e-86c5-308c731f26abvgw-063e75f539bc3719c) to be deleted: timeout while waiting for state to become 'disassociated, deleted' (last state: 'disassociating', timeout: 15m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_multiVpnGatewaysSingleAccount (2487.01s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-5d93ccd0-8344-4ee6-95f8-58af27e01301vgw-054e2b0e7ecf45c8d) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    Error: error waiting for Direct Connect gateway association (ga-5d93ccd0-8344-4ee6-95f8-58af27e01301vgw-057b39dbec7338ec1) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    testing.go:745: Error destroying resource! WARNING: Dangling resources
    may exist. The full state and error is shown below.
    Error: errors during apply: error waiting for Direct Connect gateway association (ga-5d93ccd0-8344-4ee6-95f8-58af27e01301vgw-057b39dbec7338ec1) to be deleted: timeout while waiting for state to become 'disassociated, deleted' (last state: 'disassociating', timeout: 15m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_basicVpnGatewayCrossAccount (2529.42s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-ad8143a9-657e-4ed2-9ebb-a78dd2bee2c1vgw-0d552249edec48941) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    
    testing.go:745: Error destroying resource! WARNING: Dangling resources
    may exist. The full state and error is shown below.
    Error: errors during apply: Error waiting for VPN Gateway "vgw-0d552249edec48941" to detach from VPC "vpc-0cbba5ddf6a4ec7ba": timeout while waiting for state to become 'detached' (last state: 'detaching', timeout: 15m0s)
    
    --- FAIL: TestAccAwsDxGatewayAssociation_deprecatedSingleAccount (2551.41s)
    testing.go:684: Step 0 error: errors during apply:
    Error: error waiting for Direct Connect gateway association (ga-c1c37095-ab8d-4dcd-9f97-b369face1ad4vgw-0576f5ab3096ace51) to become available: timeout while waiting for state to become 'associated' (last state: 'associating', timeout: 15m0s)
    ```
    bflad committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    44aa348 View commit details
    Browse the repository at this point in the history
  2. service/directconnect: Remove vpn_gateway_id arguments

    Reference: #13398
    
    Changes:
    
    ```
    * resource/aws_dx_gateway_association: Remove `vpn_gateway_id` argument
    * resource/aws_dx_gateway_association_proposal: Remove `vpn_gateway_id` argument
    ```
    
    Output from acceptance testing:
    
    ```
    --- PASS: TestAccAwsDxGatewayAssociation_basicTransitGatewaySingleAccount (2063.56s)
    --- PASS: TestAccAwsDxGatewayAssociation_basicTransitGatewayCrossAccount (2556.75s)
    --- PASS: TestAccAwsDxGatewayAssociation_multiVpnGatewaysSingleAccount (2668.06s)
    --- PASS: TestAccAwsDxGatewayAssociation_basicVpnGatewaySingleAccount (2674.09s)
    --- PASS: TestAccAwsDxGatewayAssociation_basicVpnGatewayCrossAccount (2677.20s)
    --- PASS: TestAccAwsDxGatewayAssociation_allowedPrefixesVpnGatewaySingleAccount (3612.36s)
    --- PASS: TestAccAwsDxGatewayAssociation_allowedPrefixesVpnGatewayCrossAccount (3856.32s)
    
    --- PASS: TestAccAwsDxGatewayAssociationProposal_basicVpnGateway (88.64s)
    --- PASS: TestAccAwsDxGatewayAssociationProposal_disappears (96.50s)
    --- PASS: TestAccAwsDxGatewayAssociationProposal_AllowedPrefixes (121.18s)
    --- PASS: TestAccAwsDxGatewayAssociationProposal_basicTransitGateway (182.42s)
    ```
    bflad committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    444df24 View commit details
    Browse the repository at this point in the history
  3. tests/resource/aws_dx_gateway_association: Ensure v0 state upgrade is…

    … still covered by acceptance testing
    
    Output from acceptance testing:
    
    ```
    --- PASS: TestAccAwsDxGatewayAssociation_V0StateUpgrade (2605.48s)
    ```
    bflad committed Jul 24, 2020
    Configuration menu
    Copy the full SHA
    5de3318 View commit details
    Browse the repository at this point in the history