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

Attaching public IP to instance. #80

Closed
chanux opened this issue Mar 5, 2020 · 4 comments
Closed

Attaching public IP to instance. #80

chanux opened this issue Mar 5, 2020 · 4 comments
Labels

Comments

@chanux
Copy link

chanux commented Mar 5, 2020

The instance_template allows allocating a list of IPs via access_config parameter. But it's not clear to me how to attach an IP form that list to the instance. I can do that from the GCP Console after creating the instance but is it possible to do that from Terraform?

If I pass the same list of of IPs to static_ips parameter on compute_instance sub module, it'd complain

Requested internal IP is outside the subnetwork CIDR range

Any help is appreciated.

@morgante
Copy link
Contributor

morgante commented Mar 5, 2020

Are you trying to use a reserved external IP?

@chanux
Copy link
Author

chanux commented Mar 6, 2020

@morgante Yes. Pretty much the same thing as this example shows. But I want that external IP to be attached to the single instance I create.

Also I was wondering if terraform-google-address module could better support access_config parameter by spitting out compatible structure.

@rchenzheng
Copy link
Contributor

This is solved by this #83

@github-actions
Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 7 days

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants