generated from aws-ia/terraform-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Adds support for GitOps-Bridge (#47)
Signed-off-by: Carlos Santana <[email protected]>
- Loading branch information
1 parent
701b266
commit 6545e95
Showing
4 changed files
with
123 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
|
||
################################################################################ | ||
# GitOps Bridge | ||
################################################################################ | ||
/* | ||
This output is intended to be used with GitOps when the addons' Helm charts | ||
are going to be installed by a GitOps tool such as ArgoCD or FluxCD. | ||
We guarantee that this output will be maintained any time a new addon is | ||
added or an addon is updated, and new metadata for the Helm chart is needed. | ||
*/ | ||
output "gitops_metadata" { | ||
description = "GitOps Bridge metadata" | ||
value = merge( | ||
{ for k, v in { | ||
iam_role_arn = module.apigatewayv2.iam_role_arn | ||
namespace = try(var.apigatewayv2.namespace, local.apigatewayv2_name) | ||
service_account = local.apigatewayv2_name | ||
} : "ack_apigatewayv2_${k}" => v if var.enable_apigatewayv2 | ||
}, | ||
{ for k, v in { | ||
iam_role_arn = module.dynamodb.iam_role_arn | ||
namespace = try(var.dynamodb.namespace, local.dynamodb_name) | ||
service_account = local.dynamodb_name | ||
} : "ack_dynamodb_${k}" => v if var.enable_dynamodb | ||
}, | ||
{ for k, v in { | ||
iam_role_arn = module.s3.iam_role_arn | ||
namespace = try(var.s3.namespace, local.s3_name) | ||
service_account = local.s3_name | ||
} : "ack_s3_${k}" => v if var.enable_s3 | ||
}, | ||
{ for k, v in { | ||
iam_role_arn = module.rds.iam_role_arn | ||
namespace = try(var.rds.namespace, local.rds_name) | ||
service_account = local.rds_name | ||
} : "ack_rds_${k}" => v if var.enable_rds | ||
}, | ||
{ for k, v in { | ||
iam_role_arn = module.prometheusservice.iam_role_arn | ||
namespace = try(var.prometheusservice.namespace, local.prometheusservice_name) | ||
service_account = local.prometheusservice_name | ||
} : "ack_prometheusservice_${k}" => v if var.enable_prometheusservice | ||
}, | ||
{ for k, v in { | ||
iam_role_arn = module.emrcontainers.iam_role_arn | ||
namespace = try(var.emrcontainers.namespace, local.emrcontainers_name) | ||
service_account = local.emrcontainers_name | ||
} : "ack_emrcontainers_${k}" => v if var.enable_emrcontainers | ||
}, | ||
{ for k, v in { | ||
iam_role_arn = module.sfn.iam_role_arn | ||
namespace = try(var.sfn.namespace, local.sfn_name) | ||
service_account = local.sfn_name | ||
} : "ack_sfn_${k}" => v if var.enable_sfn | ||
}, | ||
{ for k, v in { | ||
iam_role_arn = module.eventbridge.iam_role_arn | ||
namespace = try(var.eventbridge.namespace, local.eventbridge_name) | ||
service_account = local.eventbridge_name | ||
} : "ack_eventbridge_${k}" => v if var.enable_eventbridge | ||
} | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters