Anuj Bansal c8f77d2059 Update gitignore, filenames, CF userdata 3 gadi atpakaļ
..
cloudformation c8f77d2059 Update gitignore, filenames, CF userdata 3 gadi atpakaļ
group_vars 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
library 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
roles 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
.gitignore 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
README.md c8f77d2059 Update gitignore, filenames, CF userdata 3 gadi atpakaļ
ansible.cfg 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
build-arm64-playbook.yml 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
build-code.yml 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
chain-spec-pioneer.yml 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
common.sh 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
create-joystream-node-ami-playbook.yml 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
deploy-infra.sample.cfg ca10d3511f devops: factor out single node deploymnet config 3 gadi atpakaļ
deploy-infra.sh 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
deploy-single-node-playbook.yml ca10d3511f devops: factor out single node deploymnet config 3 gadi atpakaļ
deploy-single-node.sample.cfg ca10d3511f devops: factor out single node deploymnet config 3 gadi atpakaļ
deploy-single-node.sh ca10d3511f devops: factor out single node deploymnet config 3 gadi atpakaļ
destroy-infra.sh 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
requirements.yml 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ
setup-admin.yml 9fd1bade66 devops: separate ansible and aws from kubernetes deployments 3 gadi atpakaļ

README.md

Setup

Configuring the AWS CLI

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

Create a key pair

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

Install Ansible

On Mac run the command:

  • brew install ansible

Follow the official installation guide for your system.

How to run

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

To tear down a network

./destroy-infra.sh your-deploy-config.cfg