-
Notifications
You must be signed in to change notification settings - Fork 0
Tc 60 #71
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
Open
KirilKirilov966
wants to merge
79
commits into
main
Choose a base branch
from
TC-60
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Tc 60 #71
Changes from 5 commits
Commits
Show all changes
79 commits
Select commit
Hold shift + click to select a range
885edc2
Added new module Application-gateway
ec0eedf
edited main.tf and locals.tf
67839a9
removed subnets from networking.tf
efe4541
updated _locals.tf
bbd1eb4
updated _locals
291a572
updated variables_resources
20a1850
added dynamic gateway
a916016
changed locals
74f01e6
updated main.tf
2c473e6
updated tags
bbc4f60
edited variables
931204f
fixed locals.tf
786a3d4
updated locals
e8d4878
removed app-gateway
e1c3ae2
reversed app-gateway
22d6608
added azure_diagnostics
fb894d4
updated files
e26fc42
added dynamic grep
835dd33
edited variables
5d4763e
edited main.tf
fcb4ac9
typo
fbc9681
typo
1e650bb
typo
ffbb125
edited variables, created diagnostic.tf
6ac9d2f
updated main.tf
f7004f2
updated diagnostic.tf
5fda5d3
updated variables.tf
d629b7b
edited variables
a89114d
updated main.tf
57ee119
updated var.resources
11080bd
edited _variables
814ba80
updated variables
cfc6c43
updated variable
fb9515f
typos
e9b40fd
Updated variables
b3292fc
typos
ea98029
changes on variables
e2e3227
updated main.tf
ef6d9cf
major update of main and variables
288f0a8
updated main
f7e3800
updated for each
bebd360
updated main.tf
281257b
update
6e0d5ae
updated variables
69f72e8
edited variables
c554c11
updated locals
44767b5
updated diagnostic.tf
b937c5c
typo
7b91c7a
updated main.tf
e96c455
updated main
e89f71d
updated main
f7435ed
updated main
f5505c1
main update
2ca72da
udapted main
747f5b1
removed retention policy
a2afc02
updated outputs
c1297b5
updated main
cc7eb54
updated variables
b9794f2
typo
124c0ef
updated locals
ff22172
update on main
7079525
updated vars
51b82d6
push diagnostic.tf
652c772
small typo
5837d49
minor output update
ae0dfa1
updated main.tf
e23e45e
small typo
135bf0b
added value
9d649fd
added network_rule_set to container registry module
1cd74b5
added keyvault_client_password and secret
0f16a75
added data.tf and locals.tf
bbbc15c
updated object_id
58438e3
fix
lyudmililchev92 19a4568
fix
lyudmililchev92 47b85ca
fix
lyudmililchev92 8283b4f
revert
lyudmililchev92 aa63961
fix
lyudmililchev92 d87b6b3
fix
lyudmililchev92 d89a0c1
added by user
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,20 @@ | ||
| locals { | ||
| lz_key = try(var.settings.lz_key, var.client_config.landingzone_key) | ||
|
|
||
| resource_group = var.resources[local.lz_key].resource_groups[var.settings.resource_group_ref] | ||
|
|
||
| resource_group_name = local.resource_group.name | ||
| location = local.resource_group.location | ||
|
|
||
| public_ip = var.resources[local.lz_key].public_ips[var.settings.public_ip] | ||
|
|
||
| subnet = var.resources[local.lz_key].virtual_networks[var.settings.virtual_network].subnets[ | ||
| split("/", var.settings.subnet_ref)[1] | ||
| ] | ||
|
KirilKirilov966 marked this conversation as resolved.
Outdated
|
||
|
|
||
| tags = merge( | ||
| var.global_settings.tags, | ||
| var.global_settings.inherit_resource_group_tags ? local.resource_group.tags : {}, | ||
| try(var.settings.tags, {}) | ||
| ) | ||
| } | ||
This file contains hidden or 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,80 @@ | ||
| resource "azurerm_application_gateway" "main" { | ||
| name = var.settings.name | ||
| location = local.location | ||
| resource_group_name = local.resource_group_name | ||
| tags = local.tags | ||
|
|
||
| sku { | ||
| name = var.settings.sku.name | ||
| tier = var.settings.sku.tier | ||
| capacity = var.settings.sku.capacity | ||
| } | ||
|
|
||
| gateway_ip_configuration { | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. need one or more |
||
| name = var.settings.gateway_ip_configuration.name | ||
| subnet_id = local.subnet.id | ||
| } | ||
|
|
||
| frontend_ip_configuration { | ||
|
KirilKirilov966 marked this conversation as resolved.
Outdated
|
||
| name = var.settings.frontend_ip_configuration.name | ||
| public_ip_address_id = local.public_ip.id | ||
| } | ||
|
|
||
| dynamic "frontend_port" { | ||
| for_each = try(var.settings.frontend_ports, []) | ||
| content { | ||
| name = frontend_port.value.name | ||
| port = frontend_port.value.port | ||
| } | ||
| } | ||
|
|
||
| dynamic "backend_address_pool" { | ||
| for_each = try(var.settings.backend_address_pools, []) | ||
| content { | ||
| name = backend_address_pool.value.name | ||
| ip_addresses = try(backend_address_pool.value.ip_addresses, []) | ||
| } | ||
| } | ||
|
|
||
| dynamic "backend_http_settings" { | ||
| for_each = try(var.settings.backend_http_settings_list, []) | ||
| content { | ||
| name = backend_http_settings.value.name | ||
| port = backend_http_settings.value.port | ||
| protocol = backend_http_settings.value.protocol | ||
| cookie_based_affinity = try(backend_http_settings.value.cookie_based_affinity, "Disabled") | ||
| request_timeout = try(backend_http_settings.value.request_timeout, 20) | ||
| } | ||
| } | ||
|
|
||
| dynamic "http_listener" { | ||
| for_each = try(var.settings.http_listeners, []) | ||
| content { | ||
| name = http_listener.value.name | ||
| frontend_ip_configuration_name = http_listener.value.frontend_ip_configuration_name | ||
| frontend_port_name = http_listener.value.frontend_port_name | ||
| protocol = http_listener.value.protocol | ||
| host_name = try(http_listener.value.host_name, null) | ||
| } | ||
| } | ||
|
|
||
| dynamic "request_routing_rule" { | ||
| for_each = try(var.settings.request_routing_rules, []) | ||
| content { | ||
| name = request_routing_rule.value.name | ||
| rule_type = request_routing_rule.value.rule_type | ||
| http_listener_name = request_routing_rule.value.http_listener_name | ||
| backend_address_pool_name = request_routing_rule.value.backend_address_pool_name | ||
| backend_http_settings_name = request_routing_rule.value.backend_http_settings_name | ||
| } | ||
| } | ||
|
|
||
| dynamic "timeouts" { | ||
| for_each = can(var.settings.timeouts) ? [1] : [] | ||
| content { | ||
| create = try(var.settings.timeouts.create, null) | ||
| update = try(var.settings.timeouts.update, null) | ||
| delete = try(var.settings.timeouts.delete, null) | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or 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,7 @@ | ||
| output "name" { | ||
| value = azurerm_application_gateway.main.name | ||
| } | ||
|
|
||
| output "id" { | ||
| value = azurerm_application_gateway.main.id | ||
| } |
This file contains hidden or 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,19 @@ | ||
| variable "settings" { | ||
| type = any | ||
| } | ||
|
|
||
| variable "resources" { | ||
| type = any | ||
| description = "Resources provided by other modules" | ||
| default = {} | ||
| } | ||
|
|
||
| variable "global_settings" { | ||
| type = any | ||
| description = "Global settings shared across modules" | ||
| } | ||
|
|
||
| variable "client_config" { | ||
| type = any | ||
| description = "Client config object (landingzone key, etc.)" | ||
| } |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.