-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
Access provider attributes #9221
Comments
An alternative to being able to access provider attributes would be an |
Given that we currently do this, #5480 would be another solution to my problem.
|
Hi @joshuaspence! The patch I've been working on over in #6819 has a potential solution to this, which would work as follows: data "aws_region" "current" {
current = true
} |
Thanks for the pointer |
Does #6819 solve your issue? Paul |
Yes, it does. 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 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. |
Is it possible to access output attributes for a provider? I have made an
ec2_ondemand_price
module which looks up the current EC2 on-demand price for a given region and instance type. We use this module to set our spot prices equal to the on demand price. The problem I have at the moment is that myec2_ondemand_price
module needs to know the AWS region, but it should be able to query this from the provider rather than needing to be passed in as a variable.The text was updated successfully, but these errors were encountered: