Set up a build or deployment environment¶
Create the Google Cloud footprint your services deploy into. This guide covers two levels: a new build environment, which lives inside your own Google Cloud organisation and holds products, and a new deployment environment inside a product, such as staging or production.
Prerequisites¶
- An AlisX account with Build access. A new build environment needs a Google Cloud organisation, a Cloud Billing account you administer and a primary region.
- For a product deployment environment, administrator access to the product.
Set up a new build environment¶
- Open
https://console.alisx.com/build/init. The Build environment setup page shows where your account stands. - Choose to set up a new build environment. The Set up a new build environment page opens at
/build/init/extension. - Choose Fill in a form and fill in Environment id (for example
acme), Display name, Region and Billing account id. Work with the Init Agent is the other way in: its Chrome extension guides you through the Google Cloud console and can create the billing account and organisation prerequisites with you. - Choose Create setup and run the command it shows in Google Cloud Shell. Follow its progress opens the Build environment initialisation page at
/build/setups/<setup-id>, which shows each module as it is provisioned and reports any failure.
When the build environment is active it appears under Build environments, and alis org list lists it.
Join an existing build environment¶
If your account pays for a build environment you cannot open yet, or you are only a viewer:
Approval makes you a builder on every product in it.
Add a deployment environment to a product¶
Every product starts with one development environment. Add more when you need them.
Add --production to mark the deployment environment as production; production environments are gated on deploy. Without --region the product's region is used. The new deployment environment's id is shown by alis context view acme.sh.
- Open the product and go to Services.
- Choose Add environment.
- Choose Production as the Environment type if this is a production environment, enter the display name, pick the Default region and confirm.
Rename a deployment environment¶
The id and cloud resources do not change and nothing is redeployed.