@@ -26,7 +26,6 @@ resource "random_password" "keycloak_password" {
2626resource "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" {
3534resource "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
4846module "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
105103module "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" {
208207data "aws_caller_identity" "current" {}
209208
210209module "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
269268module "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
0 commit comments