Skip to content

Commit

Permalink
add some more outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
michaeljguarino committed Oct 19, 2024
1 parent 880c6a9 commit c4cb662
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
9 changes: 9 additions & 0 deletions templates/providers/bootstrap/aws.tf
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,13 @@ provider "helm" {

provider "plural" {
use_cli = true # If you want to have a Plural stack manage your console, comment this out and use the `actor` field
}

## useful outputs dumped here, can be moved to a separate file post-generate
output "cloudwatch_iam_arn" {
value = module.mgmt.cloudwatch_iam_arn
}

output "vpc_id" {
value = module.mgmt.vpc.vpc_id
}
4 changes: 2 additions & 2 deletions terraform/clouds/aws/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,8 @@ module "assumable_role_cloudwatch_exporter" {
role_name = "${var.cluster_name}-cloudwatch-exporter"
provider_url = replace(module.eks.cluster_oidc_issuer_url, "https://", "")
role_policy_arns = [aws_iam_policy.cloudwatch.arn]
oidc_fully_qualified_subjects = [
"system:serviceaccount:monitoring:cloudwatch-exporter",
oidc_subjects_with_wildcards = [
"system:serviceaccount:monitoring:cloudwatch-exporter*",
]
}

Expand Down
4 changes: 4 additions & 0 deletions terraform/clouds/aws/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -236,4 +236,8 @@ output "ready" {

output "identity" {
value = module.assumable_role_stacks.iam_role_arn
}

output "cloudwatch_iam_arn" {
value = module.assumable_role_cloudwatch_exporter.iam_role_arn
}

0 comments on commit c4cb662

Please sign in to comment.