subcategory |
---|
Managed Private Registry (MPR) |
Creates an OVHcloud IAM configuration in an OVHcloud Managed Private Registry.
resource "ovh_cloud_project_containerregistry_iam" "my_iam" {
service_name = "XXXXXX"
registry_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx"
#optional field
delete_users = false
}
output "iam-enabled" {
value = ovh_cloud_project_containerregistry_iam.my_iam.iam-enabled
sensitive = true
}
The following arguments are supported:
service_name
- The ID of the public cloud project. If omitted, theOVH_CLOUD_PROJECT_SERVICE
environment variable is used. Changing this value recreates the resource.registry_id
- The ID of the Managed Private Registry. Changing this value recreates the resource.delete_users
- Delete existing users from Harbor. IAM feature can't be enabled if there is at least one user already created. This parameter is only used at IAM configuration creation. Changing this value recreates the resource.
resource "ovh_cloud_project_containerregistry_iam" "my-iam" {
# ...
timeouts {
create = "1h"
update = "45m"
delete = "50s"
}
}
create
- (Default 10m)update
- (Default 10m)delete
- (Default 10m)
OVHcloud Managed Private Registry OVHcloud IAM can be imported using the tenant service_name
and registry id registry_id
separated by "/" E.g.,
$ terraform import ovh_cloud_project_containerregistry_iam.my-iam service_name/registry_id