Skip to content

Commit a1f6c78

Browse files
authored
fix: aws provider v5 compatibility (#41)
1 parent 1b2ea25 commit a1f6c78

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ locals {
6363
datadog_lambda_layer_version = lookup(local.runtime_base_layer_version_map, local.runtime_base, "")
6464

6565
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.region}:${local.datadog_account_id}:layer"
66+
datadog_layer_name_base = "arn:${data.aws_partition.current.partition}:lambda:${data.aws_region.current.name}:${local.datadog_account_id}:layer"
6767
datadog_layer_suffix = lookup(local.architecture_layer_suffix_map, var.architectures[0])
6868

6969
environment_variables = {

0 commit comments

Comments
 (0)