Skip to content
프로젝트

소개

A docker container to simplify and secure the use of Infrastructure as Code (IaC)

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
기록 수집 중
in 15 days
기록 수집 중
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Easy Infra[structure as Code]

Getting Started

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:

  1. Experimentation by supporting interactive use and secure troubleshooting.
  2. Continuous Integration as a part of Pull/Merge Request validation.
  3. Continuous Deployment as an automated deployment tool.

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.

Secure by default

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:

  1. Run a checkov security scan
  2. Run terraform init
  3. Identify if the filesystem changed, and only if so, run another checkov security scan
  4. Run terraform apply -auto-approve

Learning mode

The 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

Debugging

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

관련 프로젝트 살펴보기

불러오는 중…