Skip to content

Commit da05c40

Browse files
committed
Merge branch 'master' of github.com:bryantbiggs/terraform-aws-apigateway-v2 into chore/updates-for-websocket-support
2 parents f5b064a + 5871093 commit da05c40

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

CHANGELOG.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ All notable changes to this project will be documented in this file.
77

88

99

10+
<a name="v1.4.0"></a>
11+
## [v1.4.0] - 2021-09-23
12+
13+
- Feat: Add create_before_destroy lifecycle to integration resources ([#55](https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/issues/55))
14+
15+
16+
<a name="v1.3.0"></a>
17+
## [v1.3.0] - 2021-09-16
18+
19+
- fix: Fixed output when create_api_domain_name is false ([#44](https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/issues/44))
20+
- chore: Fixed GH Action with terraform-docs
21+
22+
1023
<a name="v1.2.0"></a>
1124
## [v1.2.0] - 2021-08-26
1225

@@ -131,7 +144,9 @@ All notable changes to this project will be documented in this file.
131144
- Adding API Gateway module
132145

133146

134-
[Unreleased]: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/compare/v1.2.0...HEAD
147+
[Unreleased]: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/compare/v1.4.0...HEAD
148+
[v1.4.0]: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/compare/v1.3.0...v1.4.0
149+
[v1.3.0]: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/compare/v1.2.0...v1.3.0
135150
[v1.2.0]: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/compare/v1.1.0...v1.2.0
136151
[v1.1.0]: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/compare/v1.0.0...v1.1.0
137152
[v1.0.0]: https://github.com/terraform-aws-modules/terraform-aws-apigateway-v2/compare/v0.16.0...v1.0.0

main.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ resource "aws_apigatewayv2_integration" "this" {
172172
server_name_to_verify = tls_config.value["server_name_to_verify"]
173173
}
174174
}
175+
176+
lifecycle {
177+
create_before_destroy = true
178+
}
175179
}
176180

177181
# VPC Link (Private API)

outputs.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ output "apigatewayv2_domain_name_configuration" {
6767

6868
output "apigatewayv2_domain_name_target_domain_name" {
6969
description = "The target domain name"
70-
value = var.create_api_domain_name ? lookup(tomap(element(element(concat(aws_apigatewayv2_domain_name.this.*.domain_name_configuration, [""]), 0), 0)), "target_domain_name", "") : ""
70+
value = try(aws_apigatewayv2_domain_name.this[0].domain_name_configuration[0].target_domain_name, "")
7171
}
7272

7373
output "apigatewayv2_domain_name_hosted_zone_id" {
7474
description = "The Amazon Route 53 Hosted Zone ID of the endpoint"
75-
value = var.create_api_domain_name ? lookup(tomap(element(element(concat(aws_apigatewayv2_domain_name.this.*.domain_name_configuration, [""]), 0), 0)), "hosted_zone_id", "") : ""
75+
value = try(aws_apigatewayv2_domain_name.this[0].domain_name_configuration[0].hosted_zone_id, "")
7676
}
7777

7878
# api mapping

0 commit comments

Comments
 (0)