-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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 resources: aws_dx_hosted_transit_virtual_interface and aws_dx_hosted_transit_virtual_interface_accepter #8523
New resources: aws_dx_hosted_transit_virtual_interface and aws_dx_hosted_transit_virtual_interface_accepter #8523
Conversation
b69e578
to
026110c
Compare
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.
MTU of a transit virtual interface is 8500 - Not 9001
* `id` - The ID of the virtual interface. | ||
* `arn` - The ARN of the virtual interface. | ||
* `aws_device` - The Direct Connect endpoint on which the virtual interface terminates. | ||
* `jumbo_frame_capable` - Indicates whether jumbo frames (9001 MTU) are supported. |
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.
9001 vs. 8500
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.
Whoops, missed that one; Fixed.
bb809c8
to
63e159c
Compare
Rebased to fix merge conflict. |
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.
Hi again @ewbankkit 👋 Overall this looks good as well. Please reach out with any questions or if you do not have time to implement the feedback.
Since this Direct Connect resource testing requires a physical connection setup that the maintainers do not currently have access to, we can approve this pull request after the changes and two community acceptance test passing runs (one of these can be yours).
website/aws.erb
Outdated
@@ -876,6 +876,12 @@ | |||
<li> | |||
<a href="/docs/providers/aws/r/dx_public_virtual_interface.html">aws_dx_public_virtual_interface</a> | |||
</li> | |||
<li> | |||
<a href="/docs/providers/aws/r/dx_hosted_transit_virtual_interface.html">aws_dx_hosted_transit_virtual_interface</a> |
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.
Nit: The sidebar should be alphabetically sorted
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.
Will do.
website/docs/r/dx_hosted_transit_virtual_interface.html.markdown
Outdated
Show resolved
Hide resolved
* `virtual_interface_id` - (Required) The ID of the Direct Connect virtual interface to accept. | ||
* `tags` - (Optional) A mapping of tags to assign to the resource. | ||
|
||
### Removing `aws_dx_hosted_transit_virtual_interface_accepter` from your configuration |
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.
This section should instead be a note at the top of the resource page, using the ~> **NOTE:** Message here
syntax
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.
Will do.
return nil | ||
} | ||
|
||
func testAccCheckAwsDxHostedTransitVirtualInterfaceExists(name string) resource.TestCheckFunc { |
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.
Same note as #8522 here -- the testAccCheck...Exists()
should be verifying the infrastructure was properly created via the API -- similar but opposite of testAccCheckAwsDxHostedTransitVirtualInterfaceDestroy
above. 👍
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.
Will do.
@bflad Review comments addressed. Latest acceptance tests: $ AWS_ALTERNATE_PROFILE=pppppppp DX_CONNECTION_ID=dxcon-aaaaaaaa make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxHostedTransitVirtualInterface'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAwsDxHostedTransitVirtualInterface -timeout 120m
=== RUN TestAccAwsDxHostedTransitVirtualInterface
=== RUN TestAccAwsDxHostedTransitVirtualInterface/basic
=== RUN TestAccAwsDxHostedTransitVirtualInterface/accepterTags
--- PASS: TestAccAwsDxHostedTransitVirtualInterface (1734.33s)
--- PASS: TestAccAwsDxHostedTransitVirtualInterface/basic (1078.51s)
--- PASS: TestAccAwsDxHostedTransitVirtualInterface/accepterTags (655.82s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1734.409s |
Thanks, @ewbankkit. Updates look great here too. If another person can verify the acceptance testing also passes on their own Direct Connect connection and show the output here, we'll merge this in. 👍 |
One last change - Setting arn can be moved to the Read method now, removing duplicated code. |
Using common Exists and Destroy methods from #9572 in acceptance tests. $ AWS_ALTERNATE_PROFILE=pppppppp DX_CONNECTION_ID=dxcon-aaaaaaaa make testacc TEST=./aws/ TESTARGS='-run=TestAccAwsDxHostedTransitVirtualInterface'
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./aws/ -v -parallel 20 -run=TestAccAwsDxHostedTransitVirtualInterface -timeout 120m
=== RUN TestAccAwsDxHostedTransitVirtualInterface
=== RUN TestAccAwsDxHostedTransitVirtualInterface/basic
=== RUN TestAccAwsDxHostedTransitVirtualInterface/accepterTags
--- PASS: TestAccAwsDxHostedTransitVirtualInterface (1360.23s)
--- PASS: TestAccAwsDxHostedTransitVirtualInterface/basic (696.04s)
--- PASS: TestAccAwsDxHostedTransitVirtualInterface/accepterTags (664.18s)
PASS
ok github.com/terraform-providers/terraform-provider-aws/aws 1360.308s |
@ryno75 You available to test this one? |
oh geez... just seeing this now. I'll see if I can accommodate that. |
…sit_virtual_interface_accepter' resources.
Co-Authored-By: Brian Flad <[email protected]>
… allowed on a Connection'.
…IF has been accepted.
018fbcb
to
fea2d73
Compare
Rebased to fix conflicts and did the Terraform Plugin SDK migration for the new resources. @ryno75 Will you be able to verify? |
Documentation changes for #10684. |
Are we just missing an additional test validation on this? I have a spare DX connection at the moment and can probably run this tomorrow if so. |
@devonbleak Yes, an additional test validation is all that is required and would be much appreciated; Thanks. |
Confirming acceptance tests:
|
@devonbleak Many thanks for the independent verification. |
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.
This looks good, thanks @ewbankkit so much for all your work here (including keeping up with our development changes while this was pending) and @devonbleak for the testing assistance! 🚀
Approving per our community testing strategy for Direct Connect resources after code review. 👍
Aside: @devonbleak if any of the other open |
This has been released in version 2.40.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 for triage. Thanks! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Community Note
Part of the work for #8490.
Related:
Acceptance tests (requires an existing Direct Connect connection in available state):