File tree 4 files changed +13
-2
lines changed
4 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ Note that this example may create resources which cost money. Run `terraform des
40
40
| Name | Source | Version |
41
41
| ------| --------| ---------|
42
42
| <a name =" module_acm " ></a > [ acm] ( #module\_ acm ) | terraform-aws-modules/acm/aws | ~ > 3.0 |
43
- | <a name =" module_api_gateway " ></a > [ api\_ gateway] ( #module\_ api\_ gateway ) | ../../ | |
43
+ | <a name =" module_api_gateway " ></a > [ api\_ gateway] ( #module\_ api\_ gateway ) | ../../ | n/a |
44
44
| <a name =" module_lambda_function " ></a > [ lambda\_ function] ( #module\_ lambda\_ function ) | terraform-aws-modules/lambda/aws | ~ > 2.0 |
45
45
| <a name =" module_step_function " ></a > [ step\_ function] ( #module\_ step\_ function ) | terraform-aws-modules/step-functions/aws | ~ > 2.0 |
46
46
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ module "api_gateway" {
51
51
}
52
52
53
53
integrations = {
54
+
54
55
" ANY /" = {
55
56
lambda_arn = module.lambda_function.lambda_function_arn
56
57
payload_format_version = " 2.0"
@@ -80,6 +81,9 @@ module "api_gateway" {
80
81
81
82
" $default" = {
82
83
lambda_arn = module.lambda_function.lambda_function_arn
84
+ tls_config = jsonencode ({
85
+ server_name_to_verify = local.domain_name
86
+ })
83
87
}
84
88
85
89
}
Original file line number Diff line number Diff line change @@ -38,7 +38,7 @@ Note that this example may create resources which cost money. Run `terraform des
38
38
| ------| --------| ---------|
39
39
| <a name =" module_alb " ></a > [ alb] ( #module\_ alb ) | terraform-aws-modules/alb/aws | ~ > 6.0 |
40
40
| <a name =" module_alb_security_group " ></a > [ alb\_ security\_ group] ( #module\_ alb\_ security\_ group ) | terraform-aws-modules/security-group/aws | ~ > 4.0 |
41
- | <a name =" module_api_gateway " ></a > [ api\_ gateway] ( #module\_ api\_ gateway ) | ../../ | |
41
+ | <a name =" module_api_gateway " ></a > [ api\_ gateway] ( #module\_ api\_ gateway ) | ../../ | n/a |
42
42
| <a name =" module_api_gateway_security_group " ></a > [ api\_ gateway\_ security\_ group] ( #module\_ api\_ gateway\_ security\_ group ) | terraform-aws-modules/security-group/aws | ~ > 4.0 |
43
43
| <a name =" module_lambda_function " ></a > [ lambda\_ function] ( #module\_ lambda\_ function ) | terraform-aws-modules/lambda/aws | ~ > 2.0 |
44
44
| <a name =" module_lambda_security_group " ></a > [ lambda\_ security\_ group] ( #module\_ lambda\_ security\_ group ) | terraform-aws-modules/security-group/aws | ~ > 4.0 |
Original file line number Diff line number Diff line change @@ -154,6 +154,13 @@ resource "aws_apigatewayv2_integration" "this" {
154
154
content_handling_strategy = lookup (each. value , " content_handling_strategy" , null )
155
155
credentials_arn = lookup (each. value , " credentials_arn" , null )
156
156
request_parameters = try (jsondecode (each. value [" request_parameters" ]), each. value [" request_parameters" ], null )
157
+
158
+ dynamic "tls_config" {
159
+ for_each = flatten ([try (jsondecode (each. value [" tls_config" ]), each. value [" tls_config" ], [])])
160
+ content {
161
+ server_name_to_verify = tls_config. value [" server_name_to_verify" ]
162
+ }
163
+ }
157
164
}
158
165
159
166
# VPC Link (Private API)
You can’t perform that action at this time.
0 commit comments