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
asdformise- 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_password.token_password | resource |
| Name | Description | Type | Default | Required |
|---|---|---|---|---|
| container_registry_token_id | The ID of the Container Registry Token that this Container Registry Token Password resides in. Changing this forces a new Container Registry Token Password to be created. | string |
n/a | yes |
| password1_expiry | The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created. | string |
null |
no |
| password2_expiry | The expiration date of the password in RFC3339 format. If not specified, the password never expires. Changing this forces a new resource to be created. | string |
null |
no |
| Name | Description |
|---|---|
| id | The ID of the Container Registry Token Password. |
| password1 | n/a |
| password2 | n/a |