NaverCloud OpenTofu/Terrform provider: docs and registry.
tofu init
Go to ncloud.com/mypage/manage/authkey,
export NCLOUD_ACCESS_KEY=
export NCLOUD_SECRET_KEY=
export NCLOUD_REGION="KR"
# get the plan
tofu plan -input=false -out=tofu_plan.out
# export plan to json
tofu show -json tofu_plan.out > tofu_plan_out.json
Shift-left policies with policy-as-code, example with conftest:
cat policy_mandatory_tags.rego
conftest test -p policy_mandatory_tags.rego tofu_plan_out.json
The best part, you can validate the changes before they happen early in the process!
Shift-left security (more in this blog post):
tfsec
- kics:
docker run -v .:/tf checkmarx/kics:latest scan -p "/tf" -o "/tf/"
tofu apply