Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Modules #60

Open
wants to merge 18 commits into
base: main
Choose a base branch
from
Open

New Modules #60

wants to merge 18 commits into from

Conversation

Bunzab
Copy link

@Bunzab Bunzab commented Jan 22, 2024

No description provided.

@@ -0,0 +1,32 @@
# Data Factory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Data Factory
# Linux Web App

Comment on lines 11 to 18
environment = "dev"
identifier = "mortgages"
location = "uksouth"
log_analytics_workspace_id = data.azurerm_log_analytics_workspace.main.id
resource_group_name = module.resource_group.name
service_plan_id = module.app_service_plan.id
instrumentation_key = azurerm_application_insights.main.instrumentation_key
zone = "mtg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Convention is to keep the 5 standard vars together and then the rest below.

Suggested change
environment = "dev"
identifier = "mortgages"
location = "uksouth"
log_analytics_workspace_id = data.azurerm_log_analytics_workspace.main.id
resource_group_name = module.resource_group.name
service_plan_id = module.app_service_plan.id
instrumentation_key = azurerm_application_insights.main.instrumentation_key
zone = "mtg"
environment = "dev"
identifier = "mortgages"
location = "uksouth"
resource_group_name = module.resource_group.name
zone = "mtg"
service_plan_id = module.app_service_plan.id
instrumentation_key = azurerm_application_insights.main.instrumentation_key
log_analytics_workspace_id = data.azurerm_log_analytics_workspace.main.id

name = "log-analytics"
target_resource_id = azurerm_linux_web_app.main.id
log_analytics_workspace_id = var.log_analytics_workspace_id
log_analytics_destination_type = "AzureDiagnostics"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This causes TF to flap.

Suggested change
log_analytics_destination_type = "AzureDiagnostics"

modules/linux-web-app/src/main.tf Show resolved Hide resolved
@@ -0,0 +1,29 @@
# Data Factory
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
# Data Factory
# CosmosDB Account

modules/service-plan/README.md Outdated Show resolved Hide resolved
Comment on lines 11 to 17
environment = "dev"
identifier = "mortgages"
location = "uksouth"
os_type = "Linux"
resource_group_name = module.resource_group.name
sku_name = "P0v3"
zone = "mtg"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
environment = "dev"
identifier = "mortgages"
location = "uksouth"
os_type = "Linux"
resource_group_name = module.resource_group.name
sku_name = "P0v3"
zone = "mtg"
environment = "dev"
identifier = "mortgages"
location = "uksouth"
resource_group_name = module.resource_group.name
zone = "mtg"
os_type = "Linux"
sku_name = "P0v3"


```hcl
module "service_plan" {
source = "https://github.com/gofrontier-com/azurerm-terraform-modules/releases/download/app-service-plan/[VERSION]/module.tar.gz//src"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
source = "https://github.com/gofrontier-com/azurerm-terraform-modules/releases/download/app-service-plan/[VERSION]/module.tar.gz//src"
source = "https://github.com/gofrontier-com/azurerm-terraform-modules/releases/download/service-plan/[VERSION]/module.tar.gz//src"

features {}
}

module "app_service_plan" {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
module "app_service_plan" {
module "service_plan" {

Comment on lines 8 to 14
environment = "bar"
identifier = "baz"
location = "uksouth"
os_type = "boo"
resource_group_name = "bar"
sku_name = "far"
zone = "bat"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
environment = "bar"
identifier = "baz"
location = "uksouth"
os_type = "boo"
resource_group_name = "bar"
sku_name = "far"
zone = "bat"
environment = "bar"
identifier = "baz"
location = "uksouth"
resource_group_name = "bar"
zone = "bat"
os_type = "boo"
sku_name = "far"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants