A container registry token for Azure Container Registry. Combine this with a scope map and token password to yield a set of credentials for accessing your ACR.
To set yourself up for local development and testing activities, ensure you have the following software available on your PATH:
- make
- git (ensure your user.name and user.email are configured)
- git-repo
asdf
ormise
- python3 (for pre-commit hooks)
You will also need to authenticate to the Cloud Provider. Terraform will use the default credential resolution mechanism, so ensure you are signed on through the CLI.
Clone this repository to your machine and issue the following command:
make configure
This will synchronize supporting repositories into this directory and expose additional targets.
To perform linting actions against the Terraform module and Terratests, issue the following command:
make lint
To provision cloud resources and perform tests against them, issue the following command:
make test
Note that make test
causes the creation of some ignored files on your filesystem. This behavior is expected and we want to exclude any state or lockfiles from being pushed to the repository.
These two commands will be utilized in the pipeline and if you cannot run them successfully locally, you are unlikely to see a different result in the pipeline.
For convenience, a target exists that will execute both make lint
and make test
for you in sequence. Issue the following command to perform a holistic lint and test:
make check
Name | Version |
---|---|
terraform | ~> 1.0 |
azurerm | ~> 3.117 |
No modules.
Name | Type |
---|---|
azurerm_container_registry_token.token | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
name | Specifies the name of the token. Changing this forces a new resource to be created. | string |
n/a | yes |
resource_group_name | The name of the resource group in which to create the Container Registry token. Changing this forces a new resource to be created. | string |
n/a | yes |
container_registry_name | The name of the Container Registry. Changing this forces a new resource to be created. | string |
n/a | yes |
scope_map_id | The ID of the Container Registry Scope Map associated with the token. | string |
n/a | yes |
enabled | Should the Container Registry token be enabled? Defaults to true. | bool |
true |
no |
Name | Description |
---|---|
id | The ID of the Container Registry Token. |