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
locals { | |
nested_loop = { for entry in flatten(values({ | |
for k, v in var.hub_networks : | |
k => [ | |
for key, val in var.firewalls : | |
merge(val, v, { "key" : "default-deny-${lower(val.direction)}-${v.network}" }) | |
] | |
})) : entry.key => entry } | |
} |
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
def filterJSON(map){ | |
map.each { key, value -> | |
if (value.toString() == "null"){ | |
map[key] = null | |
} else if (value instanceof List){ | |
map.eachWithIndex { item, index -> | |
if (item.toString() == "null"){ | |
map[index] = null | |
} |
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
variable "apigw_map" { | |
description = "Map for APIGW Resources and Methods" | |
default = { | |
categories = { | |
GET = { | |
authorization = "NONE" | |
authorizer_id = "" | |
key_req = true | |
target_path = "categories" | |
} |
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
stage('asdf'){ | |
env.NO_PROXY = env.NO_PROXY + ',' + InetAddress.getByName("kubernetes.default.svc.cluster.local").hostAddress | |
} |
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
post { | |
always { | |
archiveArtifacts allowEmptyArchive: true, | |
artifacts: "**/*.log", | |
fingerprint: true, | |
onlyIfSuccessful: false | |
step([$class: 'WsCleanup']) | |
} | |
} |
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
.:53 { | |
forward . 169.254.169.254 | |
log | |
} |