Skip to content

Commit

Permalink
change metadata enable_aws booleans
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos Santana <[email protected]>
  • Loading branch information
csantanapr committed Aug 2, 2023
1 parent 3425903 commit f9bd1ef
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -169,88 +169,88 @@ output "gitops_metadata" {
metadata_aws_region = local.region
metadata_aws_account_id = local.account_id

aws_enable_cert_manager = var.enable_cert_manager ? true : null
enable_aws_cert_manager = var.enable_cert_manager ? true : null
metadata_aws_cert_manager_iam_role_arn = var.enable_cert_manager ? module.cert_manager.iam_role_arn : null
metadata_aws_cert_manager_namespace = var.enable_cert_manager ? local.cert_manager_namespace : null
metadata_aws_cert_manager_service_account = var.enable_cert_manager ? local.cert_manager_service_account : null

aws_enable_cluster_autoscaler = var.enable_cluster_autoscaler ? true : null
enable_aws_cluster_autoscaler = var.enable_cluster_autoscaler ? true : null
metadata_aws_cluster_autoscaler_iam_role_arn = var.enable_cluster_autoscaler ? module.cluster_autoscaler.iam_role_arn : null
metadata_aws_cluster_autoscaler_namespace = var.enable_cluster_autoscaler ? local.cluster_autoscaler_namespace : null
metadata_aws_cluster_autoscaler_service_account = var.enable_cluster_autoscaler ? local.cluster_autoscaler_service_account : null
metadata_aws_cluster_autoscaler_image_tag = var.enable_cluster_autoscaler ? local.cluster_autoscaler_image_tag_selected : null

aws_enable_aws_cloudwatch_metrics = var.enable_aws_cloudwatch_metrics ? true : null
enable_aws_cloudwatch_metrics = var.enable_aws_cloudwatch_metrics ? true : null
metadata_aws_cloudwatch_metrics_iam_role_arn = var.enable_aws_cloudwatch_metrics ? module.aws_cloudwatch_metrics.iam_role_arn : null
metadata_aws_cloudwatch_metrics_namespace = var.enable_aws_cloudwatch_metrics ? local.aws_cloudwatch_metrics_namespace : null
metadata_aws_cloudwatch_metrics_service_account = var.enable_aws_cloudwatch_metrics ? local.aws_cloudwatch_metrics_service_account : null

aws_enable_aws_efs_csi_driver = var.enable_aws_efs_csi_driver ? true : null
enable_aws_efs_csi_driver = var.enable_aws_efs_csi_driver ? true : null
metadata_aws_efs_csi_driver_iam_role_arn = var.enable_aws_efs_csi_driver ? module.aws_efs_csi_driver.iam_role_arn : null
metadata_aws_efs_csi_driver_namespace = var.enable_aws_efs_csi_driver ? local.aws_efs_csi_driver_namespace : null
metadata_aws_efs_csi_driver_controller_service_account = var.enable_aws_efs_csi_driver ? local.aws_efs_csi_driver_controller_service_account : null
metadata_aws_efs_csi_driver_node_service_account = var.enable_aws_efs_csi_driver ? local.aws_efs_csi_driver_node_service_account : null

aws_enable_aws_fsx_csi_driver = var.enable_aws_fsx_csi_driver ? true : null
enable_aws_fsx_csi_driver = var.enable_aws_fsx_csi_driver ? true : null
metadata_aws_fsx_csi_driver_iam_role_arn = var.enable_aws_fsx_csi_driver ? module.aws_fsx_csi_driver.iam_role_arn : null
metadata_aws_fsx_csi_driver_namespace = var.enable_aws_fsx_csi_driver ? local.aws_fsx_csi_driver_namespace : null
metadata_aws_fsx_csi_driver_controller_service_account = var.enable_aws_fsx_csi_driver ? local.aws_fsx_csi_driver_controller_service_account : null
metadata_aws_fsx_csi_driver_node_service_account = var.enable_aws_fsx_csi_driver ? local.aws_fsx_csi_driver_node_service_account : null

aws_enable_aws_privateca_issuer = var.enable_aws_privateca_issuer ? true : null
enable_aws_privateca_issuer = var.enable_aws_privateca_issuer ? true : null
metadata_aws_privateca_issuer_iam_role_arn = var.enable_aws_privateca_issuer ? module.aws_privateca_issuer.iam_role_arn : null
metadata_aws_privateca_issuer_namespace = var.enable_aws_privateca_issuer ? local.aws_privateca_issuer_namespace : null
metadata_aws_privateca_issuer_service_account = var.enable_aws_privateca_issuer ? local.aws_privateca_issuer_service_account : null

aws_enable_external_dns = var.enable_external_dns ? true : null
enable_aws_external_dns = var.enable_external_dns ? true : null
metadata_aws_external_dns_iam_role_arn = var.enable_external_dns ? module.external_dns.iam_role_arn : null
metadata_aws_external_dns_namespace = var.enable_external_dns ? local.external_dns_namespace : null
metadata_aws_external_dns_service_account = var.enable_external_dns ? local.external_dns_service_account : null

aws_enable_external_secrets = var.enable_external_secrets ? true : null
enable_aws_external_secrets = var.enable_external_secrets ? true : null
metadata_aws_external_secrets_iam_role_arn = var.enable_external_dns ? module.external_secrets.iam_role_arn : null
metadata_aws_external_secrets_namespace = var.enable_external_dns ? local.external_secrets_namespace : null
metadata_aws_external_secrets_service_account = var.enable_external_dns ? local.external_secrets_service_account : null

aws_enable_aws_load_balancer_controller = var.enable_aws_load_balancer_controller ? true : null
enable_aws_load_balancer_controller = var.enable_aws_load_balancer_controller ? true : null
metadata_aws_load_balancer_controller_iam_role_arn = var.enable_aws_load_balancer_controller ? module.aws_load_balancer_controller.iam_role_arn : null
metadata_aws_load_balancer_controller_namespace = var.enable_aws_load_balancer_controller ? local.aws_load_balancer_controller_namespace : null
metadata_aws_load_balancer_controller_service_account = var.enable_aws_load_balancer_controller ? local.aws_load_balancer_controller_service_account : null

aws_enable_aws_for_fluentbit = var.enable_aws_for_fluentbit ? true : null
enable_aws_for_fluentbit = var.enable_aws_for_fluentbit ? true : null
metadata_aws_for_fluentbit_iam_role_arn = var.enable_aws_for_fluentbit ? module.aws_for_fluentbit.iam_role_arn : null
metadata_aws_for_fluentbit_namespace = var.enable_aws_for_fluentbit ? local.aws_for_fluentbit_namespace : null
metadata_aws_for_fluentbit_service_account = var.enable_aws_for_fluentbit ? local.aws_for_fluentbit_service_account : null
metadata_aws_for_fluentbit_log_group_name = var.enable_aws_for_fluentbit && try(var.aws_for_fluentbit_cw_log_group.create, true) ? aws_cloudwatch_log_group.aws_for_fluentbit[0].name : null

aws_enable_aws_node_termination_handler = var.enable_aws_node_termination_handler ? true : null
enable_aws_node_termination_handler = var.enable_aws_node_termination_handler ? true : null
metadata_aws_node_termination_handler_iam_role_arn = var.enable_aws_node_termination_handler ? module.aws_node_termination_handler.iam_role_arn : null
metadata_aws_node_termination_handler_namespace = var.enable_aws_node_termination_handler ? local.aws_node_termination_handler_namespace : null
metadata_aws_node_termination_handler_service_account = var.enable_aws_node_termination_handler ? local.aws_node_termination_handler_service_account : null
metadata_aws_node_termination_handler_sqs_queue_url = var.enable_aws_node_termination_handler ? module.aws_node_termination_handler_sqs.queue_url : null

aws_enable_karpenter = var.enable_karpenter ? true : null
enable_aws_karpenter = var.enable_karpenter ? true : null
metadata_aws_karpenter_iam_role_arn = var.enable_karpenter ? module.karpenter.iam_role_arn : null
metadata_aws_karpenter_namespace = var.enable_karpenter ? local.karpenter_namespace : null
metadata_aws_karpenter_service_account = var.enable_karpenter ? local.karpenter_service_account_name : null
metadata_aws_karpenter_sqs_queue_name = var.enable_karpenter ? module.karpenter_sqs.queue_name : null
metadata_aws_karpenter_cluster_endpoint = var.enable_karpenter ? local.cluster_endpoint : null
metadata_aws_karpenter_node_instance_profile_name = var.enable_karpenter ? local.karpenter_node_instance_profile_name : null

aws_enable_velero = var.enable_velero ? true : null
enable_aws_velero = var.enable_velero ? true : null
metadata_aws_velero_iam_role_arn = var.enable_velero ? module.velero.iam_role_arn : null
metadata_aws_velero_namespace = var.enable_velero ? local.velero_namespace : null
metadata_aws_velero_service_account = var.enable_velero ? local.velero_service_account : null
metadata_aws_velero_backup_s3_bucket_prefix = var.enable_velero ? local.velero_backup_s3_bucket_prefix : null
metadata_aws_velero_backup_s3_bucket_name = var.enable_velero ? local.velero_backup_s3_bucket_name : null

aws_enable_aws_gateway_api_controller = var.enable_aws_gateway_api_controller ? true : null
enable_aws_gateway_api_controller = var.enable_aws_gateway_api_controller ? true : null
metadata_aws_gateway_api_controller_iam_role_arn = var.enable_aws_gateway_api_controller ? module.aws_gateway_api_controller.iam_role_arn : null
metadata_aws_gateway_api_controller_namespace = var.enable_aws_gateway_api_controller ? local.aws_gateway_api_controller_namespace : null
metadata_aws_gateway_api_controller_service_account = var.enable_aws_gateway_api_controller ? local.aws_gateway_api_controller_service_account : null
metadata_aws_gateway_api_controller_vpc_id = var.enable_aws_gateway_api_controller ? var.vpc_id : null

aws_enable_fargate_fluentbit = var.enable_fargate_fluentbit ? true : null
enable_aws_fargate_fluentbit = var.enable_fargate_fluentbit ? true : null
metadata_aws_fargate_fluentbit_log_group_name = var.enable_fargate_fluentbit && try(var.fargate_fluentbit_cw_log_group.create, true) ? try(var.fargate_fluentbit.cwlog_group, aws_cloudwatch_log_group.fargate_fluentbit[0].name) : null
metadata_aws_fargate_fluentbit_log_stream_prefix = var.enable_fargate_fluentbit ? local.fargate_fluentbit_cwlog_stream_prefix : null
}
Expand Down

0 comments on commit f9bd1ef

Please sign in to comment.