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

Create data source for: aws_dx_private_virtual_interface #6796

Closed
gwvandesteeg opened this issue Dec 11, 2018 · 2 comments
Closed

Create data source for: aws_dx_private_virtual_interface #6796

gwvandesteeg opened this issue Dec 11, 2018 · 2 comments
Labels
new-data-source Introduces a new data source. service/directconnect Issues and PRs that pertain to the directconnect service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.

Comments

@gwvandesteeg
Copy link

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

Add a new data source to reflect the details from the aws_dx_private_virtual_interface resource.

The virtual private interface for some providers is created on the account through an external API (ie.. their web portal) and not through the CLI/Management Interface, however you still want to be able to read the attributes of the interface in terraform to use for creating virtual private gateways and their VPC associations.

New or Affected Resource(s)

  • aws_dx_private_virtual_interface
  • aws_dx_bgp_peer - either as a new data source or as a component of the aws_dx_private_virtual_interface data source in a "bgp_peers" list block

Potential Terraform Configuration

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file. For
# security, you can also encrypt the files using our GPG public key.

data "aws_dx_private_virtual_interface" "provider1" {
  name = "provider1-site-refname"
  bgp_asn = "12345"
  amazon_side_asn = "64512"
}

data "aws_dx_bgp_peer" "peer" {
  id = "${data.aws_dx_private_virtual_interface.provider1.id}"
  address_family = "ipv4"
  bgp_asn = "12345"
}

output "bgp_peers" {
  value = "${data.aws_dx_private_virtual_interface.provider1.bpg_peers}"
}

output "bgp_peer_ids" {
  value = "${data.aws_dx_private_virtual_interface.provider1.bpg_peers.*.id}"
}

# and as many other data points as can be retrieved from it

References

  • AWS CLI: aws directconnect describe-virtual-interfaces
@bflad bflad added new-data-source Introduces a new data source. service/directconnect Issues and PRs that pertain to the directconnect service. labels Dec 11, 2018
@github-actions
Copy link

Marking this issue as stale due to inactivity. This helps our maintainers find and focus on the active issues. If this issue receives no comments in the next 30 days it will automatically be closed. Maintainers can also remove the stale label.

If this issue was automatically closed and you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thank you!

@github-actions github-actions bot added the stale Old or inactive issues managed by automation, if no further action taken these will get closed. label Nov 30, 2020
@ghost
Copy link

ghost commented Jan 30, 2021

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!

@ghost ghost locked as resolved and limited conversation to collaborators Jan 30, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-data-source Introduces a new data source. service/directconnect Issues and PRs that pertain to the directconnect service. stale Old or inactive issues managed by automation, if no further action taken these will get closed.
Projects
None yet
2 participants