Creating address "web-server-ip" failed. Error: Constraint constraints/compute.vmExternalIpAccess violated for project 863503911154. Add instance projects/your-zones/zones/europe-west2-c/instances/instance-1 to the constraint to use external IP with it.
Can anyone help me with the above constraint error?
Hi @RossJ ,
Based from the error that you're getting, there is an organization policy constraint rule applied, as per documentation. Your organization policy administrator must have set it initially. He/she must allow lists of VM instances to use external IP addresses. For more information on how to fix this, follow this documentation or guide.
Let me know if this helps.
As yet I have not received a solution to the problem
As per the other response, typically the only thing that can cause this error is an org policy constraint that limits external IPs. You would need to disable that constraint or add the instance name to the policy.
What settings do you have on the policy? you can see them here:
https://console.cloud.google.com/iam-admin/orgpolicies/compute-vmExternalIpAccess