Closed TLaue closed 1 year ago
Setting the "create_new_role" variable to "false" in the terraform.tfvars file has not effect as it is not passed to the "codepipeline_iam_role" module in the main.tf file.
module "codepipeline_iam_role" { source = "./modules/iam-role" project_name = var.project_name codepipeline_iam_role_name = var.create_new_role == true ? "${var.project_name}-codepipeline-role" : var.codepipeline_iam_role_name source_repository_name = var.source_repo_name kms_key_arn = module.codepipeline_kms.arn s3_bucket_arn = module.s3_artifacts_bucket.arn tags = { Project_Name = var.project_name Environment = var.environment Account_ID = local.account_id Region = local.region } }
Setting the "create_new_role" variable to "false" in the terraform.tfvars file has not effect as it is not passed to the "codepipeline_iam_role" module in the main.tf file.