Skip to content

Commit

Permalink
Upgraded the module version (#6)
Browse files Browse the repository at this point in the history
an updated version of VPC and an updated source in the example file
  • Loading branch information
RohitSquareops authored May 30, 2023
1 parent cc72f4e commit b1bcd33
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 16 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ In this module, we have implemented the following CIS Compliance checks for VPC:

| Name | Source | Version |
|------|--------|---------|
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 3.14.4 |
| <a name="module_vpc"></a> [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | 4.0.2 |
| <a name="module_vpn_server"></a> [vpn\_server](#module\_vpn\_server) | ./modules/vpn | n/a |

## Resources
Expand Down
4 changes: 2 additions & 2 deletions examples/complete-vpc-with-vpn/main.tf
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
locals {
name = "skaf"
name = "vpc"
region = "us-east-1"
environment = "prod"
additional_aws_tags = {
Owner = "SquareOps"
Owner = "Organization_Name"
Expires = "Never"
Department = "Engineering"
}
Expand Down
8 changes: 2 additions & 6 deletions examples/simple-vpc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,7 @@ No requirements.

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
No providers.

## Modules

Expand All @@ -37,9 +35,7 @@ No requirements.

## Resources

| Name | Type |
|------|------|
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source |
No resources.

## Inputs

Expand Down
8 changes: 2 additions & 6 deletions examples/vpc-with-private-subnet/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@ No requirements.

## Providers

| Name | Version |
|------|---------|
| <a name="provider_aws"></a> [aws](#provider\_aws) | n/a |
No providers.

## Modules

Expand All @@ -35,9 +33,7 @@ No requirements.

## Resources

| Name | Type |
|------|------|
| [aws_availability_zones.available](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/availability_zones) | data source |
No resources.

## Inputs

Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ data "aws_ec2_instance_type" "arch" {

module "vpc" {
source = "terraform-aws-modules/vpc/aws"
version = "3.14.4"
version = "4.0.2"
name = format("%s-%s-vpc", var.environment, var.name)
cidr = var.vpc_cidr # CIDR FOR VPC
azs = [for n in range(0, var.availability_zones) : data.aws_availability_zones.available.names[n]]
Expand Down

0 comments on commit b1bcd33

Please sign in to comment.