Test a basic cloud template
During design, you often build a cloud
template by starting with the essentials, then deploying and testing as the template grows.
This example demonstrates some of the in-progress testing built into
Automation Assembler
.Create the basic cloud template. See Create a basic cloud template.
To be certain that a deployment works the way that you
want, you might test and deploy the cloud template several times. Gradually, you add
more resources, retest, and redeploy along the way.
- ClickCloud Templates, and open the WordPress-BP cloud template.The basic cloud template appears, in the design canvas and code editor.
- To check template syntax, placement, and basic validity, clickTestat the lower left.
- Enter input values, and clickTest.The test is only a simulation and does not actually deploy virtual machines or other resources.The test includes a link to aProvisioning Diagram, where you can inspect the simulated deployment flow and see what occurred. The simulation exposes potential issues, such as not having any resource capabilities defined that match hard constraints in the cloud template. In the example error that follows, a cloud zone of capability tagenv:devwasn't found anywhere in the defined infrastructure.A successful simulation doesn't guarantee that you can deploy the template without errors.
- After the template passes the simulation, clickDeployat the lower left.
- SelectCreate a new deployment.
- Name the deploymentWordPress for OurCoand clickNext.
- Enter input values, and clickDeploy.
- To verify that the template successfully deployed, look under.If a deployment fails, click its name, and click theHistorytab to see messages that can help you troubleshoot.Some history entries might have theProvisioning Diagramlink at the far right. The diagram is similar to the simulated one, where you inspect the flow chart ofAutomation Assemblerdecision points in the provisioning process.More flow charts are available under.
- To verify that the application is working, open the WordPress start page in a browser.
- Wait for the WordPress servers to be fully created and initialized.It might take 30 minutes or more for initialization, depending on the environment.
- To locate the site FQDN or IP address, go to.
- On the canvas, click the WebTier, and find the IP address in the panel on the right.
- Enter the IP address as part of the full URL to the WordPress start page.In this example, the full URL is:http://{IP-address}/mywordpresssiteorhttp://{IP-address}/mywordpresssite/wp-admin/install.php
- After inspecting WordPress in a browser, if the application needs more work, make template changes and redeploy using theUpdate an existing deploymentoption.
- Consider versioning the cloud template. You can revert to a working version if a change causes deployment to fail.
- On the cloud template design page, clickVersion.
- On the Creating Version page, enterWP-1.0.Do not enter spaces in version names.
- ClickCreate.
To review or revert to a version, on the design page, click theVersion Historytab. - With a basic deployment now possible, try your first deployment-time enhancement by increasing CPU and memory on the application and database servers.Update to a medium node size for both. Using the same template, selectmediumat deployment time, redeploy, and verify the application again.
Expand the cloud template into a production-worthy
application by adding even more resources.