{"id":20148216,"url":"https://github.com/chainguard-dev/terraform-provider-apko","last_synced_at":"2026-05-11T03:07:18.812Z","repository":{"id":103592898,"uuid":"509265634","full_name":"chainguard-dev/terraform-provider-apko","owner":"chainguard-dev","description":null,"archived":false,"fork":false,"pushed_at":"2026-04-22T03:13:08.000Z","size":1728,"stargazers_count":19,"open_issues_count":12,"forks_count":30,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-04-22T05:20:38.027Z","etag":null,"topics":["build","container-image","terraform","terraform-provider"],"latest_commit_sha":null,"homepage":"https://registry.terraform.io/providers/chainguard-dev/apko/latest","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":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"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":"2022-06-30T23:51:39.000Z","updated_at":"2026-04-22T03:13:11.000Z","dependencies_parsed_at":"2025-12-16T14:01:48.308Z","dependency_job_id":null,"html_url":"https://github.com/chainguard-dev/terraform-provider-apko","commit_stats":null,"previous_names":[],"tags_count":95,"template":false,"template_full_name":"hashicorp/terraform-provider-scaffolding","purl":"pkg:github/chainguard-dev/terraform-provider-apko","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-apko","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-apko/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-apko/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-apko/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainguard-dev","download_url":"https://codeload.github.com/chainguard-dev/terraform-provider-apko/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainguard-dev%2Fterraform-provider-apko/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32592720,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-03T22:12:39.696Z","status":"online","status_checked_at":"2026-05-04T02:00:06.625Z","response_time":58,"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":["build","container-image","terraform","terraform-provider"],"created_at":"2024-11-13T22:35:33.409Z","updated_at":"2026-05-04T03:01:27.378Z","avatar_url":"https://github.com/chainguard-dev.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Terraform Provider for [`apko`](https://github.com/chainguard-dev/apko)\n\n🚨 **This is a work in progress.** 🚨\n\nhttps://registry.terraform.io/providers/chainguard-dev/apko\n\n## Usage\n\nThis provides an `apko_build` resource that will build the provided `apko` configuration, push an image to the configured container repository, and make the image's reference available to other Terraform resources.\n\n```hcl\n\n# Define provider-wide defaults to reduce boilerplate or augment built images\n# with additional packages.\nprovider \"apko\" {\n  # Default to building for these architectures.\n  default_archs = [\"x86_64\", \"aarch64\"]\n\n  # Include these repositories by default\n  extra_repositories = [\"https://packages.wolfi.dev/os\"]\n  extra_keyring      = [\"https://packages.wolfi.dev/os/wolfi-signing.rsa.pub\"]\n\n  # All of the images should show up as Wolfi!\n  extra_packages     = [\"wolfi-baselayout\"]\n}\n\ndata \"apko_config\" \"this\" {\n  # Pass in the apko configuration here.  If you'd like to define this in a file\n  # so it can be used with apko as well, you can make this something like this\n  # instead:  config = file(\"${path.module}/apko.yaml\")\n  config_contents = jsonencode({\n    contents = {\n      packages = [\n        \"ca-certificates-bundle\",\n        \"tzdata\"\n      ]\n    },\n    accounts = {\n      groups = [{\n        groupname = \"nonroot\",\n        gid = 65532\n      }],\n      users = [{\n        username = \"nonroot\",\n        uid = 65532,\n        gid = 65532\n      }],\n      run-as = 65532\n    },\n  })\n}\n\nresource \"apko_build\" \"this\" {\n  # Where to publish the resulting image, e.g. docker.io/user/repo\n  repo   = \"...\"\n  config = data.apko_config.this.config\n}\n```\n\nThe image will be rebuilt every time it's _referenced_, and will only report as having changed if the image that was built was different since the last time the image resource was read.\n\nThis means that `terraform plan` will rebuild all referenced images, but only show diffs if rebuilds resulted in new images since last time the plan was made.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fterraform-provider-apko","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainguard-dev%2Fterraform-provider-apko","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainguard-dev%2Fterraform-provider-apko/lists"}