Skip to content

Commit 67b6044

Browse files
authored
Merge pull request #21 from Think-Cube/patch-1
Update backend.tf
2 parents a1c4b19 + e6b53b1 commit 67b6044

File tree

3 files changed

+14
-17
lines changed

3 files changed

+14
-17
lines changed

README.md

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,15 @@
1-
<!-- BEGIN_TF_DOCS -->
21
## Requirements
32

43
| Name | Version |
54
|------|---------|
6-
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.6.4 |
7-
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | 4.0.1 |
5+
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >= 1.6.3 |
6+
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | 4.14.0 |
87

98
## Providers
109

1110
| Name | Version |
1211
|------|---------|
13-
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 4.0.1 |
12+
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | 4.14.0 |
1413

1514
## Modules
1615

@@ -20,9 +19,9 @@ No modules.
2019

2120
| Name | Type |
2221
|------|------|
23-
| [azurerm_container_registry.main](https://registry.terraform.io/providers/hashicorp/azurerm/4.0.1/docs/resources/container_registry) | resource |
24-
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/4.0.1/docs/data-sources/client_config) | data source |
25-
| [azurerm_resource_group.main](https://registry.terraform.io/providers/hashicorp/azurerm/4.0.1/docs/data-sources/resource_group) | data source |
22+
| [azurerm_container_registry.main](https://registry.terraform.io/providers/hashicorp/azurerm/4.14.0/docs/resources/container_registry) | resource |
23+
| [azurerm_client_config.current](https://registry.terraform.io/providers/hashicorp/azurerm/4.14.0/docs/data-sources/client_config) | data source |
24+
| [azurerm_resource_group.main](https://registry.terraform.io/providers/hashicorp/azurerm/4.14.0/docs/data-sources/resource_group) | data source |
2625

2726
## Inputs
2827

@@ -31,11 +30,10 @@ No modules.
3130
| <a name="input_acr_admin_enabled"></a> [acr\_admin\_enabled](#input\_acr\_admin\_enabled) | Specifies whether the admin user is enabled. Defaults to false. | `string` | `"false"` | no |
3231
| <a name="input_acr_name"></a> [acr\_name](#input\_acr\_name) | Specifies the name of the Container Registry. Changing this forces a new resource to be created. | `string` | n/a | yes |
3332
| <a name="input_acr_tier"></a> [acr\_tier](#input\_acr\_tier) | The SKU name of the container registry. Possible values are Basic, Standard and Premium. Classic (which was previously Basic) is supported only for existing resources. | `string` | `"Basic"` | no |
34-
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | A mapping of tags to assign to the resource. | `map(any)` | <pre>{<br/> "ManagedByTerraform": "True"<br/>}</pre> | no |
35-
| <a name="input_environment"></a> [environment](#input\_environment) | Variable that defines the name of the environment. | `string` | `"dev"` | no |
36-
| <a name="input_region"></a> [region](#input\_region) | Region in which resources are deployed. | `string` | `"weu"` | no |
37-
| <a name="input_resource_group_location"></a> [resource\_group\_location](#input\_resource\_group\_location) | Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. | `string` | `"West Europe"` | no |
38-
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | The name of the resource group in which to create the container registry component. Changing this forces a new resource to be created. | `string` | n/a | yes |
33+
| <a name="input_default_tags"></a> [default\_tags](#input\_default\_tags) | A map of default tags to assign to all resources, aiding in resource organization and cost tracking. | `map(string)` | n/a | yes |
34+
| <a name="input_environment"></a> [environment](#input\_environment) | The name of the environment to deploy resources into, such as 'dev', 'test', or 'prod'. | `string` | n/a | yes |
35+
| <a name="input_resource_group_location"></a> [resource\_group\_location](#input\_resource\_group\_location) | The Azure region where the resource group is located. Changing this value will recreate the Container Registry. | `string` | n/a | yes |
36+
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | The name of the resource group in which the Container Registry will be created. Modifying this value will recreate the resource. | `string` | n/a | yes |
3937

4038
## Outputs
4139

@@ -45,4 +43,3 @@ No modules.
4543
| <a name="output_admin_username"></a> [admin\_username](#output\_admin\_username) | The Username associated with the Container Registry Admin account - if the admin account is enabled. |
4644
| <a name="output_id"></a> [id](#output\_id) | The ID of the Container Registry. |
4745
| <a name="output_login_server"></a> [login\_server](#output\_login\_server) | The URL that can be used to log into the container registry. |
48-
<!-- END_TF_DOCS -->

acr.tf

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
resource "azurerm_container_registry" "main" {
22
name = "${var.environment}${var.acr_name}"
3-
resource_group_name = data.azurerm_resource_group.rg.name
4-
location = data.azurerm_resource_group.rg.location
3+
resource_group_name = data.azurerm_resource_group.main.name
4+
location = data.azurerm_resource_group.main.location
55
sku = var.acr_tier
66
admin_enabled = var.acr_admin_enabled
77
tags = var.default_tags
8-
}
8+
}

backend.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ terraform {
22
required_providers {
33
azurerm = {
44
source = "hashicorp/azurerm"
5-
version = "4.12.0"
5+
version = "4.14.0"
66
}
77
}
88
required_version = ">= 1.6.3"

0 commit comments

Comments
 (0)