Skip to content

Commit f4c16dd

Browse files
committed
bump module versions; fix deprecations
1 parent a529ebb commit f4c16dd

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

environments/template/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ provider "aws" {
44

55
resource "random_string" "namespace" {
66
length = 8
7-
number = false
7+
numeric = false
88
special = false
99
upper = false
1010
}
1111

1212
module "terraform_state_backend" {
13-
source = "git::https://github.com/cloudposse/terraform-aws-tfstate-backend.git?ref=tags/0.37.0"
13+
source = "git::https://github.com/cloudposse/terraform-aws-tfstate-backend.git?ref=tags/1.4.1"
1414
environment = var.environment
1515
name = var.name
1616
namespace = random_string.namespace.result

environments/template/variables.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ variable "db_maintenance_window" {
7070
}
7171

7272
variable "deletion_protection" {
73-
description = "Protect supporting resources from being deleted (ALB and RDS)"
73+
description = "Protect supporting resources from being deleted (ALB, ECR, RDS)"
7474
type = bool
7575
default = false
7676
}

modules/keycloak/main.tf

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ resource "random_password" "keycloak_password" {
2626
resource "aws_ssm_parameter" "db_password" {
2727
name = "/${var.name}/${var.environment}/DB_PASSWORD"
2828
description = "RDS password for ${module.label.id}"
29-
overwrite = true
3029
tags = module.label.tags
3130
type = "SecureString"
3231
value = random_password.db_password.result
@@ -35,7 +34,6 @@ resource "aws_ssm_parameter" "db_password" {
3534
resource "aws_ssm_parameter" "keycloak_password" {
3635
name = "/${var.name}/${var.environment}/KEYCLOAK_PASSWORD"
3736
description = "keycloak_admin password for ${module.label.id}"
38-
overwrite = true
3937
tags = module.label.tags
4038
type = "SecureString"
4139
value = random_password.keycloak_password.result
@@ -46,7 +44,7 @@ resource "aws_ssm_parameter" "keycloak_password" {
4644
######################################################################
4745

4846
module "alb" {
49-
source = "git::https://github.com/cloudposse/terraform-aws-alb.git?ref=tags/0.33.1"
47+
source = "git::https://github.com/cloudposse/terraform-aws-alb.git?ref=tags/1.11.1"
5048
alb_access_logs_s3_bucket_force_destroy = var.alb_destroy_log_bucket
5149
attributes = ["alb"]
5250
certificate_arn = var.alb_certificate_arn
@@ -103,8 +101,9 @@ resource "aws_ecs_cluster" "keycloak" {
103101
}
104102

105103
module "ecr" {
106-
source = "git::https://github.com/cloudposse/terraform-aws-ecr.git?ref=tags/0.32.3"
104+
source = "git::https://github.com/cloudposse/terraform-aws-ecr.git?ref=tags/0.41.0"
107105
encryption_configuration = var.encryption_configuration
106+
force_delete = var.deletion_protection ? false : true
108107
image_tag_mutability = "MUTABLE"
109108
max_image_count = 3
110109
name = "${var.name}-${var.environment}"
@@ -208,7 +207,7 @@ resource "aws_security_group" "vpc_endpoints" {
208207
data "aws_caller_identity" "current" {}
209208

210209
module "ecs" {
211-
source = "git::https://github.com/cloudposse/terraform-aws-ecs-alb-service-task.git?ref=tags/0.60.0"
210+
source = "git::https://github.com/cloudposse/terraform-aws-ecs-alb-service-task.git?ref=tags/0.74.0"
212211
container_definition_json = templatefile("${path.module}/templates/container_definition.json", {
213212
aws_account_id = data.aws_caller_identity.current.account_id
214213
container_cpu_units = var.container_cpu_units
@@ -267,7 +266,7 @@ resource "aws_security_group_rule" "jdbc_ping" {
267266
######################################################################
268267

269268
module "rds_cluster" {
270-
source = "git::https://github.com/cloudposse/terraform-aws-rds-cluster.git?ref=tags/0.49.2"
269+
source = "git::https://github.com/cloudposse/terraform-aws-rds-cluster.git?ref=tags/1.9.0"
271270
admin_password = random_password.db_password.result
272271
admin_user = "keycloak"
273272
allowed_cidr_blocks = var.db_allowed_cidr_blocks

modules/network/main.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ resource "aws_nat_gateway" "main" {
3434

3535
resource "aws_eip" "nat" {
3636
count = 2
37-
vpc = true
37+
domain = "vpc"
3838
depends_on = [aws_internet_gateway.main]
3939
tags = var.tags
4040
}

0 commit comments

Comments
 (0)