This repository was archived by the owner on Jul 11, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ module "service-data" {
5454
5555resource "aws_eip" "eip" {
5656 count = var. assign_eip ? 1 : 0
57+ vpc = true
5758}
5859
5960resource "aws_iam_role_policy_attachment" "associate_eip" {
@@ -85,13 +86,13 @@ module "server" {
8586 elb_names = var. load_balancers
8687 key_name = var. key_name
8788 # The IAM Instance Profile w/ attach_ebs role
88- iam_profile = module. instance_profile . iam_profile_id
89- instance_type = var. instance_type
89+ iam_profile = module. instance_profile . iam_profile_id
90+ instance_type = var. instance_type
9091 # 1 EC2 instance <> 1 EBS volume
91- max_nodes = 1
92- min_nodes = 1
93- placement_group = var. placement_group
94- public_ip = var. public_ip
92+ max_nodes = 1
93+ min_nodes = 1
94+ placement_group = var. placement_group
95+ public_ip = var . assign_eip ? false : var. public_ip
9596 # the prefix and suffix names are combined in
9697 # the `asg` module to create the full name
9798 name_prefix = var. name_prefix
@@ -130,5 +131,3 @@ module "init-attach-ebs" {
130131module "init-install-awscli" {
131132 source = " ../init-snippet-install-awscli"
132133}
133-
134-
You can’t perform that action at this time.
0 commit comments