├── .coderabbit.yaml ├── .editorconfig ├── .github ├── CODEOWNERS ├── ISSUE_TEMPLATE │ ├── bug_report.md │ └── feature_request.md ├── PULL_REQUEST_TEMPLATE.md └── workflows │ ├── build.yaml │ ├── codeql.yml │ ├── terrafetch.yaml │ └── test.yaml ├── .gitignore ├── .golangci.yml ├── .goreleaser.yaml ├── .pre-commit-config.yaml ├── Brewfile ├── FUNDING.yml ├── LICENSE ├── Makefile ├── README.md ├── SECURITY.md ├── action.sh ├── action.yml ├── cmd └── root.go ├── docs ├── img │ ├── terrafetch-demo.gif │ └── terrafetch-logo.png └── terrafetch-demo.tape ├── go.mod ├── go.sum ├── internal ├── analyze.go └── error.go ├── main.go ├── pkg ├── tui │ ├── logo.go │ └── ui.go └── utils │ └── dirs.go ├── renovate.json └── tests ├── account-map ├── README.md ├── modules │ ├── iam-roles │ │ ├── README.md │ │ ├── context.tf │ │ ├── main.tf │ │ ├── outputs.tf │ │ ├── providers.tf │ │ └── versions.tf │ └── team-assume-role-policy │ │ ├── README.md │ │ ├── context.tf │ │ ├── github-assume-role-policy.mixin.tf │ │ ├── main.tf │ │ └── versions.tf ├── outputs.tf └── versions.tf ├── api ├── main.tf └── providers.tf ├── cache ├── main.tf └── providers.tf ├── cdn ├── main.tf └── providers.tf ├── cluster ├── main.tf └── providers.tf ├── database ├── main.tf └── providers.tf ├── dynamodb ├── README.md ├── component.yaml ├── context.tf ├── main.tf ├── outputs.tf ├── providers.tf ├── variables.tf └── versions.tf ├── frontend ├── main.tf └── providers.tf ├── github-oidc-provider ├── README.md ├── outputs.tf └── versions.tf ├── github-oidc-role ├── README.md ├── additional-policy-map.tf ├── component.yaml ├── context.tf ├── main.tf ├── outputs.tf ├── policy_gitops.tf ├── policy_lambda-cicd.tf ├── providers.tf ├── variables.tf └── versions.tf ├── load-balancer ├── main.tf └── providers.tf ├── object-storage ├── main.tf └── providers.tf ├── s3-bucket ├── README.md ├── component.yaml ├── context.tf ├── main.tf ├── outputs.tf ├── providers.tf ├── remote-state.tf ├── variables.tf └── versions.tf ├── small └── main.tf └── vpc ├── main.tf └── providers.tf /.coderabbit.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.coderabbit.yaml -------------------------------------------------------------------------------- /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.editorconfig -------------------------------------------------------------------------------- /.github/CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @RoseSecurity 2 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug_report.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.github/ISSUE_TEMPLATE/bug_report.md -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature_request.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.github/ISSUE_TEMPLATE/feature_request.md -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.github/PULL_REQUEST_TEMPLATE.md -------------------------------------------------------------------------------- /.github/workflows/build.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.github/workflows/build.yaml -------------------------------------------------------------------------------- /.github/workflows/codeql.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.github/workflows/codeql.yml -------------------------------------------------------------------------------- /.github/workflows/terrafetch.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.github/workflows/terrafetch.yaml -------------------------------------------------------------------------------- /.github/workflows/test.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.github/workflows/test.yaml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.gitignore -------------------------------------------------------------------------------- /.golangci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.golangci.yml -------------------------------------------------------------------------------- /.goreleaser.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.goreleaser.yaml -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /Brewfile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/Brewfile -------------------------------------------------------------------------------- /FUNDING.yml: -------------------------------------------------------------------------------- 1 | github: rosesecurity 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/LICENSE -------------------------------------------------------------------------------- /Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/Makefile -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/README.md -------------------------------------------------------------------------------- /SECURITY.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/SECURITY.md -------------------------------------------------------------------------------- /action.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/action.sh -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/action.yml -------------------------------------------------------------------------------- /cmd/root.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/cmd/root.go -------------------------------------------------------------------------------- /docs/img/terrafetch-demo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/docs/img/terrafetch-demo.gif -------------------------------------------------------------------------------- /docs/img/terrafetch-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/docs/img/terrafetch-logo.png -------------------------------------------------------------------------------- /docs/terrafetch-demo.tape: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/docs/terrafetch-demo.tape -------------------------------------------------------------------------------- /go.mod: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/go.mod -------------------------------------------------------------------------------- /go.sum: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/go.sum -------------------------------------------------------------------------------- /internal/analyze.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/internal/analyze.go -------------------------------------------------------------------------------- /internal/error.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/internal/error.go -------------------------------------------------------------------------------- /main.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/main.go -------------------------------------------------------------------------------- /pkg/tui/logo.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/pkg/tui/logo.go -------------------------------------------------------------------------------- /pkg/tui/ui.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/pkg/tui/ui.go -------------------------------------------------------------------------------- /pkg/utils/dirs.go: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/pkg/utils/dirs.go -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/renovate.json -------------------------------------------------------------------------------- /tests/account-map/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/README.md -------------------------------------------------------------------------------- /tests/account-map/modules/iam-roles/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/iam-roles/README.md -------------------------------------------------------------------------------- /tests/account-map/modules/iam-roles/context.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/iam-roles/context.tf -------------------------------------------------------------------------------- /tests/account-map/modules/iam-roles/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/iam-roles/main.tf -------------------------------------------------------------------------------- /tests/account-map/modules/iam-roles/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/iam-roles/outputs.tf -------------------------------------------------------------------------------- /tests/account-map/modules/iam-roles/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/iam-roles/providers.tf -------------------------------------------------------------------------------- /tests/account-map/modules/iam-roles/versions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/iam-roles/versions.tf -------------------------------------------------------------------------------- /tests/account-map/modules/team-assume-role-policy/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/team-assume-role-policy/README.md -------------------------------------------------------------------------------- /tests/account-map/modules/team-assume-role-policy/context.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/team-assume-role-policy/context.tf -------------------------------------------------------------------------------- /tests/account-map/modules/team-assume-role-policy/github-assume-role-policy.mixin.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/team-assume-role-policy/github-assume-role-policy.mixin.tf -------------------------------------------------------------------------------- /tests/account-map/modules/team-assume-role-policy/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/team-assume-role-policy/main.tf -------------------------------------------------------------------------------- /tests/account-map/modules/team-assume-role-policy/versions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/modules/team-assume-role-policy/versions.tf -------------------------------------------------------------------------------- /tests/account-map/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/account-map/outputs.tf -------------------------------------------------------------------------------- /tests/account-map/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 1.2.0" 3 | } 4 | -------------------------------------------------------------------------------- /tests/api/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/api/main.tf -------------------------------------------------------------------------------- /tests/api/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/api/providers.tf -------------------------------------------------------------------------------- /tests/cache/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/cache/main.tf -------------------------------------------------------------------------------- /tests/cache/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/cache/providers.tf -------------------------------------------------------------------------------- /tests/cdn/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/cdn/main.tf -------------------------------------------------------------------------------- /tests/cdn/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/cdn/providers.tf -------------------------------------------------------------------------------- /tests/cluster/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/cluster/main.tf -------------------------------------------------------------------------------- /tests/cluster/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/cluster/providers.tf -------------------------------------------------------------------------------- /tests/database/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/database/main.tf -------------------------------------------------------------------------------- /tests/database/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/database/providers.tf -------------------------------------------------------------------------------- /tests/dynamodb/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/README.md -------------------------------------------------------------------------------- /tests/dynamodb/component.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/component.yaml -------------------------------------------------------------------------------- /tests/dynamodb/context.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/context.tf -------------------------------------------------------------------------------- /tests/dynamodb/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/main.tf -------------------------------------------------------------------------------- /tests/dynamodb/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/outputs.tf -------------------------------------------------------------------------------- /tests/dynamodb/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/providers.tf -------------------------------------------------------------------------------- /tests/dynamodb/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/variables.tf -------------------------------------------------------------------------------- /tests/dynamodb/versions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/dynamodb/versions.tf -------------------------------------------------------------------------------- /tests/frontend/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/frontend/main.tf -------------------------------------------------------------------------------- /tests/frontend/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/frontend/providers.tf -------------------------------------------------------------------------------- /tests/github-oidc-provider/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-provider/README.md -------------------------------------------------------------------------------- /tests/github-oidc-provider/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-provider/outputs.tf -------------------------------------------------------------------------------- /tests/github-oidc-provider/versions.tf: -------------------------------------------------------------------------------- 1 | terraform { 2 | required_version = ">= 1.2.0" 3 | } 4 | -------------------------------------------------------------------------------- /tests/github-oidc-role/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/README.md -------------------------------------------------------------------------------- /tests/github-oidc-role/additional-policy-map.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/additional-policy-map.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/component.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/component.yaml -------------------------------------------------------------------------------- /tests/github-oidc-role/context.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/context.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/main.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/outputs.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/policy_gitops.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/policy_gitops.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/policy_lambda-cicd.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/policy_lambda-cicd.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/providers.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/variables.tf -------------------------------------------------------------------------------- /tests/github-oidc-role/versions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/github-oidc-role/versions.tf -------------------------------------------------------------------------------- /tests/load-balancer/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/load-balancer/main.tf -------------------------------------------------------------------------------- /tests/load-balancer/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/load-balancer/providers.tf -------------------------------------------------------------------------------- /tests/object-storage/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/object-storage/main.tf -------------------------------------------------------------------------------- /tests/object-storage/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/object-storage/providers.tf -------------------------------------------------------------------------------- /tests/s3-bucket/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/README.md -------------------------------------------------------------------------------- /tests/s3-bucket/component.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/component.yaml -------------------------------------------------------------------------------- /tests/s3-bucket/context.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/context.tf -------------------------------------------------------------------------------- /tests/s3-bucket/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/main.tf -------------------------------------------------------------------------------- /tests/s3-bucket/outputs.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/outputs.tf -------------------------------------------------------------------------------- /tests/s3-bucket/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/providers.tf -------------------------------------------------------------------------------- /tests/s3-bucket/remote-state.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/remote-state.tf -------------------------------------------------------------------------------- /tests/s3-bucket/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/variables.tf -------------------------------------------------------------------------------- /tests/s3-bucket/versions.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/s3-bucket/versions.tf -------------------------------------------------------------------------------- /tests/small/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/small/main.tf -------------------------------------------------------------------------------- /tests/vpc/main.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/vpc/main.tf -------------------------------------------------------------------------------- /tests/vpc/providers.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RoseSecurity/terrafetch/HEAD/tests/vpc/providers.tf --------------------------------------------------------------------------------