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

Derive Project id for instance from instance template #63

Merged
merged 3 commits into from
Jan 21, 2020

Conversation

bharathkkb
Copy link
Member

@bharathkkb bharathkkb commented Jan 14, 2020

fixes #60

  • Instance template self link is of the form https://www.googleapis.com/compute/beta/projects/project-name/../../... Use regex to extract {project-name}; if not found fall back to provider level project id

@morgante morgante merged commit 3e2c8cd into terraform-google-modules:master Jan 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

compute_instance module only works if project_id is configured at the provider level
2 participants