Skip to main content

Launch Settings

Using launch templates, managers can define what resources need to be set up on new accounts creation. For instance, create S3 buckets, deploy Cloud Formation templates, etc.

In Sandbox Studio, the launch template uses AWS CodeBuild. CodeBuild spins up a build server and executes the steps defined in a buildspec YAML file. 

During the creation of a lease template, the manager defines the CodeBuild buildspec.yaml file:

image.png

Examples:

In this section, we list a few examples of CodeBuild buildspec yaml file that you can use to create resources.

Creating resources using the AWS CLI:

This example creates an S3 bucket in the us-east-1 region:


version: 0.2

phases:
build:
commands:
- echo Creating S3 bucket...
- BUCKET_NAME=my-sample-bucket-$(date +%s)
- aws s3 mb s3://$BUCKET_NAME --region us-east-1
- echo "Bucket $BUCKET_NAME created."

Creating resources using the AWS CloudFormation:


xxxx

Creating resources using the AWS Terraform:


xxx