- terraform 0.7.3 minimum
export AWS_PROFILE=
or
export AWS_ACCESS_KEY_ID=
export AWS_SECRET_ACCESS_KEY=
Go to "common" directory
cd common
Create remote state (adapt with your bucket/key)
terraform remote config -backend=s3 -backend-config="bucket=tfstates" -backend-config="key=saltvpc" -backend-config="region=eu-west-1"
Adapt terraform.tfvars if necessary, then deploy
terraform apply
Go to saltstack directory
cd ../saltstack
Create remote state (adapt with your bucket/key)
terraform remote config -backend=s3 -backend-config="bucket=tfstates" -backend-config="key=saltstack" -backend-config="region=eu-west-1"
Update terraform.tfvars for your environment (state bucket and key pair in particular) and deploy
terraform apply
Wait a few minutes (~5mn) for boot, upgrades and package installation On the master see if minions have connected
sudo salt-key -L
You can then accept the minions and test the connection
sudo salt-key -A
sudo salt '*' test.ping