Modeling environments for Google Cloud Platform#
To model a Google Cloud Platform environment, log in with a Google Cloud cloud project and specify the Google Cloud-specific information in a blueprint.
- Connect the blueprint design server to a cloud system. See Connecting to clouds through the blueprint designer.
- Make sure that your user account is authenticated to a cloud system. See Setting up access to clouds in the blueprint designer.
- Connect the blueprint design server to the server. See Connecting the blueprint design server to the server.
- Log in to the blueprint designer.
-
At the top of the page, select the cloud project and region to use.
-
Create the blueprint.
See Creating files.
-
Add resources from the palette to the blueprint, such as virtual images.
The palette shows resources from the currently connected cloud and region, which is shown in the upper-right corner of the page. You can access Compute Engine resources from only a single project that are available to your current region. See Regions and Zones in the Google Cloud Platform Compute Engine documentation.
For more information on working with the blueprint designer, see Editing blueprint diagram and Editing blueprint source code.
-
Add volumes to the images.
You can add or create volumes in addition to the boot volume for an image's operating system. Only volumes that are not attached to other virtual machine are visible in the palette. You can also create a new storage volume for the image.
-
Add resources from the palette to the blueprint, such as virtual images.
The palette shows resources from the currently connected cloud, which is shown in the upper-right corner of the page. For more information on working with the blueprint designer, see Editing blueprint diagram and Editing blueprint source code.
-
Create a configuration file and externalize properties to the file.
-
In the configuration file, ensure that the core OpenStack types are mapped to Google Cloud Platform types.
The configuration file must have mapping similar to the following code:
resource_registry: OS::Nova::Server : HCL::Google::Server OS::Neutron::Port : HCL::Google::Port OS::Neutron::FloatingIP : HCL::Google::PublicIP OS::Neutron::FloatingIPAssociation : HCL::Google::PublicIPAssociation OS::Cinder::Volume : HCL::Google::Disk OS::Cinder::VolumeAttachment : HCL::Google::DiskAttachment
Add the components of your application to the blueprint. See Deploying components with blueprints.