Deploy the Heat Simple Stack template with the OpenStack CLI
Coming from another cloud?
▸AWS·Cloudformation EC2
This Quake AI feature maps to AWS’s Cloudformation EC2.
Deploy the Heat Simple Stack template with the OpenStack CLI
Stand up a volume-backed Ubuntu instance with Nginx on a private network and one floating IP using the Heat HOT template heat-simple-stack. The layout matches the Simple VM with Floating IP OpenTofu template, expressed as a HOT file instead of HCL.
Prerequisites#
You need:
- The OpenStack CLI installed and configured for your Quake AI project (application credentials with Unrestricted enabled, because Heat creates a Keystone trust; see How to create a Heat stack)
- OpenStack credentials sourced into the shell (
source openrc.sh). See the OpenStack CLI guide. - An SSH key pair already uploaded to the project
- A copy of
stack.yamlfrom the Heat Simple Stack template reference page
Step 1: Create the stack#
Pick a stack name unique in your project, such as heat-simple-demo. Pass your keypair name as the only required parameter:
openstack stack create --template stack.yaml \
--parameter key_name=YOUR_KEY_NAME \
heat-simple-demoReplace YOUR_KEY_NAME with the name from Compute > Key Pairs or openstack keypair list.
Watch events while the stack converges:
openstack stack event list heat-simple-demoWhen provisioning finishes, confirm status and read the floating IP:
openstack stack show heat-simple-demo -f value -c stack_status
openstack stack output show heat-simple-demo floating_ip -f value -c output_valueStep 2: Verify Nginx#
Confirm Nginx responds on port 80 through the floating IP:
curl -s --connect-timeout 10 http://$(openstack stack output show heat-simple-demo floating_ip -f value -c output_value) | head -5You should see HTML that includes heat-simple-stack.
Optional: SSH as ubuntu with the private key that matches key_name:
ssh -i YOUR_PRIVATE_KEY_PATH ubuntu@$(openstack stack output show heat-simple-demo floating_ip -f value -c output_value)Parameter defaults (flavor, image, private_cidr) are documented on the Heat Simple Stack reference page.
Next steps#
- Heat Simple Stack template
- Deploy the Simple VM template with OpenTofu
- How to create a Heat stack
- DevOps and automation
Clean up#
Run openstack stack delete --yes heat-simple-demo when finished. Confirm the stack is gone with openstack stack list | grep heat-simple-demo. An empty result means Heat removed the instance, boot volume, router, private network, security group, and floating IP.