This repository contains several Hello World Application Examples.
If you're only now starting to work with Cloudify see our Getting Started Guide.
This document will guide you how to run the examples step by step.
Download the example
curl -L https://github.com/cloudify-cosmo/cloudify-hello-world-example/archive/master.zip -o cloudify-hello-world-example.zip
Extract the example
unzip cloudify-hello-world-example.zip && cd cloudify-hello-world-example-master
Install Cloudify plugins
cfy plugins bundle-upload
Create secrets according to your IaaS provider.
Replace with actual values, without the <>
For AWS
cfy secrets create aws_access_key_id --secret-string <value>
cfy secrets create aws_secret_access_key --secret-string <value>
For Azure
cfy secrets create subscription_id --secret-string <value>
cfy secrets create tenant_id --secret-string <value>
cfy secrets create client_id --secret-string <value>
cfy secrets create client_secret --secret-string <value>
For GCP
cfy secrets create gcp_client_x509_cert_url --secret-string <value>
cfy secrets create gcp_client_email --secret-string <value>
cfy secrets create gcp_client_id --secret-string <value>
cfy secrets create gcp_project_id --secret-string <value>
cfy secrets create gcp_private_key_id --secret-string <value>
cfy secrets create gcp_private_key --secret-string <value>
cfy secrets create gcp_project_id --secret-string <value>
cfy secrets create gcp_zone --secret-string <value>
For Openstack
cfy secrets create keystone_username --secret-string <value>
cfy secrets create keystone_password --secret-string <value>
cfy secrets create keystone_tenant_name --secret-string <value>
cfy secrets create keystone_url --secret-string <value>
For AWS:
cfy install aws.yaml -i aws_region_name=eu-central-1
For Azure:
cfy install azure.yaml -i location=eastus -i agent_password=OpenS3sVm3
For GCP:
cfy install gcp.yaml region=europe-west1
For Openstack:
cfy install openstack.yaml \
-i region=RegionOne
-i external_network=external_network \
-i image=05bb3a46-ca32-4032-bedd-8d7ebd5c8100 \
-i flavor=4d798e17-3439-42e1-ad22-fb956ec22b54
Another Openstack example:
cfy install openstack.yaml \
-i region=RegionOne \
-i external_network_name=GATEWAY_NET \
-i image=e41430f7-9131-495b-927f-e7dc4b8994c8 \
-i flavor=2
- Open the browser with the Cloudify Manager's public IP provided during installation
- Login with user 'admin', password can be either:
- Using one of the images (AMI, QCOW, Docker), password is 'admin'
- Password provided during installation (in config.yaml)
- Password generated during installation and printed to screen
- Go to 'Cloudify Catalog' on the left side menu
- In the 'Plugins Catalog' widget, select the plugin of the IaaS of your choice and click 'install' button on the right side
- Go to 'System Resources on the left side menu'
- Scroll down to the 'Secret Store Management' widget
- Create secrets using the 'Create' button and according to your IaaS provider:
('Secret key' according to the list below and 'Secret value' with your specific values)
- For AWS
- aws_access_key_id
- aws_secret_access_key
- For Azure
- subscription_id
- tenant_id
- client_id
- client_secret
- For GCP
- gcp_client_x509_cert_url
- gcp_client_email
- gcp_client_id
- gcp_project_id
- gcp_private_key_id
- gcp_private_key
- gcp_project_id
- gcp_zone
- For Openstack
- keystone_username
- keystone_password
- keystone_tenant_name
- keystone_url
- For AWS
- Go to 'Local Blueprints' menu and click 'Upload' button
- In the blueprint URL filed put https://github.com/cloudify-cosmo/cloudify-hello-world-example/archive/master.zip
- In the blueprint YAML file select one of the following
- azure.yaml
- openstack.yaml
- aws.yaml
- gcp.yaml
- Click 'upload'
- In the blueprints table, click the 'cloudify-hello-world-example-master' link
- Click 'Create Deployment' button
- Type 'cloudify-hello-world-example-master' in the deployment name field
- Complete the inputs' values:
- For AWS
- aws_region_name, for example 'eu-central-1'
- For Azure
- location, for example 'eastus'
- agent_password, for example 'OpenS3sVm3'
- For GCP
- region, for example 'europe-west1'
- For Openstack
- region, for example 'RegionOne'
- external_network, for example 'GATEWAY_NET'
- image, for example '05bb3a46-ca32-4032-bedd-8d7ebd5c8100'
- flavor, for example '4d798e17-3439-42e1-ad22-fb956ec22b54'
- For AWS
- Click 'Deploy'
- Scroll down to the deployments table, click the hanburger menu on the right and select 'Install'