Skip to content

Commit cc2eccb

Browse files
author
Sean Sundberg
authored
Removes inbound ping from default security group (#33)
Addresses #22 Signed-off-by: Sean Sundberg <[email protected]>
1 parent f1bdca4 commit cc2eccb

File tree

3 files changed

+7
-18
lines changed

3 files changed

+7
-18
lines changed

main.tf

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,17 +60,6 @@ resource null_resource post_vpc_address_pfx_default {
6060
}
6161
}
6262

63-
resource ibm_is_security_group_rule rule_icmp_ping {
64-
count = var.provision ? 1 : 0
65-
66-
group = local.security_group_id
67-
direction = "inbound"
68-
remote = "0.0.0.0/0"
69-
icmp {
70-
type = 8
71-
}
72-
}
73-
7463
# from https://cloud.ibm.com/docs/vpc?topic=vpc-service-endpoints-for-vpc
7564
resource ibm_is_security_group_rule "cse_dns_1" {
7665
count = var.provision ? 1 : 0

test/stages/stage2-vpc.tf

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
module "dev_vpc" {
22
source = "./module"
33

4-
resource_group_id = module.resource_group.id
5-
resource_group_name = module.resource_group.name
6-
region = var.region
7-
name_prefix = var.name_prefix
8-
ibmcloud_api_key = var.ibmcloud_api_key
4+
resource_group_id = module.resource_group.id
5+
resource_group_name = module.resource_group.name
6+
region = var.region
7+
name_prefix = var.name_prefix
8+
ibmcloud_api_key = var.ibmcloud_api_key
99
address_prefix_count = var.address_prefix_count
10-
address_prefixes = tolist(setsubtract(split(",", var.address_prefixes), [""]))
10+
address_prefixes = jsondecode(var.address_prefixes)
1111
}

test/stages/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ variable "vpc_subnets" {
5151
}
5252

5353
variable "address_prefixes" {
54-
default = ""
54+
default = "[]"
5555
}
5656

5757
variable "address_prefix_count" {

0 commit comments

Comments
 (0)