This project will setup the S3 and DynamoDB pre-requisites for using Terragrunt with Terraform.
- git
- docker-build (and all of its host dependencies)
- AWS account
- IAM user named
admin
, with policyarn:aws:iam::aws:policy/AdministratorAccess
attached (or membership of an IAM group with this policy attached)
- bash (for process substitution)
- curl
git clone https://github.com/alzadude/docker-build.git
git clone https://github.com/alzadude/tf-bootstrap.git
cd tf-bootstrap
The admin
IAM user should be used explicitly, since the 'admin role' isn't available until the corresponding Terraform plan and resources have been applied.
Therefore, because this may not have been done yet, the AWS CLI must be configured to include credentials for the admin
IAM user.
Add credentials for the admin
IAM user to ~/.aws/credentials
, e.g.
[default]
...
[admin]
aws_access_key_id = <your-credentials>
aws_secret_access_key = <your-credentials>
region = eu-west-1
AWS_DEFAULT_PROFILE=admin make -f ../docker-build/docker.mk
AWS_DEFAULT_PROFILE=admin ARCHIVE="tar -c --exclude docker-result ." make -f ../docker-build/docker.mk
AWS_DEFAULT_PROFILE=admin make -f <(curl -s -L https://raw.githubusercontent.com/alzadude/docker-build/master/docker.mk)
Copyright © 2017 Alex Coyle
Released under the MIT license.