-
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
Add connection_mode field to OpenSearch outbound connection resource #32990
Add connection_mode field to OpenSearch outbound connection resource #32990
Conversation
Community NoteVoting for Prioritization
For Submitters
|
# Conflicts: # internal/service/opensearch/inbound_connection_accepter.go
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 🚀.
% make testacc TESTARGS='-run=TestAccOpenSearchOutboundConnection_' PKG=opensearch ACCTEST_PARALLELISM=2
==> Checking that code complies with gofmt requirements...
TF_ACC=1 go test ./internal/service/opensearch/... -v -count 1 -parallel 2 -run=TestAccOpenSearchOutboundConnection_ -timeout 360m
=== RUN TestAccOpenSearchOutboundConnection_basic
=== PAUSE TestAccOpenSearchOutboundConnection_basic
=== RUN TestAccOpenSearchOutboundConnection_vpc
=== PAUSE TestAccOpenSearchOutboundConnection_vpc
=== RUN TestAccOpenSearchOutboundConnection_disappears
=== PAUSE TestAccOpenSearchOutboundConnection_disappears
=== CONT TestAccOpenSearchOutboundConnection_basic
=== CONT TestAccOpenSearchOutboundConnection_disappears
--- PASS: TestAccOpenSearchOutboundConnection_disappears (2085.93s)
=== CONT TestAccOpenSearchOutboundConnection_vpc
--- PASS: TestAccOpenSearchOutboundConnection_basic (2301.50s)
--- PASS: TestAccOpenSearchOutboundConnection_vpc (2808.15s)
PASS
ok github.com/hashicorp/terraform-provider-aws/internal/service/opensearch 4899.251s
@DanielRieske Thanks for the contribution 🎉 👏. |
This functionality has been released in v5.19.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. |
Description
This PR adds a way to specify the connection mode (Direct or VPC Endpoint).
Adding this feature did present a challenge on how to output the VPC Endpoint URL.
This field is only set when the connection has been accepted and because this is currently done with a separate resource the
aws_opensearch_inbound_acceptor
, we can't reliably set this field.To solve this issue, I added an additional parameter called
accept_connection
to merge the funtionality from the acceptor in this resource.This offers the following benefits,
endpoint
field set immediately after creating the resource.If this PR gets merged I will create an additional PR to deprecate the
aws_opensearch_inbound_acceptor
resource.I can't remove it in this PR as it would introduce a breaking-change.
Relations
Closes: #32630
References
Output from Acceptance Testing