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

aws_eip data source missing support to return multiple eips #6997

Closed
Dchamard opened this issue Dec 28, 2018 · 5 comments · Fixed by #7537 or #22776
Closed

aws_eip data source missing support to return multiple eips #6997

Dchamard opened this issue Dec 28, 2018 · 5 comments · Fixed by #7537 or #22776
Labels
new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service.
Milestone

Comments

@Dchamard
Copy link
Contributor

Dchamard commented Dec 28, 2018

Description

We are trying to get multiple eips back to be able to whitelist them.
We are filtering them by tag and we expect to have multiple EIPs returned by the datasource but
we are getting this error:

data.aws_eip.revproxy[0]: data.aws_eip.revproxy.0: multiple Elastic IPs matched; use additional constraints to reduce matches to a single Elastic IP

@tomelliff
Copy link
Contributor

The standard way of doing this is to create an aws_eips (note the plural) data source so that there is a data source that returns a list of the IDs of multiple things that match and then further information can be found by using the singular version of the data source (aws_eip in this case) to get more information such as the IP address from them.

This should probably be labelled with new-data-source and service/ec2.

@bflad bflad added new-data-source Introduces a new data source. service/ec2 Issues and PRs that pertain to the ec2 service. labels Jan 3, 2019
@Dchamard
Copy link
Contributor Author

@bflad I submitted a Pull request for this.

@eshleebien
Copy link

Would be nice to have this! 🎉

@github-actions
Copy link

This functionality has been released in v4.0.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 issue 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 similar to this, 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 May 14, 2022
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/ec2 Issues and PRs that pertain to the ec2 service.
Projects
None yet
5 participants