This repository was archived by the owner on Jul 11, 2023. It is now read-only.
File tree 1 file changed +7
-8
lines changed
1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -54,6 +54,7 @@ module "service-data" {
54
54
55
55
resource "aws_eip" "eip" {
56
56
count = var. assign_eip ? 1 : 0
57
+ vpc = true
57
58
}
58
59
59
60
resource "aws_iam_role_policy_attachment" "associate_eip" {
@@ -85,13 +86,13 @@ module "server" {
85
86
elb_names = var. load_balancers
86
87
key_name = var. key_name
87
88
# 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
90
91
# 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
95
96
# the prefix and suffix names are combined in
96
97
# the `asg` module to create the full name
97
98
name_prefix = var. name_prefix
@@ -130,5 +131,3 @@ module "init-attach-ebs" {
130
131
module "init-install-awscli" {
131
132
source = " ../init-snippet-install-awscli"
132
133
}
133
-
134
-
You can’t perform that action at this time.
0 commit comments