From 51ededc1e1bf55355204648da0d0430386d79c47 Mon Sep 17 00:00:00 2001
From: Dawid Rogaczewski <20227477+daroga0002@users.noreply.github.com>
Date: Fri, 9 Jun 2023 13:32:07 +0200
Subject: [PATCH] chore: Update examples (#497)
---
examples/complete-mssql/README.md | 2 +-
examples/complete-mssql/main.tf | 2 +-
examples/complete-mysql/README.md | 2 +-
examples/complete-mysql/main.tf | 2 +-
examples/complete-oracle/README.md | 2 +-
examples/complete-oracle/main.tf | 2 +-
examples/complete-postgres/README.md | 2 +-
examples/complete-postgres/main.tf | 2 +-
examples/cross-region-replica-postgres/README.md | 4 ++--
examples/cross-region-replica-postgres/main.tf | 4 ++--
examples/enhanced-monitoring/README.md | 2 +-
examples/enhanced-monitoring/main.tf | 2 +-
examples/replica-mysql/README.md | 2 +-
examples/replica-mysql/main.tf | 2 +-
examples/replica-postgres/README.md | 2 +-
examples/replica-postgres/main.tf | 2 +-
examples/s3-import-mysql/README.md | 2 +-
examples/s3-import-mysql/main.tf | 2 +-
18 files changed, 20 insertions(+), 20 deletions(-)
diff --git a/examples/complete-mssql/README.md b/examples/complete-mssql/README.md
index 165c26ac..a134c097 100644
--- a/examples/complete-mssql/README.md
+++ b/examples/complete-mssql/README.md
@@ -36,7 +36,7 @@ Note that this example may create resources which cost money. Run `terraform des
| [db\_automated\_backups\_replication](#module\_db\_automated\_backups\_replication) | ../../modules/db_instance_automated_backups_replication | n/a |
| [db\_disabled](#module\_db\_disabled) | ../../ | n/a |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/complete-mssql/main.tf b/examples/complete-mssql/main.tf
index dd3fc10e..662c85af 100644
--- a/examples/complete-mssql/main.tf
+++ b/examples/complete-mssql/main.tf
@@ -160,7 +160,7 @@ resource "aws_directory_service_directory" "demo" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr
diff --git a/examples/complete-mysql/README.md b/examples/complete-mysql/README.md
index 69f5f433..dd0f1a8c 100644
--- a/examples/complete-mysql/README.md
+++ b/examples/complete-mysql/README.md
@@ -36,7 +36,7 @@ Note that this example may create resources which cost money. Run `terraform des
| [db\_default](#module\_db\_default) | ../../ | n/a |
| [db\_disabled](#module\_db\_disabled) | ../../ | n/a |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/complete-mysql/main.tf b/examples/complete-mysql/main.tf
index ae034b02..cfa086e0 100644
--- a/examples/complete-mysql/main.tf
+++ b/examples/complete-mysql/main.tf
@@ -135,7 +135,7 @@ module "db_disabled" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr
diff --git a/examples/complete-oracle/README.md b/examples/complete-oracle/README.md
index 67c891cc..f695a9f3 100644
--- a/examples/complete-oracle/README.md
+++ b/examples/complete-oracle/README.md
@@ -37,7 +37,7 @@ Note that this example may create resources which cost money. Run `terraform des
| [db\_disabled](#module\_db\_disabled) | ../../ | n/a |
| [kms](#module\_kms) | terraform-aws-modules/kms/aws | ~> 1.0 |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/complete-oracle/main.tf b/examples/complete-oracle/main.tf
index 4938210c..61176444 100644
--- a/examples/complete-oracle/main.tf
+++ b/examples/complete-oracle/main.tf
@@ -123,7 +123,7 @@ module "db_automated_backups_replication" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr
diff --git a/examples/complete-postgres/README.md b/examples/complete-postgres/README.md
index 0f8862b1..0d15b045 100644
--- a/examples/complete-postgres/README.md
+++ b/examples/complete-postgres/README.md
@@ -38,7 +38,7 @@ Note that this example may create resources which cost money. Run `terraform des
| [db\_disabled](#module\_db\_disabled) | ../../ | n/a |
| [kms](#module\_kms) | terraform-aws-modules/kms/aws | ~> 1.0 |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/complete-postgres/main.tf b/examples/complete-postgres/main.tf
index 7a844901..282613b5 100644
--- a/examples/complete-postgres/main.tf
+++ b/examples/complete-postgres/main.tf
@@ -176,7 +176,7 @@ module "db_automated_backups_replication" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr
diff --git a/examples/cross-region-replica-postgres/README.md b/examples/cross-region-replica-postgres/README.md
index f6d85426..788ca770 100644
--- a/examples/cross-region-replica-postgres/README.md
+++ b/examples/cross-region-replica-postgres/README.md
@@ -37,8 +37,8 @@ Note that this example may create resources which cost money. Run `terraform des
| [replica](#module\_replica) | ../../ | n/a |
| [security\_group\_region1](#module\_security\_group\_region1) | terraform-aws-modules/security-group/aws | ~> 4.0 |
| [security\_group\_region2](#module\_security\_group\_region2) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc\_region1](#module\_vpc\_region1) | terraform-aws-modules/vpc/aws | ~> 3.0 |
-| [vpc\_region2](#module\_vpc\_region2) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc\_region1](#module\_vpc\_region1) | terraform-aws-modules/vpc/aws | ~> 4.0 |
+| [vpc\_region2](#module\_vpc\_region2) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/cross-region-replica-postgres/main.tf b/examples/cross-region-replica-postgres/main.tf
index 3707b9c1..fb1eeb69 100644
--- a/examples/cross-region-replica-postgres/main.tf
+++ b/examples/cross-region-replica-postgres/main.tf
@@ -141,7 +141,7 @@ module "replica" {
module "vpc_region1" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = "10.100.0.0/18"
@@ -180,7 +180,7 @@ module "security_group_region1" {
module "vpc_region2" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
providers = {
aws = aws.region2
diff --git a/examples/enhanced-monitoring/README.md b/examples/enhanced-monitoring/README.md
index 3e689b68..75255efc 100644
--- a/examples/enhanced-monitoring/README.md
+++ b/examples/enhanced-monitoring/README.md
@@ -36,7 +36,7 @@ Note that this example may create resources which cost money. Run `terraform des
|------|--------|---------|
| [db](#module\_db) | ../../ | n/a |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/enhanced-monitoring/main.tf b/examples/enhanced-monitoring/main.tf
index 6bfe74d2..38f7b30e 100644
--- a/examples/enhanced-monitoring/main.tf
+++ b/examples/enhanced-monitoring/main.tf
@@ -99,7 +99,7 @@ data "aws_iam_policy_document" "rds_enhanced_monitoring" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr
diff --git a/examples/replica-mysql/README.md b/examples/replica-mysql/README.md
index 1ec879ac..84560f17 100644
--- a/examples/replica-mysql/README.md
+++ b/examples/replica-mysql/README.md
@@ -35,7 +35,7 @@ Note that this example may create resources which cost money. Run `terraform des
| [master](#module\_master) | ../../ | n/a |
| [replica](#module\_replica) | ../../ | n/a |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/replica-mysql/main.tf b/examples/replica-mysql/main.tf
index f73ba9ea..7c609b56 100644
--- a/examples/replica-mysql/main.tf
+++ b/examples/replica-mysql/main.tf
@@ -109,7 +109,7 @@ module "replica" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr
diff --git a/examples/replica-postgres/README.md b/examples/replica-postgres/README.md
index 1830fa49..d1f5feef 100644
--- a/examples/replica-postgres/README.md
+++ b/examples/replica-postgres/README.md
@@ -35,7 +35,7 @@ Note that this example may create resources which cost money. Run `terraform des
| [master](#module\_master) | ../../ | n/a |
| [replica](#module\_replica) | ../../ | n/a |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/replica-postgres/main.tf b/examples/replica-postgres/main.tf
index 5862307c..fcd55302 100644
--- a/examples/replica-postgres/main.tf
+++ b/examples/replica-postgres/main.tf
@@ -111,7 +111,7 @@ module "replica" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr
diff --git a/examples/s3-import-mysql/README.md b/examples/s3-import-mysql/README.md
index 871a789e..73ba2db7 100644
--- a/examples/s3-import-mysql/README.md
+++ b/examples/s3-import-mysql/README.md
@@ -66,7 +66,7 @@ Note that this example may create resources which cost money. Run `terraform des
| [db](#module\_db) | ../../ | n/a |
| [import\_s3\_bucket](#module\_import\_s3\_bucket) | terraform-aws-modules/s3-bucket/aws | ~> 3.0 |
| [security\_group](#module\_security\_group) | terraform-aws-modules/security-group/aws | ~> 4.0 |
-| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 3.0 |
+| [vpc](#module\_vpc) | terraform-aws-modules/vpc/aws | ~> 4.0 |
## Resources
diff --git a/examples/s3-import-mysql/main.tf b/examples/s3-import-mysql/main.tf
index cbf428fe..78d1d17b 100644
--- a/examples/s3-import-mysql/main.tf
+++ b/examples/s3-import-mysql/main.tf
@@ -73,7 +73,7 @@ resource "random_pet" "this" {
module "vpc" {
source = "terraform-aws-modules/vpc/aws"
- version = "~> 3.0"
+ version = "~> 4.0"
name = local.name
cidr = local.vpc_cidr