-
Prepare your working directory for other commands
cd ./terraform terraform init
-
[Optional] Create new workspace:
terraform workspace new test
-
Create or update infrastructure
terraform apply
- Edit makefile to set AWS_REGION and AWS_ACCOUNT_ID
- To authenticate Docker to an Amazon ECR private registry use
make docker_login
. Output:WARNING! Your password will be stored unencrypted in /home/arist0/.docker/config.json. Configure a credential helper to remove this warning. See https://docs.docker.com/engine/reference/commandline/login/#credentials-store Login Succeeded
- Edit makefile to set ECR_NAME
- Use
make build
to build and push a new image to your private registry