File tree 3 files changed +7
-1
lines changed
aws-ec2-instance-dual-stack-ipv4-ipv6
internal-modules/aws-ec2-instance
3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -39,10 +39,11 @@ module "tailscale_aws_ec2" {
39
39
instance_type = " t4g.micro"
40
40
instance_tags = local. tags
41
41
42
- subnet_id = module. vpc . public_subnets [0 ]
42
+ subnet_id = module. vpc . private_subnets [0 ]
43
43
vpc_security_group_ids = [
44
44
module . vpc . tailscale_security_group_id ,
45
45
]
46
+ ipv6_address_count = 1
46
47
47
48
# Variables for Tailscale resources
48
49
tailscale_hostname = local. name
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ resource "aws_instance" "tailscale_instance" {
42
42
43
43
subnet_id = var. subnet_id
44
44
vpc_security_group_ids = var. vpc_security_group_ids
45
+ ipv6_address_count = var. ipv6_address_count
45
46
source_dest_check = ! module. tailscale_install_scripts . ip_forwarding_required
46
47
47
48
iam_instance_profile = var. instance_profile_name
Original file line number Diff line number Diff line change 4
4
variable "subnet_id" {
5
5
type = string
6
6
}
7
+ variable "ipv6_address_count" {
8
+ type = number
9
+ default = null
10
+ }
7
11
variable "vpc_security_group_ids" {
8
12
type = set (string )
9
13
}
You can’t perform that action at this time.
0 commit comments