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

feat: add aws_dx_hosted_connection and aws_dx_connection_confirmation resource #16489

Merged
merged 9 commits into from
Oct 6, 2021
Merged

feat: add aws_dx_hosted_connection and aws_dx_connection_confirmation resource #16489

merged 9 commits into from
Oct 6, 2021

Conversation

kmcclive
Copy link
Contributor

@kmcclive kmcclive commented Nov 30, 2020

Community Note

  • Please vote on this pull request by adding a 👍 reaction to the original pull request comment to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for pull request followers and do not help prioritize the request

Closes #9366.
Closes #20950.

added aws_dx_hosted_connection resource
added aws_dx_connection_confirmation resource

Output from acceptance testing:

$ make testacc TESTARGS='-run=TestAccAWSDxConnection_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSDxConnection_ -timeout 120m
=== RUN   TestAccAWSDxConnection_basic
=== PAUSE TestAccAWSDxConnection_basic
=== RUN   TestAccAWSDxConnection_tags
=== PAUSE TestAccAWSDxConnection_tags
=== CONT  TestAccAWSDxConnection_basic
=== CONT  TestAccAWSDxConnection_tags
--- PASS: TestAccAWSDxConnection_basic (35.60s)
--- PASS: TestAccAWSDxConnection_tags (49.83s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       50.017s
$ make testacc TESTARGS='-run=TestAccAWSDxHostedConnection'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSDxHostedConnection -timeout 120m
=== RUN   TestAccAWSDxHostedConnection_basic
    provider_test.go:55: TEST_AWS_DX_CONNECTION_ID and TEST_AWS_DX_OWNER_ACCOUNT_ID must be set for tests involving hosted connections
--- SKIP: TestAccAWSDxHostedConnection_basic (0.00s)
=== RUN   TestAccAWSDxHostedConnection_tags
    provider_test.go:55: TEST_AWS_DX_CONNECTION_ID and TEST_AWS_DX_OWNER_ACCOUNT_ID must be set for tests involving hosted connections
--- SKIP: TestAccAWSDxHostedConnection_tags (0.00s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       0.083s
$ export TEST_AWS_DX_CONNECTION_ID=<Interconnect or LAG ID> && export TEST_AWS_DX_OWNER_ACCOUNT_ID=<Owner Account ID>
$ make testacc TESTARGS='-run=TestAccAWSDxHostedConnection'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSDxHostedConnection -timeout 120m
=== RUN   TestAccAWSDxHostedConnection_basic
=== PAUSE TestAccAWSDxHostedConnection_basic
=== RUN   TestAccAWSDxHostedConnection_tags
=== PAUSE TestAccAWSDxHostedConnection_tags
=== CONT  TestAccAWSDxHostedConnection_basic
=== CONT  TestAccAWSDxHostedConnection_tags
--- PASS: TestAccAWSDxHostedConnection_tags (29.98s)
--- PASS: TestAccAWSDxHostedConnection_basic (30.26s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       30.382s
$ make testacc TESTARGS='-run=TestAccAWSDxConnectionConfirmation'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSDxConnectionConfirmation -timeout 120m
=== RUN   TestAccAWSDxConnectionConfirmation_basic
=== PAUSE TestAccAWSDxConnectionConfirmation_basic
=== CONT  TestAccAWSDxConnectionConfirmation_basic
--- PASS: TestAccAWSDxConnectionConfirmation_basic (654.54s)
PASS
ok      github.com/terraform-providers/terraform-provider-aws/aws       654.768s

@kmcclive kmcclive requested a review from a team as a code owner November 30, 2020 19:10
@ghost ghost added size/XL Managed by automation to categorize the size of a PR. provider Pertains to the provider itself, rather than any interaction with AWS. service/directconnect Issues and PRs that pertain to the directconnect service. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure. labels Nov 30, 2020
@github-actions github-actions bot added the needs-triage Waiting for first response or review from a maintainer. label Nov 30, 2020
Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome @kmcclive 👋

It looks like this is your first Pull Request submission to the Terraform AWS Provider! If you haven’t already done so please make sure you have checked out our CONTRIBUTING guide and FAQ to make sure your contribution is adhering to best practice and has all the necessary elements in place for a successful approval.

Also take a look at our FAQ which details how we prioritize Pull Requests for inclusion.

Thanks again, and welcome to the community! 😃

@kmcclive
Copy link
Contributor Author

kmcclive commented Dec 1, 2020

This may close #9366, but was given the name "connection_confirmation" instead of "connection_accepter" to be consistent with the SDK and API.

Base automatically changed from master to main January 23, 2021 00:59
@breathingdust breathingdust added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. labels Sep 8, 2021
@github-actions github-actions bot added documentation Introduces or discusses updates to documentation. and removed documentation Introduces or discusses updates to documentation. labels Oct 5, 2021
@github-actions github-actions bot added the documentation Introduces or discusses updates to documentation. label Oct 5, 2021
@ewbankkit
Copy link
Contributor

ewbankkit commented Oct 5, 2021

@kmcclive Thanks for the contribution 🎉 👏.
Are you able to re-verify the acceptance tests for these 2 new resources? (cc @kevinkirkup)
I rebased and made changes to incorporate intervening work.

@ewbankkit
Copy link
Contributor

% make testacc TESTARGS='-run=TestAccAwsDxLag_\|TestAccAWSDxConnectionAssociation_\|TestAccAWSDxConnection_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsDxLag_\|TestAccAWSDxConnectionAssociation_\|TestAccAWSDxConnection_ -timeout 180m
=== RUN   TestAccAWSDxConnectionAssociation_basic
=== PAUSE TestAccAWSDxConnectionAssociation_basic
=== RUN   TestAccAWSDxConnectionAssociation_LAGOnConnection
=== PAUSE TestAccAWSDxConnectionAssociation_LAGOnConnection
=== RUN   TestAccAWSDxConnectionAssociation_Multiple
=== PAUSE TestAccAWSDxConnectionAssociation_Multiple
=== RUN   TestAccAwsDxLag_basic
=== PAUSE TestAccAwsDxLag_basic
=== RUN   TestAccAwsDxLag_disappears
=== PAUSE TestAccAwsDxLag_disappears
=== RUN   TestAccAwsDxLag_ConnectionID
=== PAUSE TestAccAwsDxLag_ConnectionID
=== RUN   TestAccAwsDxLag_ProviderName
=== PAUSE TestAccAwsDxLag_ProviderName
=== RUN   TestAccAwsDxLag_Tags
=== PAUSE TestAccAwsDxLag_Tags
=== CONT  TestAccAWSDxConnectionAssociation_basic
=== CONT  TestAccAwsDxLag_ConnectionID
=== CONT  TestAccAwsDxLag_basic
=== CONT  TestAccAWSDxConnectionAssociation_LAGOnConnection
=== CONT  TestAccAwsDxLag_Tags
=== CONT  TestAccAwsDxLag_disappears
=== CONT  TestAccAWSDxConnectionAssociation_Multiple
=== CONT  TestAccAwsDxLag_ProviderName
--- PASS: TestAccAWSDxConnectionAssociation_basic (24.32s)
--- PASS: TestAccAwsDxLag_disappears (25.33s)
--- PASS: TestAccAWSDxConnectionAssociation_Multiple (27.86s)
--- PASS: TestAccAWSDxConnectionAssociation_LAGOnConnection (29.90s)
--- PASS: TestAccAwsDxLag_ConnectionID (32.05s)
--- PASS: TestAccAwsDxLag_ProviderName (33.35s)
--- PASS: TestAccAwsDxLag_basic (42.20s)
--- PASS: TestAccAwsDxLag_Tags (57.15s)
PASS
ok  	github.com/terraform-providers/terraform-provider-aws/aws	60.307s

@ewbankkit ewbankkit merged commit 2a55ab6 into hashicorp:main Oct 6, 2021
@github-actions github-actions bot added this to the v3.62.0 milestone Oct 6, 2021
@github-actions
Copy link

github-actions bot commented Oct 8, 2021

This functionality has been released in v3.62.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@github-actions
Copy link

I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 17, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
documentation Introduces or discusses updates to documentation. new-resource Introduces a new resource. provider Pertains to the provider itself, rather than any interaction with AWS. service/directconnect Issues and PRs that pertain to the directconnect service. size/XL Managed by automation to categorize the size of a PR. tests PRs: expanded test coverage. Issues: expanded coverage, enhancements to test infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

aws_dx_lag should have connection_id as additional input New resource: aws_dx_connection_accepter
3 participants