{"id":20148215,"url":"https://github.com/chainguard-dev/terraform-provider-imagetest","last_synced_at":"2026-06-15T03:02:41.914Z","repository":{"id":212324349,"uuid":"731226303","full_name":"chainguard-dev/terraform-provider-imagetest","owner":"chainguard-dev","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-10T23:22:59.000Z","size":2111,"stargazers_count":5,"open_issues_count":15,"forks_count":34,"subscribers_count":3,"default_branch":"main","last_synced_at":"2026-04-11T01:16:58.874Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/chainguard-dev/imagetest","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chainguard-dev.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-12-13T15:58:12.000Z","updated_at":"2026-04-10T23:22:18.000Z","dependencies_parsed_at":"2024-01-13T02:45:10.824Z","dependency_job_id":"2f7e0171-ca30-4bfe-a7e6-c41ef4aa12a2","html_url":"https://github.com/chainguard-dev/terraform-provider-imagetest","commit_stats":null,"previous_names":["chainguard-dev/terraform-provider-imagetest"],"tags_count":134,"template":false,"template_full_name":null,"purl":"pkg:github/chainguard-dev/terraform-provider-imagetest","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-imagetest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-imagetest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-imagetest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-imagetest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainguard-dev","download_url":"https://codeload.github.com/chainguard-dev/terraform-provider-imagetest/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-imagetest/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32031070,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-20T00:18:06.643Z","status":"online","status_checked_at":"2026-04-20T02:00:06.527Z","response_time":94,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T22:35:32.502Z","updated_at":"2026-04-20T03:01:02.453Z","avatar_url":"https://github.com/chainguard-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider Image Test\n\n🚨 **This is a work in progress** 🚨\n\nA terraform provider for authoring and executing tests using terraform primitives. Designed to work in conjunction with the [Chainguard Images](https://github.com/chainguard-dev/images) project. I would strongly recommend against using it for anything else.\n\nSee [examples](./examples) for usages, and [design](./design.md) for more information about the providers design.\n\n\n## Testing the provider\n\nBasic acceptance tests:\n\n```\nIMAGETEST_ENTRYPOINT_REF=$(KO_DOCKER_REPO=ttl.sh/imagetest ko build ./cmd/entrypoint) \\\n    TF_ACC=1 \\\n    go test ./internal/provider/... -count=1 -v\n```\n\nThis will build and use the entrypoint image, and use it in the test.\n\nTesting the EKS driver takes a _lot_ longer, and creates resources which might cost money. To run these tests, ensure you have AWS auth set up and `eksctl` installed, then run:\n\n```\nIMAGETEST_ENTRYPOINT_REF=$(KO_DOCKER_REPO=ttl.sh/imagetest ko build ./cmd/entrypoint) \\\n    TF_ACC=1 \\\n    go test -tags=eks ./internal/provider/... -count=1 -v -run=EKS -timeout=30m\n```\n\nThis will run the EKS tests using your auth, and `eksctl` to manage the cluster.\n\nThe test will look like it's doing nothing for ~15-20 minutes, but you can check the progress by using `eksctl get clusters`.\n\nWhen the cluster is up, you can find its kubeconfig in `$TMPDIR/imagetest-\u003cuid\u003e`, and `eksctl` populates the file (this takes ~10 minutes), use it to interact with the cluster:\n\n```\nKUBECONFIG=$TMPDIR/imagetest-\u003cuid\u003e kubectl get nodes\n```\n\nWhen the test completes, it should delete the cluster, but just in case it doesn't, you can delete it with:\n\n```\neksctl delete cluster --force --name=imagetest-\u003cuid\u003e\n```\n\nYou can also find the cluster in the AWS Console: https://us-west-2.console.aws.amazon.com/eks/home\n\nTo reuse the cluster instead of creating a new one each time, you can run the tests with `IMAGETEST_EKS_SKIP_TEARDOWN=true`.\n\nThen, the next time you run the test, find the cluster that the last test created, and add `IMAGETEST_EKS_CLUSTER=imagetest-\u003cuid\u003e` to reuse the cluster.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fterraform-provider-imagetest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainguard-dev%2Fterraform-provider-imagetest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fterraform-provider-imagetest/lists"}