This template creates an IP reservation. Depending on the input option, the following addresses can be reserved:
- Global
- External
- Internal
- Install gcloud
- Create a GCP project, set up billing, enable requisite APIs
- Grant the compute.networkAdmin IAM role to the project service account (unless the default Project Editor role is already granted)
See the properties
section in the schema file(s):
- Clone the Deployment Manager samples_repository
git clone https://github.com/GoogleCloudPlatform/cloud-foundation-toolkit
- Go to the dm directory
cd dm
- Copy the example DM config to be used as a model for the deployment, in this case examples/ip_reservation.yaml
cp templates/ip_reservation/examples/ip_reservation.yaml my_ip_reservation.yaml
- Change the values in the config file to match your specific GCP setup. Refer to the properties in the schema files described above.
vim my_ip_reservation.yaml # <== change values to match your GCP setup
- Create your deployment as described below, replacing <YOUR_DEPLOYMENT_NAME> with your with your own deployment name
gcloud deployment-manager deployments create <YOUR_DEPLOYMENT_NAME> \
--config my_ip_reservation.yaml
- In case you need to delete your deployment:
gcloud deployment-manager deployments delete <YOUR_DEPLOYMENT_NAME>