Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Co-authored-by: cloudpossebot <[email protected]>
Co-authored-by: Andriy Knysh <[email protected]>
  • Loading branch information
3 people authored Sep 5, 2023
1 parent 58b5a56 commit bbc4dee
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
## Components PR [Fix components](https://github.com/cloudposse/terraform-aws-components/pull/855)

This is a bug fix and feature enhancement update.
No actions necessary to upgrade.

## Notes
* Cold start needs to apply twice

## Fixes
* Fix cold start bug because the CRD does not exist yet
1 change: 1 addition & 0 deletions src/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ components:
|------|------|
| [kubernetes_namespace.default](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/resources/namespace) | resource |
| [aws_eks_cluster_auth.eks](https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/eks_cluster_auth) | data source |
| [kubernetes_resources.crd](https://registry.terraform.io/providers/hashicorp/kubernetes/latest/docs/data-sources/resources) | data source |
## Inputs
Expand Down
8 changes: 8 additions & 0 deletions src/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,18 @@ module "external_secrets_operator" {
context = module.this.context
}

data "kubernetes_resources" "crd" {
api_version = "apiextensions.k8s.io/v1"
kind = "CustomResourceDefinition"
field_selector = "metadata.name==externalsecrets.external-secrets.io"
}

module "external_ssm_secrets" {
source = "cloudposse/helm-release/aws"
version = "0.10.0"

enabled = local.enabled && length(data.kubernetes_resources.crd.objects) > 0

name = "ssm" # distinguish from external_secrets_operator
description = "This Chart uses creates a SecretStore and ExternalSecret to pull variables (under a given path) from AWS SSM Parameter Store into a Kubernetes secret."

Expand Down

0 comments on commit bbc4dee

Please sign in to comment.