Skip to content

Commit

Permalink
Only create secrets in SSM for shared manifests if they are used
Browse files Browse the repository at this point in the history
  • Loading branch information
avnes committed Sep 24, 2024
1 parent 6dcc50a commit 0052661
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions compute/k8s-services/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -1004,6 +1004,7 @@ module "github_arc_runners" {

module "shared_manifests_git_owner" {
source = "../../_sub/security/ssm-parameter-store"
count = var.shared_manifests_deploy ? 1 : 0
key_name = "/github/shared-manifests/owner"
key_description = "Git owner for the shared Flux manifests"
key_value = var.fluxcd_bootstrap_repo_owner
Expand All @@ -1012,6 +1013,7 @@ module "shared_manifests_git_owner" {

module "shared_manifests_git_token" {
source = "../../_sub/security/ssm-parameter-store"
count = var.shared_manifests_deploy ? 1 : 0
key_name = "/github/shared-manifests/token"
key_description = "Git owner's token for the shared Flux manifests"
key_value = var.fluxcd_bootstrap_repo_owner_token
Expand Down

0 comments on commit 0052661

Please sign in to comment.