Mokhtar Naamani c0e9e66f32 playground deployment use correct runtime_profile when starting | %!s(int64=2) %!d(string=hai) anos | |
---|---|---|
.. | ||
cloudformation | %!s(int64=2) %!d(string=hai) anos | |
group_vars | %!s(int64=2) %!d(string=hai) anos | |
library | %!s(int64=3) %!d(string=hai) anos | |
roles | %!s(int64=2) %!d(string=hai) anos | |
templates | %!s(int64=2) %!d(string=hai) anos | |
.gitignore | %!s(int64=3) %!d(string=hai) anos | |
README.md | %!s(int64=3) %!d(string=hai) anos | |
ansible.cfg | %!s(int64=3) %!d(string=hai) anos | |
build-arm64-playbook.yml | %!s(int64=3) %!d(string=hai) anos | |
build-code.yml | %!s(int64=2) %!d(string=hai) anos | |
common.sh | %!s(int64=3) %!d(string=hai) anos | |
configure-network.yml | %!s(int64=2) %!d(string=hai) anos | |
create-joystream-node-ami-playbook.yml | %!s(int64=2) %!d(string=hai) anos | |
deploy-infra.sample.cfg | %!s(int64=2) %!d(string=hai) anos | |
deploy-infra.sh | %!s(int64=2) %!d(string=hai) anos | |
deploy-playground-playbook.yml | %!s(int64=2) %!d(string=hai) anos | |
deploy-playground.sh | %!s(int64=2) %!d(string=hai) anos | |
deploy-single-node-playbook.yml | %!s(int64=3) %!d(string=hai) anos | |
deploy-single-node.sample.cfg | %!s(int64=2) %!d(string=hai) anos | |
deploy-single-node.sh | %!s(int64=3) %!d(string=hai) anos | |
destroy-infra.sh | %!s(int64=2) %!d(string=hai) anos | |
requirements.yml | %!s(int64=3) %!d(string=hai) anos | |
setup-build-server.yml | %!s(int64=2) %!d(string=hai) anos |
We’re going to use the AWS CLI to access AWS resources from the command line.
Follow the official directions for your system.
Once the AWS CLI is installed, configure a profile
aws configure --profile joystream-user
Change profile and region parameters according to your configuration
aws ec2 create-key-pair --key-name joystream-key --profile joystream-user --region us-east-1 --query 'KeyMaterial' --output text > joystream-key.pem
Set the permissions for the key pair
chmod 400 joystream-key.pem
On Mac run the command:
brew install ansible
Follow the official installation guide for your system.
Copy and edit the file deploy-infra.sample.cfg
and update parameters like AWS_KEY_PAIR_NAME, KEY_PATH
Run the deploy-infra.sh
script to deploy the infrastructure
cd devops/aws
./deploy-infra.sh your-deploy-config.cfg
./destroy-infra.sh your-deploy-config.cfg