Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

Commit

Permalink
New function: single-node-asg module supports binding EIP by itself.
Browse files Browse the repository at this point in the history
Since it is single node, binding an EIP to the instance is possible. And
it eases other things since the public interface is constant.

Add assign_eip variable to single-node-asg. If turns it on, an EIP will
be allocated, and assocated with the instance.
  • Loading branch information
Magicloud committed Apr 16, 2020
1 parent b4f59be commit 4b27c5e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions modules/single-node-asg/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ module "server" {
elb_names = var.load_balancers
key_name = var.key_name
# The IAM Instance Profile w/ attach_ebs role
iam_profile = module.instance_profile.iam_profile_id
instance_type = var.instance_type
iam_profile = module.instance_profile.iam_profile_id
instance_type = var.instance_type
# 1 EC2 instance <> 1 EBS volume
max_nodes = 1
min_nodes = 1
placement_group = var.placement_group
public_ip = var.public_ip
max_nodes = 1
min_nodes = 1
placement_group = var.placement_group
public_ip = var.public_ip
# the prefix and suffix names are combined in
# the `asg` module to create the full name
name_prefix = var.name_prefix
Expand Down

0 comments on commit 4b27c5e

Please sign in to comment.