-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add: acr route already applied on dev. previously failing job: https://github.com/comsysto/wp10-image-factory/actions/runs/10973783705/attempts/2 now succeeded: https://github.com/comsysto/wp10-image-factory/actions/runs/10973783705 also added: - tags to all Azure resources - terraform README.md for every module
- Loading branch information
Showing
36 changed files
with
707 additions
and
81 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >=1.0 | | ||
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | ~>3.0 | | ||
| <a name="requirement_random"></a> [random](#requirement\_random) | ~>3.0 | | ||
|
||
## Providers | ||
|
||
No providers. | ||
|
||
## Modules | ||
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| <a name="module_state_storage"></a> [state\_storage](#module\_state\_storage) | ./modules/state-storage | n/a | | ||
|
||
## Resources | ||
|
||
No resources. | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| <a name="input_prefix"></a> [prefix](#input\_prefix) | Prefix of the resource name | `string` | `"wp10"` | no | | ||
| <a name="input_state_env_tag"></a> [state\_env\_tag](#input\_state\_env\_tag) | Environment tag applied to all created resources | `string` | `"dev"` | no | | ||
| <a name="input_state_project_tag"></a> [state\_project\_tag](#input\_state\_project\_tag) | Project tag applied to all created resources | `string` | `"wp10"` | no | | ||
| <a name="input_state_rg_location"></a> [state\_rg\_location](#input\_state\_rg\_location) | Location of the resource group | `string` | `"westeurope"` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name) | Name of the created resource group. Value needed for `config.azurerm.tfbackend` | | ||
| <a name="output_state_container_name"></a> [state\_container\_name](#output\_state\_container\_name) | Name of the storage account container used for the terraform state. Value needed for `config.azurerm.tfbackend` | | ||
| <a name="output_state_storage_account_name"></a> [state\_storage\_account\_name](#output\_state\_storage\_account\_name) | Name of the storage account used for terraform state backend. Value needed for `config.azurerm.tfbackend` | | ||
<!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,9 @@ | ||
module "state_storage" { | ||
source = "./modules/state-storage" | ||
prefix = var.prefix | ||
|
||
prefix = var.prefix | ||
resource_group_location = var.state_rg_location | ||
state_env_tag = var.state_env_tag | ||
state_project_tag = var.state_project_tag | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,43 @@ | ||
TODO | ||
TODO | ||
<!-- BEGIN_TF_DOCS --> | ||
## Requirements | ||
|
||
No requirements. | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | n/a | | ||
| <a name="provider_random"></a> [random](#provider\_random) | n/a | | ||
|
||
## Modules | ||
|
||
No modules. | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|------|------| | ||
| [azurerm_resource_group.state_rg](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/resource_group) | resource | | ||
| [azurerm_storage_account.tfstate](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_account) | resource | | ||
| [azurerm_storage_container.tfstate](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/storage_container) | resource | | ||
| [random_string.resource_code](https://registry.terraform.io/providers/hashicorp/random/latest/docs/resources/string) | resource | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| <a name="input_prefix"></a> [prefix](#input\_prefix) | Prefix of the resource name. | `string` | n/a | yes | | ||
| <a name="input_resource_group_location"></a> [resource\_group\_location](#input\_resource\_group\_location) | Location of the resource group. | `string` | n/a | yes | | ||
| <a name="input_state_env_tag"></a> [state\_env\_tag](#input\_state\_env\_tag) | Environment tag applied to all created resources. | `string` | n/a | yes | | ||
| <a name="input_state_project_tag"></a> [state\_project\_tag](#input\_state\_project\_tag) | Project tag applied to all created resources. | `string` | n/a | yes | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_resource_group_name"></a> [resource\_group\_name](#output\_resource\_group\_name) | Name of the created resource group. Value needed for config.azurerm.tfbackend. | | ||
| <a name="output_state_container_name"></a> [state\_container\_name](#output\_state\_container\_name) | Name of the storage account container used for the terraform state. Value needed for config.azurerm.tfbackend. | | ||
| <a name="output_state_storage_account_name"></a> [state\_storage\_account\_name](#output\_state\_storage\_account\_name) | Name of the storage account used for terraform state backend. Value needed for config.azurerm.tfbackend. | | ||
<!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
output "resource_group_name" { | ||
value = azurerm_resource_group.state_rg.name | ||
value = azurerm_resource_group.state_rg.name | ||
description = "Name of the created resource group. Value needed for config.azurerm.tfbackend." | ||
} | ||
|
||
output "state_storage_account_name" { | ||
value = azurerm_storage_account.tfstate.name | ||
value = azurerm_storage_account.tfstate.name | ||
description = "Name of the storage account used for terraform state backend. Value needed for config.azurerm.tfbackend." | ||
} | ||
|
||
output "state_container_name" { | ||
value = azurerm_storage_container.tfstate.name | ||
value = azurerm_storage_container.tfstate.name | ||
description = "Name of the storage account container used for the terraform state. Value needed for config.azurerm.tfbackend." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,19 @@ | ||
variable "prefix" { | ||
type = string | ||
description = "Prefix of the resource name" | ||
description = "Prefix of the resource name." | ||
} | ||
|
||
variable "resource_group_location" { | ||
type = string | ||
description = "Location of the resource group." | ||
} | ||
|
||
variable "state_env_tag" { | ||
type = string | ||
description = "Environment tag applied to all created resources." | ||
} | ||
|
||
variable "state_project_tag" { | ||
type = string | ||
description = "Project tag applied to all created resources." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
output "resource_group_name" { | ||
value = module.state_storage.resource_group_name | ||
value = module.state_storage.resource_group_name | ||
description = "Name of the created resource group. Value needed for `config.azurerm.tfbackend`" | ||
} | ||
|
||
output "state_storage_account_name" { | ||
value = module.state_storage.state_storage_account_name | ||
value = module.state_storage.state_storage_account_name | ||
description = "Name of the storage account used for terraform state backend. Value needed for `config.azurerm.tfbackend`" | ||
} | ||
|
||
output "state_container_name" { | ||
value = module.state_storage.state_container_name | ||
value = module.state_storage.state_container_name | ||
description = "Name of the storage account container used for the terraform state. Value needed for `config.azurerm.tfbackend`" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
## Requirements | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="requirement_terraform"></a> [terraform](#requirement\_terraform) | >=1.0 | | ||
| <a name="requirement_azapi"></a> [azapi](#requirement\_azapi) | ~>1.15 | | ||
| <a name="requirement_azurerm"></a> [azurerm](#requirement\_azurerm) | ~>3.0 | | ||
| <a name="requirement_external"></a> [external](#requirement\_external) | 2.3.4 | | ||
| <a name="requirement_github"></a> [github](#requirement\_github) | 6.3.0 | | ||
| <a name="requirement_random"></a> [random](#requirement\_random) | ~>3.0 | | ||
|
||
## Providers | ||
|
||
No providers. | ||
|
||
## Modules | ||
|
||
| Name | Source | Version | | ||
|------|--------|---------| | ||
| <a name="module_acg"></a> [acg](#module\_acg) | ./modules/acg | n/a | | ||
| <a name="module_acr"></a> [acr](#module\_acr) | ./modules/acr | n/a | | ||
| <a name="module_firewall"></a> [firewall](#module\_firewall) | ./modules/firewall | n/a | | ||
| <a name="module_github_output"></a> [github\_output](#module\_github\_output) | ./modules/github_output | n/a | | ||
| <a name="module_network"></a> [network](#module\_network) | ./modules/network | n/a | | ||
| <a name="module_runner"></a> [runner](#module\_runner) | ./modules/runner | n/a | | ||
|
||
## Resources | ||
|
||
No resources. | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| <a name="input_env_tag"></a> [env\_tag](#input\_env\_tag) | Environment tag applied to all created resources | `string` | `"dev"` | no | | ||
| <a name="input_local_development"></a> [local\_development](#input\_local\_development) | Development purposes only: set to 'true' when running terraform apply locally. Outputs SSH private key to the terraform directory | `bool` | `false` | no | | ||
| <a name="input_project_tag"></a> [project\_tag](#input\_project\_tag) | Project tag applied to all created resources | `string` | `"wp10"` | no | | ||
| <a name="input_repository"></a> [repository](#input\_repository) | Repository in which to save output secrets | `string` | `"wp10-image-factory"` | no | | ||
| <a name="input_resource_group_location"></a> [resource\_group\_location](#input\_resource\_group\_location) | Location of the resource group | `string` | `"westeurope"` | no | | ||
| <a name="input_runner_image_id"></a> [runner\_image\_id](#input\_runner\_image\_id) | Shared Image Gallery ID of the runner VM image | `string` | `"/subscriptions/218f1214-da01-4678-8025-4e14a989e315/resourceGroups/wp10-tf-dev-rg/providers/Microsoft.Compute/galleries/wp10ImageFactoryGallery/images/image-factory-vm/versions/1.0.34"` | no | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_network_name"></a> [network\_name](#output\_network\_name) | Name of the created resource group. | | ||
| <a name="output_runner_data"></a> [runner\_data](#output\_runner\_data) | Prints out runner data if `local_development` is set to `true`. | | ||
<!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
<!-- BEGIN_TF_DOCS --> | ||
## Requirements | ||
|
||
No requirements. | ||
|
||
## Providers | ||
|
||
| Name | Version | | ||
|------|---------| | ||
| <a name="provider_azurerm"></a> [azurerm](#provider\_azurerm) | n/a | | ||
|
||
## Modules | ||
|
||
No modules. | ||
|
||
## Resources | ||
|
||
| Name | Type | | ||
|------|------| | ||
| [azurerm_shared_image_gallery.factory_image_gallery](https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/shared_image_gallery) | resource | | ||
|
||
## Inputs | ||
|
||
| Name | Description | Type | Default | Required | | ||
|------|-------------|------|---------|:--------:| | ||
| <a name="input_env_tag"></a> [env\_tag](#input\_env\_tag) | Environment tag applied to all created resources | `string` | n/a | yes | | ||
| <a name="input_prefix"></a> [prefix](#input\_prefix) | Prefix of the resource name | `string` | n/a | yes | | ||
| <a name="input_project_tag"></a> [project\_tag](#input\_project\_tag) | Project tag applied to all created resources | `string` | n/a | yes | | ||
| <a name="input_resource_group_location"></a> [resource\_group\_location](#input\_resource\_group\_location) | Azure region | `string` | n/a | yes | | ||
| <a name="input_resource_group_name"></a> [resource\_group\_name](#input\_resource\_group\_name) | Name of the existing resource group | `string` | n/a | yes | | ||
| <a name="input_subnet_id"></a> [subnet\_id](#input\_subnet\_id) | Private endpoint subnet | `string` | n/a | yes | | ||
| <a name="input_virtual_network"></a> [virtual\_network](#input\_virtual\_network) | Virtual network | `any` | n/a | yes | | ||
|
||
## Outputs | ||
|
||
| Name | Description | | ||
|------|-------------| | ||
| <a name="output_gallery_id"></a> [gallery\_id](#output\_gallery\_id) | Shared Image Gallery ID | | ||
<!-- END_TF_DOCS --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Export Outputs | ||
output "gallery_id" { | ||
value = azurerm_shared_image_gallery.factory_image_gallery.id | ||
value = azurerm_shared_image_gallery.factory_image_gallery.id | ||
description = "Shared Image Gallery ID" | ||
} |
Oops, something went wrong.