-
Notifications
You must be signed in to change notification settings - Fork 175
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
the project and regions are not parsed properly, both entries end up … #6
Conversation
Can you clarify which example you saw this issue with? |
The subnet iam example |
@kenthua could you provide the variables that you're passing to the subnets example? I'm setting up a reproduction case locally, but in the mean time I'd like to see the subnet resources that you're providing. |
A simple reference based off the example. If I did specify This is in addition to a provider reference with project and region.
|
@kenthua I was able to reproduce your scenario with the following: # terraform.tfvars
credentials_file_path="credentials.json"
group_email="test_sa_group@example.com"
user_email="thebo@example.com"
sa_email="bare-service-account@thebo-pfhost1-ed64.iam.gserviceaccount.com"
#subnet_one="projects/thebo-host-e503/regions/us-west1/subnetworks/default-us-west1-01"
#subnet_two="projects/thebo-host-e503/regions/us-west1/subnetworks/us-west1-01"
subnet_one="default-us-west1-01"
subnet_two="us-west1-01" When specifying subnets, are you providing the full subnet path (eg the commented out edit - whoops, you provided an example - sorry about that! Instead of specifying |
@adrienthebo Apologies, that was it, thanks! Should have read the docs that said full path, but maybe a more clear example in the readme?
|
Agreed this could be made clearer. Specifically, can we:
|
… end up being the subnet" This reverts commit bdb73d3.
…quirement and construct it manually in the example
Fixed them up, @adrienthebo @morgante let me know your thoughts. |
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.
There are a couple of whitespace fixups I'd like to see before we merge this. I've verified these changes and everything runs as expected; 👍 for merge after the fixups lands.
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.
Thanks for the fixups, LGTM!
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, thanks.
ex:
Running the example listed, requires the provider to specify
project
andregion
Does that mean the
main.tf
in the module should handle region?