The purpose of this template is to deploy an AWS Cloud9 Environment with ASH and all the dependencies pre-installed.
This quickstart is designed for learning purposes only. The user will be responsible for any patching strategy, network protection and access controls to the instance.
By default, the owner of the AWS Cloud9 Environment will be the user that launched the CloudFormation stackset.
- An AWS Account and enough permissions to deploy a CloudFormation Stack.
- Download the template to your local machine, or clone this repository.
- Log into your AWS Console
- Navigate to the AWS CloudFormation console in your region of choice. You can use this link.
- Select
Create stack
- In
Specify template
section, selectUpload a template file
option. - Use the
Choose file
option to select the template file (c9template.yaml
) from your local machine and selectNext
. - Specify a descriptive
Stack name
(for exampleASH-TestStack
) - Select
Next
and accept the default settings on the following screen. SelectNext
again until reaching the last step (Review ASH-TestStack
). - Accept the IAM resource acknowledgement
I acknowledge that AWS CloudFormation might create IAM resources with custom names.
and select Submit to create the Stack. - Wait until the Stack is created and status is
CREATE_COMPLETE
. - Navigate to the AWS Cloud9 Console. You can use this link.
- Use the
Open
link to access your AWS Cloud9 Environment. - You can confirm that ASH is installed properly by running
ash -v
in the terminal. It will take a few minutes for the bootstrap process to complete, wait until you see an empty file with the nameASH-READY
under/home/ec2-user/environment
. If you already launched a terminal, refresh thePATH
environment variable by runningsource ~/.bashrc
on your terminal and try again or close the terminal and launch a new one.
If the stack fails to deploy, check the error message in CloudFormation under the Event
tabs. In general errors are very descriptive about the reasons for the failure. For example:
ash-admin already exists in stack arn:aws:cloudformation:us-east-1:123456789012:stack/ASHC9/c0426010-c99c-11ed-85fd-0e5951eaa6e5
In this case, another environment with the same name already exists. You will need to delete the old stack or change the Environment name.