Skip to content

scaleway-terraform-modules/terraform-scaleway-registry

Terraform / Scaleway

Purpose

This repository is used to manage a container registry on scaleway using terraform.

Usage

module "my_registry" {
  source  = "scaleway-terraform-modules/registry/scaleway"
  version = "0.0.1"

}

Requirements

Name Version
terraform >= 0.13
archive >= 2.0.0
scaleway >= 2.0.0

Resources

Name Type
archive_file.registry_purge resource
scaleway_function.registry_purge resource
scaleway_function_cron.registry_purge resource
scaleway_function_namespace.maintenance resource
scaleway_iam_api_key.registry_purge resource
scaleway_iam_application.registry_purge resource
scaleway_iam_policy.registry_purge resource
scaleway_registry_namespace.this resource

Inputs

Name Description Type Default Required
name Unique name of the namespace. string n/a yes
description Description of the namespace. string null no
is_public Whether the images stored in the namespace should be downloadable publicly (docker pull). bool false no
project_id ID of the project the namespace is associated with. Ressource will be created in the project set at the provider level if null. string null no
purge_dry_run Prevent deletion of tags & images. bool true no
purge_log_level Log Level of the purge function. Refer to the Go slog package documentation for accepted values number 0 no
purge_preserve_tag_patterns List of regex patterns for tags to preserve. By default, preserves semantic versioning tags and latest tags. list(string) ```[ "^latest((-.+)?)$", "^(0 [1-9]\d*)\.(0
purge_retention_days Number of days to keep images before deletion. number 30 no
purge_schedule Cron schedule for the cleanup function. Set to empty string to disable scheduled cleanup. string "0 0 * * *" no
purge_timeout Timeout for the cleanup function in seconds. number 300 no
region Region in which the namespace should be created. Ressource will be created in the region set at the provider level if null. string null no

Outputs

Name Description
endpoint URL of the namespace.
id ID of the namespace.
maintenance_namespace_id ID of the maintenance function namespace.
purge_application_id ID of the IAM application for the cleanup function.
purge_cron_id ID of the cron trigger for the cleanup function.
purge_function_endpoint Endpoint URL of the cleanup function.
purge_function_id ID of the cleanup function.

Authors

Module is maintained with help from the community.

License

Mozilla Public License 2.0 Licensed. See LICENSE for full details.