Skip to content

Commit 4e69e7c

Browse files
authored
Update PostgreSQL engine and version settings (#44)
* Update PostgreSQL engine and version settings * Refactor variable definitions in variables.tf * Update outputs.tf * Update vpc.tf * Update versions.tf * Update vpc.tf * Update vpc.tf * Update vpc.tf * Update main.tf * Update vpc.tf * Update Terraform required version to 1.5 * Update versions.tf * Update required Terraform version to 1.13.3 * Lower required Terraform version to 1.10.0 * Update required Terraform version constraint
1 parent 8699b23 commit 4e69e7c

File tree

6 files changed

+19
-15
lines changed

6 files changed

+19
-15
lines changed

examples/complete/fixtures.us-east-2.tfvars

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,9 @@ apply_immediately = true
3838
# aws rds describe-db-engine-versions --query "DBEngineVersions[].DBParameterGroupFamily" --engine postgres --region=us-east-1
3939
engine = "postgres"
4040

41-
engine_version = "12.8"
41+
engine_version = "16.10"
4242

43-
db_parameter_group = "postgres12"
43+
db_parameter_group = "postgres16"
4444

4545
# https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/Concepts.DBInstanceClass.html
4646
instance_class = "db.t3.small"

examples/complete/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ locals {
3333

3434
module "rds_instance" {
3535
source = "cloudposse/rds/aws"
36-
version = "0.38.4"
36+
version = "1.1.2"
3737

3838
database_name = var.database_name
3939
database_user = var.database_user

examples/complete/outputs.tf

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
output "public_subnet_cidrs" {
2-
value = module.subnets.public_subnet_cidrs
2+
value = module.subnets.public_subnet_cidrs
3+
description = "Public subnets cidrs"
34
}
45

56
output "private_subnet_cidrs" {
6-
value = module.subnets.private_subnet_cidrs
7+
value = module.subnets.private_subnet_cidrs
8+
description = "Private subnets cidrs"
79
}
810

911
output "vpc_cidr" {
10-
value = module.vpc.vpc_cidr_block
12+
value = module.vpc.vpc_cidr_block
13+
description = "VPC cidr"
1114
}
1215

1316
output "instance_id" {

examples/complete/variables.tf

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ variable "region" {
44
}
55

66
variable "availability_zones" {
7-
type = list(string)
7+
type = list(string)
8+
description = "AWS availability zones"
89
}
910

1011
variable "database_name" {
@@ -171,4 +172,4 @@ variable "proxy_delete_timeout" {
171172
type = string
172173
default = "60m"
173174
description = "Proxy delete timeout"
174-
}
175+
}

examples/complete/versions.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
terraform {
2-
required_version = ">= 0.13.0"
2+
required_version = ">= 1"
33

44
required_providers {
55
aws = {
66
source = "hashicorp/aws"
77
version = ">= 3.1.15"
88
}
99
}
10-
}
10+
}

examples/complete/vpc.tf

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module "vpc" {
22
source = "cloudposse/vpc/aws"
3-
version = "0.28.1"
3+
version = "3.0.0"
44

5-
cidr_block = "172.16.0.0/16"
5+
ipv4_primary_cidr_block = "172.16.0.0/16"
66

77
context = module.this.context
88
}
99

1010
module "subnets" {
1111
source = "cloudposse/dynamic-subnets/aws"
12-
version = "0.39.8"
12+
version = "2.4.2"
1313

1414
availability_zones = var.availability_zones
1515
vpc_id = module.vpc.vpc_id
16-
igw_id = module.vpc.igw_id
17-
cidr_block = module.vpc.vpc_cidr_block
16+
igw_id = [module.vpc.igw_id]
17+
ipv4_cidr_block = [module.vpc.vpc_cidr_block]
1818
nat_gateway_enabled = false
1919
nat_instance_enabled = false
2020

0 commit comments

Comments
 (0)