Dynamic Environment Example with Amazon and Chef

This example shows what you see in the CloudBees Flow UI when your dynamic environment is configured with Amazon as the cloud provider and Chef for the configuration management.

Resource Templates

In resource templates, you define cloud resources that will be provisioned for dynamic environments. Examples of cloud resources are a HAProxy server, MySQL server, PHP-FPM server, and Resque server.

This is the Resource Template List.

1example1

These are the cloud provider settings for a resource template. It is defined by cloud provider account credentials and by an Amazon Machine Image (AMI).

1example2

These are the configuration management settings for a resource template. It calls a Chef recipe to configure the cloud resources. You can configure the resources with other recipes or predefined configuration, such as a MySQL stack configuration or a HAProxy load balancer configuration.

1example3

Environment Templates

When you create a new environment template, you can add one resource template to an environment tier. These are the resource templates from which you can select.

1example4

After you select a resource template and click OK, you enter the number of resources to provision in an environment tier.

1example5

This is an environment template with four tiers. Each tier is configured with a resource template, and resource template has a provisioned resource.

1example6

Deploying Applications to Dynamic Environments

After you select an application to deploy, you select the application process to run and the environment in which to deploy the application.

1example7

To deploy the application in a dynamic environment, you can select an environment template. A dynamic environment is created with the provisioned cloud resources. After the resources are provisioned and the dynamic environment is created, the application is deployed.

You can view the status of the provisioning process.

1example8

Retiring Dynamic Environments

After the provisioning process completes, the new dynamic environment appears in the Environments List.

1example9

You can retire (decommission) dynamic environments on an on-demand basis to prevent excessive use of cloud resources and reduce costs.

You click the Tear down button to retire the selected dynamic environment.

1example10