-
Notifications
You must be signed in to change notification settings - Fork 9.2k
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
New Data Source: aws_dx_connection #17852
New Data Source: aws_dx_connection #17852
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Welcome @yzguy 👋
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! 😃
@ewbankkit Absolutely! Will update PR soon. |
Couple things I believe I did right, but am unsure.
I referenced @robh007 #9705 and @beezly branch and want to make sure to give credit as some parts were copy+paste. |
@yzguy The better way here I think would be to add an additional data source Let me know if this is not clear or if you are unable to make progress. |
|
@ewbankkit I was able to get back to this after, completing the changes you suggested. Using the API Gateway v2 Datasource as a reference. Couple things I'm not sure about are on Other thing is that I pass in the Bandwidth and Locations in the tests, and that works, but I believe because both are |
@yzguy The location/bandwidth issue will be resolvable once #9735, |
@ewbankkit Done! |
Acceptance test output: % 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 180m === RUN TestAccAwsDxConnection_basic === PAUSE TestAccAwsDxConnection_basic === RUN TestAccAwsDxConnection_disappears === PAUSE TestAccAwsDxConnection_disappears === RUN TestAccAwsDxConnection_Tags === PAUSE TestAccAwsDxConnection_Tags === CONT TestAccAwsDxConnection_basic === CONT TestAccAwsDxConnection_Tags === CONT TestAccAwsDxConnection_disappears --- PASS: TestAccAwsDxConnection_disappears (24.65s) --- PASS: TestAccAwsDxConnection_basic (30.83s) --- PASS: TestAccAwsDxConnection_Tags (68.13s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 74.122s
Acceptance test output: % make testacc TESTARGS='-run=TestAccAwsDxConnection_\|TestAccAwsDxLag_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsDxConnection_\|TestAccAwsDxLag_ -timeout 180m === RUN TestAccAwsDxConnection_basic === PAUSE TestAccAwsDxConnection_basic === RUN TestAccAwsDxConnection_disappears === PAUSE TestAccAwsDxConnection_disappears === RUN TestAccAwsDxConnection_Tags === PAUSE TestAccAwsDxConnection_Tags === RUN TestAccAwsDxLag_basic === PAUSE TestAccAwsDxLag_basic === RUN TestAccAwsDxLag_disappears === PAUSE TestAccAwsDxLag_disappears === RUN TestAccAwsDxLag_Tags === PAUSE TestAccAwsDxLag_Tags === CONT TestAccAwsDxConnection_basic === CONT TestAccAwsDxLag_disappears === CONT TestAccAwsDxLag_Tags === CONT TestAccAwsDxConnection_disappears === CONT TestAccAwsDxConnection_Tags === CONT TestAccAwsDxLag_basic --- PASS: TestAccAwsDxLag_disappears (19.44s) --- PASS: TestAccAwsDxConnection_disappears (19.49s) --- PASS: TestAccAwsDxConnection_basic (23.77s) --- PASS: TestAccAwsDxLag_basic (36.78s) --- PASS: TestAccAwsDxConnection_Tags (52.49s) --- PASS: TestAccAwsDxLag_Tags (53.92s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 57.070s
Acceptance test output: % make testacc TESTARGS='-run=TestAccAWSDxConnectionAssociation_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAWSDxConnectionAssociation_ -timeout 180m === RUN TestAccAWSDxConnectionAssociation_basic === PAUSE TestAccAWSDxConnectionAssociation_basic === RUN TestAccAWSDxConnectionAssociation_multiConns === PAUSE TestAccAWSDxConnectionAssociation_multiConns === CONT TestAccAWSDxConnectionAssociation_basic === CONT TestAccAWSDxConnectionAssociation_multiConns --- PASS: TestAccAWSDxConnectionAssociation_basic (25.72s) --- PASS: TestAccAWSDxConnectionAssociation_multiConns (26.54s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 34.593s
r/aws_dx_lag: Add 'owner_account_id' attribute. Acceptance test output: % make testacc TESTARGS='-run=TestAccAwsDxConnection_basic\|TestAccAwsDxLag_basic' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsDxConnection_basic\|TestAccAwsDxLag_basic -timeout 180m === RUN TestAccAwsDxConnection_basic === PAUSE TestAccAwsDxConnection_basic === RUN TestAccAwsDxLag_basic === PAUSE TestAccAwsDxLag_basic === CONT TestAccAwsDxConnection_basic === CONT TestAccAwsDxLag_basic --- PASS: TestAccAwsDxConnection_basic (19.66s) --- PASS: TestAccAwsDxLag_basic (33.61s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 36.900s
Acceptance test output: % make testacc TESTARGS='-run=TestAccDataSourceAwsDxConnection_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsDxConnection_ -timeout 180m === RUN TestAccDataSourceAwsDxConnection_basic === PAUSE TestAccDataSourceAwsDxConnection_basic === CONT TestAccDataSourceAwsDxConnection_basic --- PASS: TestAccDataSourceAwsDxConnection_basic (16.58s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 21.036s
r/aws_dx_lag: Add 'provider_name' argument. Acceptance test output: % make testacc TESTARGS='-run=TestAccAwsDxConnection_basic\|TestAccAwsDxConnection_ProviderName' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsDxConnection_basic\|TestAccAwsDxConnection_ProviderName -timeout 180m === RUN TestAccAwsDxConnection_basic === PAUSE TestAccAwsDxConnection_basic === RUN TestAccAwsDxConnection_ProviderName === PAUSE TestAccAwsDxConnection_ProviderName === CONT TestAccAwsDxConnection_basic === CONT TestAccAwsDxConnection_ProviderName --- PASS: TestAccAwsDxConnection_basic (23.95s) --- PASS: TestAccAwsDxConnection_ProviderName (26.53s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 32.586s % make testacc TESTARGS='-run=TestAccAwsDxLag_basic\|TestAccAwsDxLag_ProviderName' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccAwsDxLag_basic\|TestAccAwsDxLag_ProviderName -timeout 180m === RUN TestAccAwsDxLag_basic === PAUSE TestAccAwsDxLag_basic === RUN TestAccAwsDxLag_ProviderName === PAUSE TestAccAwsDxLag_ProviderName === CONT TestAccAwsDxLag_basic === CONT TestAccAwsDxLag_ProviderName --- PASS: TestAccAwsDxLag_ProviderName (24.24s) --- PASS: TestAccAwsDxLag_basic (33.67s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 39.380s
Acceptance test output: % make testacc TESTARGS='-run=TestAccDataSourceAwsDxConnection_' ==> Checking that code complies with gofmt requirements... TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsDxConnection_ -timeout 180m === RUN TestAccDataSourceAwsDxConnection_basic === PAUSE TestAccDataSourceAwsDxConnection_basic === CONT TestAccDataSourceAwsDxConnection_basic --- PASS: TestAccDataSourceAwsDxConnection_basic (24.67s) PASS ok github.com/terraform-providers/terraform-provider-aws/aws 29.105s
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🚀.
Commercial
% make testacc TESTARGS='-run=TestAccDataSourceAwsDxConnection_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsDxConnection_ -timeout 180m
=== RUN TestAccDataSourceAwsDxConnection_basic
=== PAUSE TestAccDataSourceAwsDxConnection_basic
=== CONT TestAccDataSourceAwsDxConnection_basic
--- PASS: TestAccDataSourceAwsDxConnection_basic (24.67s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 29.105s
GovCloud
% make testacc TESTARGS='-run=TestAccDataSourceAwsDxConnection_'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws -v -count 1 -parallel 20 -run=TestAccDataSourceAwsDxConnection_ -timeout 180m
=== RUN TestAccDataSourceAwsDxConnection_basic
=== PAUSE TestAccDataSourceAwsDxConnection_basic
=== CONT TestAccDataSourceAwsDxConnection_basic
--- PASS: TestAccDataSourceAwsDxConnection_basic (31.53s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 36.544s
@yzguy Thanks for the contribution 🎉 👏. |
This functionality has been released in v3.56.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! |
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. |
Community Note
Closes #18400.
Closes #10472.
Closes #17853.
Output from acceptance testing: