Skip to content

Commit eda44a6

Browse files
committed
Merge branch 'main' into deprecate_refs
2 parents 723e6c4 + 2169b85 commit eda44a6

File tree

26 files changed

+145
-379
lines changed

26 files changed

+145
-379
lines changed

README.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,13 @@ Expected network connectivity downtime of typically around 20 seconds.
4444
* [workload-vpc](./modules/workload-vpc)
4545
* [Examples](./examples)
4646
* [Basic Example](./examples/basic)
47-
* [Custom Security Group Example](./examples/custom_security_group)
48-
* [Default Example](./examples/default)
49-
* [Existing VPC and subnets Example](./examples/existing_vpc)
47+
* [Existing networking resources Example](./examples/existing_vpc)
5048
* [Hub and Spoke VPC Example](./examples/hub-spoke-delegated-resolver)
5149
* [Hub and Spoke VPC with manual DNS resolver Example](./examples/hub-spoke-manual-resolver)
5250
* [Landing Zone example](./examples/landing_zone)
53-
* [No Prefix Example](./examples/no-prefix)
5451
* [Specific Zone Only Example](./examples/specific-zone-only)
5552
* [VPC with DNS example](./examples/vpc-with-dns)
53+
* [VPC with Flow Logs stored in COS Example](./examples/vpc-flow-logs)
5654
* [Contributing](#contributing)
5755
<!-- END OVERVIEW HOOK -->
5856

examples/basic/README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ A simple example to provision a Secure Landing Zone (SLZ) Virtual Private Cloud
55
The following resources are provisioned by this example:
66

77
* A new resource group, if an existing one is not passed in.
8-
* An IBM Virtual Private Cloud (VPC) with a publicly exposed subnet.
8+
* An IBM Virtual Private Cloud (VPC) with:
9+
* Publicly exposed subnet.
10+
* Custom security group rules.

examples/basic/main.tf

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
module "resource_group" {
77
source = "terraform-ibm-modules/resource-group/ibm"
8-
version = "1.2.1"
8+
version = "1.4.0"
99
# if an existing resource group is not set (null) create a new one using prefix
1010
resource_group_name = var.resource_group == null ? "${var.prefix}-resource-group" : null
1111
existing_resource_group_name = var.resource_group
@@ -32,4 +32,11 @@ module "slz_vpc" {
3232
}
3333
]
3434
}
35+
security_group_rules = [{
36+
name = "allow-all-inbound-sg"
37+
direction = "inbound"
38+
remote = "0.0.0.0/0" # source of the traffic. 0.0.0.0/0 traffic from all across the internet.
39+
local = "0.0.0.0/0" # A CIDR block of 0.0.0.0/0 allows traffic to all local IP addresses (or from all local IP addresses, for outbound rules).
40+
ip_version = "ipv4"
41+
}]
3542
}

examples/custom_security_group/README.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

examples/custom_security_group/main.tf

Lines changed: 0 additions & 33 deletions
This file was deleted.

examples/custom_security_group/outputs.tf

Lines changed: 0 additions & 13 deletions
This file was deleted.

examples/custom_security_group/variables.tf

Lines changed: 0 additions & 27 deletions
This file was deleted.

examples/custom_security_group/version.tf

Lines changed: 0 additions & 11 deletions
This file was deleted.

examples/default/provider.tf

Lines changed: 0 additions & 4 deletions
This file was deleted.

examples/existing_vpc/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1-
# Existing VPC and subnets Example
1+
# Existing networking resources Example
22

3-
An example of calling the module with an existing VPC and subnets.
3+
This example demonstrate how to configure the module without creating new resources.
4+
5+
It configures existing VPC, existing subnets and an existing Public Gateway.

0 commit comments

Comments
 (0)