A docker container to secure the use of Infrastructure as Code (IaC) tools
50K+
easy_infra is a Docker container that simplifies and secures Infrastructure as Code deployments by running security scans prior to running IaC tools. It supports three main use cases:
In order to run your infrastructure code from within the container, volume mount your files into /iac and pass it your command, for example:
docker run -v .:/iac seiso/easy_infra:latest-terraform terraform validate
You can simplify your workflow further by using aliases. For instance, consider putting something like the following in your .zshrc, .bashrc, or similar:
alias terraform="docker run -v .:/iac seiso/easy_infra:latest-terraform terraform"
This will allow you to run simple terraform commands at the command-line, which will run transparently in easy_infra:
terraform validate
terraform plan
terraform apply
To learn more, check out our documentation and CONTRIBUTING.md.
This container provides security features by default. Deploying an environment using terraform would likely look something like this:
docker run -v .:/iac seiso/easy_infra:latest-terraform /bin/bash -c "terraform init && terraform apply -auto-approve"
What easy_infra does in this case is:
checkov security scanterraform initcheckov security scanterraform apply -auto-approveThe learning mode suppresses the exit codes of any injected validation, hook, or security tooling, ensuring the provided commands will run.
This can be configured by setting the LEARNING_MODE environment variable to true, for instance:
docker run -e LEARNING_MODE=true -v .:/iac seiso/easy_infra:latest-terraform terraform apply -auto-approve
If you'd like to enable debug logs at runtime, pass an environment variable of LOG_LEVEL with a value of DEBUG, such as:
docker run -e LOG_LEVEL=DEBUG -v .:/iac seiso/easy_infra:latest-terraform terraform validate
Content type
Image
Digest
sha256:1f36ae764…
Size
402.1 MB
Last updated
24 days ago
docker pull seiso/easy_infra:latest-opentofu-azure