This is the Pasbox Infrastructure-as-Code setup for the AWS Cloud. Here are all the steps necessary to bootstrap a new AWS account.
- Create a new AWS account. Log in as the root user, add access keys to the root user and configure the AWS CLI for it and the region you want.
- Install troposphere:
pip3 install troposphere[policy] boto3 - With
python3 deploy.py --stack <stack name> --region <AWS region> --account <AWS account> --executerun:- As the root user deploy the
rootstack -- will setup the basics of the infrastructure. - Manually create accounts in the Administrators, Engineers and Robots IAM groups.
- Lock the root account, switch to an account in Administrators.
- Deploy the
pushnotificationsstack, execute the change set. - Manually create an SNS Platform Application for FCM with the exact name of
pasbox-android. Set the attributes to the topics created in thepushnotificationsstack. - From this point on you can use accounts in the Robots IAM group.
- You can now deploy the
apidevicesstack and execute the changeset.
- As the root user deploy the