File tree 4 files changed +12
-11
lines changed
4 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -105,13 +105,13 @@ Available targets:
105
105
| Name | Version |
106
106
| ------| ---------|
107
107
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.3.0 |
108
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 2 .0 |
108
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.53 .0 |
109
109
110
110
## Providers
111
111
112
112
| Name | Version |
113
113
| ------| ---------|
114
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 2 .0 |
114
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.53 .0 |
115
115
116
116
## Modules
117
117
Original file line number Diff line number Diff line change 4
4
| Name | Version |
5
5
| ------| ---------|
6
6
| <a name =" requirement_terraform " ></a > [ terraform] ( #requirement\_ terraform ) | >= 1.3.0 |
7
- | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 2 .0 |
7
+ | <a name =" requirement_aws " ></a > [ aws] ( #requirement\_ aws ) | >= 5.53 .0 |
8
8
9
9
## Providers
10
10
11
11
| Name | Version |
12
12
| ------| ---------|
13
- | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 2 .0 |
13
+ | <a name =" provider_aws " ></a > [ aws] ( #provider\_ aws ) | >= 5.53 .0 |
14
14
15
15
## Modules
16
16
Original file line number Diff line number Diff line change @@ -20,12 +20,13 @@ resource "aws_vpn_gateway" "default" {
20
20
21
21
# https://www.terraform.io/docs/providers/aws/r/customer_gateway.html
22
22
resource "aws_customer_gateway" "default" {
23
- count = local. enabled && var. customer_gateway_ip_address != null ? 1 : 0
24
- device_name = module. this . id
25
- bgp_asn = var. customer_gateway_bgp_asn
26
- ip_address = var. customer_gateway_ip_address
27
- type = " ipsec.1"
28
- tags = module. this . tags
23
+ count = local. enabled && var. customer_gateway_ip_address != null ? 1 : 0
24
+ device_name = module. this . id
25
+ bgp_asn = var. customer_gateway_bgp_asn <= 2147483647 ? var. customer_gateway_bgp_asn : null
26
+ bgp_asn_extended = var. customer_gateway_bgp_asn > 2147483647 ? var. customer_gateway_bgp_asn : null
27
+ ip_address = var. customer_gateway_ip_address
28
+ type = " ipsec.1"
29
+ tags = module. this . tags
29
30
30
31
lifecycle {
31
32
create_before_destroy = true
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ terraform {
4
4
required_providers {
5
5
aws = {
6
6
source = " hashicorp/aws"
7
- version = " >= 2 .0"
7
+ version = " >= 5.53 .0"
8
8
}
9
9
}
10
10
}
You can’t perform that action at this time.
0 commit comments