-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
restrict ephemeral[external] Ips for the compute engines [VMs] created in the subnet #5109
Comments
The policy you're looking for is "constraints/compute.vmExternalIpAccess" and it has nothing to do with Terraform. |
Yes, I have used this constraint "constraints/compute.vmExternalIpAccess" but we can apply at org/project/vm level but not at subnet level. My use case: no external ip for vms created in particular subnet. Please let me know if we can achieve this or any other alternatives for the same. Thanks! |
@NagarajGoud there is no direct control in Terraform at subnet level you can use to achieve this. But you can build some logic to dynamically add
|
@NagarajGoud does that help? I am closing this question. Please feel free to reopen it if you need further assistance. |
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. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hi,
We have a setup with one vpc network with two subnets (private, public)
vms created in public subnet can have external ip where as in private subnet cannot have.
I have a use case such that any vm created in private-subnet should not be getting ephemeral[external] Ips by default.
Initially I thought of tweaking any org policy related to external IP would serve my purpose but i didnt see any such policy so far.
After spending time in exploration landed up here which says to remove access_config block from the network_interface block of instance template.
What im looking for?
Thanks in advance.
The text was updated successfully, but these errors were encountered: