@@ -88,12 +88,6 @@ variable "sentry_driver_dsn" {
88
88
default = " "
89
89
}
90
90
91
- variable "arn_format" {
92
- type = string
93
- description = " ARN format could be aws or aws-us-gov. Defaults to non-gov."
94
- default = " aws"
95
- }
96
-
97
91
variable "create_dynamodb_table" {
98
92
type = bool
99
93
description = " Boolean for if a DynamoDB table is to be created for batch locking."
@@ -117,25 +111,18 @@ data "aws_region" "current" {}
117
111
data "aws_partition" "current" {}
118
112
119
113
locals {
120
- account_id = data. aws_caller_identity . current . account_id
121
- aws_region = data. aws_region . current . name
122
- }
123
-
124
- locals {
125
- lambda_image_repo = " ${ local . account_id } .dkr.ecr.${ local . aws_region } .amazonaws.com/geff"
126
- }
114
+ account_id = data. aws_caller_identity . current . account_id
115
+ aws_region = data. aws_region . current . name
116
+ aws_partition = data. aws_partition . current . partition
117
+ aws_dns_suffix = data. aws_partition . current . dns_suffix
127
118
128
- locals {
119
+ lambda_image_repo = " ${ local . account_id } .dkr.ecr. ${ local . aws_region } . ${ local . aws_dns_suffix } /geff "
129
120
lambda_image_repo_version = " ${ local . lambda_image_repo } :${ var . geff_image_version } "
130
- }
121
+ lambda_function_name = " ${ local . geff_prefix } -lambda "
131
122
132
- locals {
133
- inferred_api_gw_invoke_url = " https://${ aws_api_gateway_rest_api . ef_to_lambda . id } .execute-api.${ local . aws_region } .amazonaws.com/"
134
- geff_prefix = " ${ var . prefix } -geff"
135
- }
123
+ geff_prefix = " ${ var . prefix } -geff"
136
124
137
- locals {
138
- lambda_function_name = " ${ local . geff_prefix } -lambda"
139
- api_gw_caller_role_name = " ${ local . geff_prefix } -api-gateway-caller"
140
- api_gw_logger_role_name = " ${ local . geff_prefix } -api-gateway-logger"
125
+ inferred_api_gw_invoke_url = " https://${ aws_api_gateway_rest_api . ef_to_lambda . id } .execute-api.${ local . aws_region } .${ local . aws_dns_suffix } /"
126
+ api_gw_caller_role_name = " ${ local . geff_prefix } -api-gateway-caller"
127
+ api_gw_logger_role_name = " ${ local . geff_prefix } -api-gateway-logger"
141
128
}
0 commit comments