File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ locals {
63
63
datadog_lambda_layer_version = lookup (local. runtime_base_layer_version_map , local. runtime_base , " " )
64
64
65
65
datadog_account_id = (data. aws_partition . current . partition == " aws-us-gov" ) ? " 002406178527" : " 464622532012"
66
- datadog_layer_name_base = " arn:${ data . aws_partition . current . partition } :lambda:${ data . aws_region . current . name } :${ local . datadog_account_id } :layer"
66
+ datadog_layer_name_base = " arn:${ data . aws_partition . current . partition } :lambda:${ data . aws_region . current . region } :${ local . datadog_account_id } :layer"
67
67
datadog_layer_suffix = lookup (local. architecture_layer_suffix_map , var. architectures [0 ])
68
68
69
69
environment_variables = {
@@ -174,9 +174,9 @@ resource "aws_lambda_function" "this" {
174
174
# Datadog layers are defined in single element lists
175
175
# This allows for runtimes where a lambda layer is not needed by concatenating an empty list
176
176
layers = concat (
177
- local . layers . extension ,
177
+ var . layers ,
178
178
local. layers . lambda ,
179
- var . layers
179
+ local . layers . extension ,
180
180
)
181
181
182
182
dynamic "logging_config" {
You can’t perform that action at this time.
0 commit comments