-
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
Adds filter to data.aws_eip #3525
Conversation
this addes the ability to search for EIP’s via tags or other attribute that EIP’s can use in a filter. This did highlight a known issue with regrads to how terraform eval’s data sources before they should if be the resourse is a computed value. This is only an issue if the data block is referencing a resource that is created at the same time. If referencing a pre exiting resource this does not happen. the test config testAccDataSourceAwsEipFilterConfig makes a interpol ref to force terraform to eval the data block after the resource has either been created or read in `values = ["${aws_eip.test.tags.Name}”]` see the following links hashicorp/terraform#10603 hashicorp/terraform#17173
Any chance to see this merged? In our case it would be very valuable to be able to setup a fixed pool of EIPs, and assign them to instances via a data source. This makes sure we always keep the same EIPs in case we have to open firewalls etc. |
curious when will this make it in ? |
``` --- PASS: TestAccDataSourceAwsEip_PublicIP_EC2Classic (8.56s) --- PASS: TestAccDataSourceAwsEip_PublicIP_VPC (11.76s) --- PASS: TestAccDataSourceAwsEip_Id (11.79s) --- PASS: TestAccDataSourceAwsEip_Tags (12.45s) --- PASS: TestAccDataSourceAwsEip_Filter (12.58s) ```
This has been released in version 1.44.0 of the AWS provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading. |
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! |
fixes issue #3423
this is based of PR "#3522"
Had to fix the failing tests before I could submit this PR.
this addes the ability to search for EIP’s via tags or other attribute that EIP’s can use in a filter.
This did highlight a known issue with regrads to how terraform eval’s data sources before they should if be the resourse is a computed value. This is only an issue if the data block is referencing a resource that is created at the same time. If referencing a pre exiting resource this does not happen.
the test config testAccDataSourceAwsEipFilterConfig makes a interpol ref to force terraform to eval the data block after the resource has either been created or read in
values = ["${aws_eip.test.tags.Name}”]
see the following linkshashicorp/terraform#10603
hashicorp/terraform#17173