Skip to content

Latest commit

 

History

History
61 lines (44 loc) · 3.72 KB

File metadata and controls

61 lines (44 loc) · 3.72 KB

Azure Container Registry Service

A Terraform module for creating Azure Container Registry Service resources.

Prerequisites

To use this module you need the following resources:

Module Features

This module creates Azure Container Registry Service resources.

Getting Started

Most basic usage creating a Azure Container Registry Service resource.

module "container" {
  source                        = "."
  environment                   = "development"
  container_name                = "containerSample"
  resource_group_name            = azurerm_resource_group.rg.name
  location                       = azurerm_resource_group.rg.location
  container_sku                 = "Basic"
  container_admin_enabled       = true
  public_network_access_enabled = false  
  tags = {
    environment = "Demo"
  }
}

Module Argument Reference

See variables.tf

Module Attributes Reference

in addition of all arguments above the following attributes are exported by the module:

  • container_registry_id: The create container registry id returned by Azure Container Registry Service container_registry_id attribute
  • container_registry_name: The created container registry name returned by Azure Container Registry Service container_registry_id attribute
  • container_registry_login_server: The url to connect with the created container registry service returned by Azure Container Registry Service container_registry_login_server attribute
  • container_registry_fqdn: The FQDN of the created container registry service returned by Azure Container Registry Service container_registry_fqdn attribute
  • container_registry_admin_username: The Username associated with the Container Registry Admin account - if the admin account is enabled, returned by Azure Container Registry Service container_registry_admin_username attribute
  • container_registry_admin_password: The Password associated with the Container Registry Admin account - if the admin account is enabled, returned by Azure Container Registry Service container_registry_admin_password attribute

Samples

You have the samples in samples folder