brew install awscli
Configure awscli
awscli configure
Checking what is inside the context sent to the docker daemon and whether the configured .dockerignore is behaving as expected can be achieved with the following guide.
Create a dockerfile with the name Dockerfile.build-context
FROM busybox
COPY . /build-context
WORKDIR /build-context
Cloud-init combined with terraform can be a powerful tool to provision instances on startup. Debugging scripts that are run by cloud-init however are not the easiest to debug.
Usually on an Ubuntu machine a lot of what is happening can be found in the syslog
cat /var/log/syslog