Given a structure like:
/
/terraform
/environment
/infra
/other
For x86/64 machines:
docker run --rm \
-v $(pwd):/data \
-w /data/terraform/infra \
quay.io/terraform-docs/terraform-docs:0.15.0 \
markdown table . > README.md
For M1 Apple Silicon Mac, specify the platform:
docker run --rm \
--platform linux/amd64 \
-v $(pwd):/data \
-w /data/terraform/infra \
quay.io/terraform-docs/terraform-docs:0.15.0 \
markdown table . > README.md