Skip to content

Commit 11f3d70

Browse files
committed
update aws-ec2-autoscaling example for updated asg internal module
1 parent 43e9d49 commit 11f3d70

File tree

1 file changed

+2
-14
lines changed
  • terraform/aws/aws-ec2-autoscaling

1 file changed

+2
-14
lines changed

terraform/aws/aws-ec2-autoscaling/main.tf

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -45,27 +45,15 @@ resource "tailscale_tailnet_key" "main" {
4545
tags = local.tailscale_acl_tags
4646
}
4747

48-
resource "aws_network_interface" "primary" {
49-
subnet_id = local.subnet_id
50-
security_groups = local.security_group_ids
51-
tags = local.aws_tags
52-
}
53-
resource "aws_eip" "primary" {
54-
tags = local.aws_tags
55-
}
56-
resource "aws_eip_association" "primary" {
57-
network_interface_id = aws_network_interface.primary.id
58-
allocation_id = aws_eip.primary.id
59-
}
60-
6148
module "tailscale_aws_ec2_autoscaling" {
6249
source = "../internal-modules/aws-ec2-autoscaling/"
6350

6451
autoscaling_group_name = local.name
6552
instance_type = local.instance_type
6653
instance_tags = local.aws_tags
6754

68-
network_interfaces = [aws_network_interface.primary.id]
55+
subnet_id = local.subnet_id
56+
security_group_ids = local.security_group_ids
6957

7058
# Variables for Tailscale resources
7159
tailscale_auth_key = tailscale_tailnet_key.main.key

0 commit comments

Comments
 (0)