In this post we will learn how to orchestrate your cloud environment by creating resources through scripts, environment orchestration is to create or delete an entire infrastructure with a few clicks.
To do this, first of all, go to Project / Compute / Key pairs and create two keys with their names:
Example:
First key: WEB
Second key: DB
If you have questions about the key pair creation process see this post: How to access instances through key pairs in BCOS?
After creating the keys go to Project / Orchestration / Stacks and click in Launch Stack then configure the following settings and click in Next then perform the following settings and click in Launch:
Example:
Template Source: URL
Stack name: CHAT
Rollback On Failure: Check this option
Password for user: Enter your user password
When accessing Stack you will notice that resources are already being created:
Go to Project / Compute / Instances and check the machines that were created:
After, in Project / Network / Network Topology check the created network resources:
Then go to Project / Network / Load Balancers and access the created load balancer and copy the floating IP attached to it:
Floating IP attached: 45.225.25.x
Paste the floating IP into the local machine browser and see the environment created by the orchestration:
Note: The environment may take a few minutes to fully charge.