Container registry Terraform resources

The resources and data sources of the ews provider for Container registry. Setting up the provider: Terraform & OpenTofu.

Resources

  • dcloud_ecr_lifecycle_policyA repository's lifecycle policy — the AWS ECR policy JSON, so a policy written for ECR works unchanged. Applied hourly: the images it selects are deleted. Destroying it removes the policy.
  • dcloud_ecr_pull_through_cache_ruleMirror a public registry under a prefix: docker pull <org>.ecr.<domain>/<prefix>/<name>:<tag> fetches the image from the upstream on first pull and serves it from your registry after that. Destroying the rule keeps what was cached.
  • dcloud_ecr_repositoryA container image repository. Push to <org>.ecr.<domain>/<name> with docker, crane, oras or helm. Deleting a repository deletes its images; their layers are garbage-collected.
  • dcloud_ecr_signing_keyA key the registry trusts: a cosign public key or notation certificate(s). Images signed with it show as signed, and deploy when the signing policy requires signatures. Destroying it stops trusting the key.
  • dcloud_ecr_signing_policyThe organization's "only signed images deploy" switch. On, the deploy service refuses an image no trusted dcloud_ecr_signing_key signed, and images from other registries; images Deutsche Cloud builds from source pass by provenance. One per organization; destroying it turns the policy off.
  • dcloud_ecr_storage_quotaThe organization's cap on what its container registry stores (each layer counted once). A push that would pass it is refused. One per organization; destroying it removes the cap. A repository's own cap is storage_quota_bytes on dcloud_ecr_repository.

Generated from the provider's schema.