Provides a DigitalOcean Container Registry resource. A Container Registry is a secure, private location to store your containers for rapid deployment.
# Create a new container registry
resource "digitalocean_container_registry" "foobar" {
name = "foobar"
subscription_tier_slug = "starter"
}
The following arguments are supported:
name
- (Required) The name of the container_registrysubscription_tier_slug
- (Required) The slug identifier for the subscription tier to use (starter
, basic
, or professional
)region
- (Optional) The slug identifier of for region where registry data will be stored. When not provided, a region will be selected automatically.The following attributes are exported:
id
- The id of the container registryname
- The name of the container registrysubscription_tier_slug
- The slug identifier for the subscription tierregion
- The slug identifier for the regionendpoint
- The URL endpoint of the container registry. Ex: registry.digitalocean.com/my_registry
server_url
- The domain of the container registry. Ex: registry.digitalocean.com
storage_usage_bytes
- The amount of storage used in the registry in bytes.created_at
- The date and time when the registry was createdContainer Registries can be imported using the name
, e.g.
terraform import digitalocean_container_registry.myregistry registryname