diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fae8897 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +* eol=lf diff --git a/.github/settings.json b/.github/settings.json index a3dfe0a..eed063e 100644 --- a/.github/settings.json +++ b/.github/settings.json @@ -4,10 +4,10 @@ "visibility": "public", "default_branch": "main", "topics": [ - "terraform", "azure", "container-app-environment", - "container-app-environment-storage" + "container-app-environment-storage", + "terraform" ] } } diff --git a/examples/.tflint.hcl b/examples/.tflint.hcl index c409815..78bf102 100644 --- a/examples/.tflint.hcl +++ b/examples/.tflint.hcl @@ -1,3 +1,6 @@ +rule "terraform_required_providers" { + enabled = false +} rule "terraform_required_version" { enabled = false } diff --git a/main.tf b/main.tf index 68d0c7c..83b388a 100644 --- a/main.tf +++ b/main.tf @@ -19,10 +19,10 @@ resource "azurerm_container_app_environment" "container_app_environment" { log_analytics_workspace_id = local.container_app_environment[each.key].log_analytics_workspace_id tags = local.container_app_environment[each.key].tags - + dynamic "workload_profile" { - for_each = local.container_app_environment[each.key].workload_profile.name == "" ? [] : [1] - content { + for_each = local.container_app_environment[each.key].workload_profile.name == "" ? [] : [1] + content { name = local.container_app_environment[each.key].workload_profile.name workload_profile_type = local.container_app_environment[each.key].workload_profile.workload_profile_type minimum_count = local.container_app_environment[each.key].workload_profile.minimum_count diff --git a/renovate.json b/renovate.json index 53669aa..d6deba2 100644 --- a/renovate.json +++ b/renovate.json @@ -1,5 +1,15 @@ { "extends": [ - "github>telekom-mms/.github:renovate-preset.json5" + "config:base", + "github>telekom-mms/terraform-template" + ], + "dependencyDashboard": true, + "dependencyDashboardAutoclose": false, + "packageRules": [ + { + "matchUpdateTypes": ["patch"], + "automerge": true + } ] } + diff --git a/variables.tf b/variables.tf index 8bb04bd..e31fc50 100644 --- a/variables.tf +++ b/variables.tf @@ -23,10 +23,10 @@ locals { log_analytics_workspace_id = null tags = {} workload_profile = { - name = "" - workload_profile_type = null - minimum_count = null - maximum_count = null + name = "" + workload_profile_type = null + minimum_count = null + maximum_count = null } } container_app_environment_storage = {