This repository contains Ansible playbooks and Terraform deployment files to deploy a test infrastructure in AWS. The goal of this repository is to provide automatic ways to install a complete infrastructure, from scratch to a production-ready infrastructure, for all the CSPs.
The first thing you have to do is to get your credentials for AWS et set your environment variables accordingly:
export AWS_ACCESS_KEY_ID="AAAAAAAAAAAAAAAAAAAA"
export AWS_SECRET_ACCESS_KEY="AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA"
Of course, you need ansible
, but you also need pip
and ansible-galaxy
, then you can install the dependencies:
$ make -f Makefile.aws.ansible install
Before launching the playbooks, please review the configuration in aws/build/ansible/inventory.yml
. For example, you may have to change the path of python (ansible_python_interpreter
) and the AWS region (aws_region
).
This will launch the build
playbook, and then the run
playbook:
$ make -f Makefile.aws.ansible run
$ make -f Makefile.aws.ansible delete
Of course, you need terraform
, but you also need go
, then you can install the dependencies:
$ make -f Makefile.aws.terraform install
Before launching the deployments, please review the configuration in aws/build/terraform/terraform.tfvars
. For example, you may have to change the AWS region (aws_region
).
This will launch the build
deployment, and then the run
deployment:
$ make -f Makefile.aws.terraform apply
$ make -f Makefile.aws.terraform destroy