diff --git a/packages/stacks/api/test/__snapshots__/main.spec.ts.snap b/packages/stacks/api/test/__snapshots__/main.spec.ts.snap index 49c0642e..1a2b5d8c 100644 --- a/packages/stacks/api/test/__snapshots__/main.spec.ts.snap +++ b/packages/stacks/api/test/__snapshots__/main.spec.ts.snap @@ -3274,7 +3274,7 @@ exports[`Snapshot 1`] = ` "Fn::Join": [ "", [ - "[{\\"apiVersion\\":\\"secrets-store.csi.x-k8s.io/v1alpha1\\",\\"kind\\":\\"SecretProviderClass\\",\\"metadata\\":{\\"name\\":\\"crisiscleanup-api\\",\\"namespace\\":\\"local\\",\\"labels\\":{\\"aws.cdk.eks/prune-c8d3d8345fdc8f44758b9c93a8243c01470109e86b\\":\\"\\"}},\\"spec\\":{\\"provider\\":\\"aws\\",\\"parameters\\":{\\"objects\\":\\"[{\\\\\\"objectName\\\\\\":\\\\\\"test-name\\\\\\",\\\\\\"objectType\\\\\\":\\\\\\"secretsmanager\\\\\\",\\\\\\"jmesPath\\\\\\":[{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.accessKeyId\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_ACCESS_KEY_ID\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.secretAccessKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_SECRET_ACCESS_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.defaultRegion\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_DEFAULT_REGION\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.dynamoStage\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_DYNAMO_STAGE\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.cloudfront.privateKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"CLOUDFRONT_PRIVATE_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.cloudfront.publicKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"CLOUDFRONT_PUBLIC_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.jwt.privateKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"JWT_PRIVATE_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.jwt.publicKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"JWT_PUBLIC_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.connectFirst.password\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"CONNECT_FIRST_PASSWORD\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.postgres.host\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_HOST\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.postgres.password\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_PASSWORD\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.postgres.dbname\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_DBNAME\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.postgres.port\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_PORT\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.postgres.user\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_USER\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.redis.host\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"REDIS_HOST\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.redis.hostReplicas\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"REDIS_HOST_REPLICAS\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.zendesk.apiKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"ZENDESK_API_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.saml.awsProvider\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"SAML_AWS_PROVIDER\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.saml.awsRole\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"SAML_AWS_ROLE\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.django.adminUrl\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"DJANGO_ADMIN_URL\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.django.secretKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"DJANGO_SECRET_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.django.mandrill.apiKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"DJANGO_MANDRILL_API_KEY\\\\\\"}]},{\\\\\\"objectName\\\\\\":\\\\\\"", + "[{\\"apiVersion\\":\\"secrets-store.csi.x-k8s.io/v1alpha1\\",\\"kind\\":\\"SecretProviderClass\\",\\"metadata\\":{\\"name\\":\\"crisiscleanup-api\\",\\"namespace\\":\\"local\\",\\"labels\\":{\\"aws.cdk.eks/prune-c8d3d8345fdc8f44758b9c93a8243c01470109e86b\\":\\"\\"}},\\"spec\\":{\\"provider\\":\\"aws\\",\\"parameters\\":{\\"objects\\":\\"[{\\\\\\"objectName\\\\\\":\\\\\\"test-name\\\\\\",\\\\\\"objectType\\\\\\":\\\\\\"secretsmanager\\\\\\",\\\\\\"jmesPath\\\\\\":[{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.accessKeyId\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_ACCESS_KEY_ID\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.secretAccessKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_SECRET_ACCESS_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.defaultRegion\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_DEFAULT_REGION\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.aws.dynamoStage\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"AWS_DYNAMO_STAGE\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.cloudfront.privateKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"CLOUDFRONT_PRIVATE_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.cloudfront.publicKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"CLOUDFRONT_PUBLIC_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.jwt.privateKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"JWT_PRIVATE_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.jwt.publicKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"JWT_PUBLIC_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.connectFirst.password\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"CONNECT_FIRST_PASSWORD\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.redis.host\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"REDIS_HOST\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.redis.hostReplicas\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"REDIS_HOST_REPLICAS\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.zendesk.apiKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"ZENDESK_API_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.saml.awsProvider\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"SAML_AWS_PROVIDER\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.saml.awsRole\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"SAML_AWS_ROLE\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.django.adminUrl\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"DJANGO_ADMIN_URL\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.django.secretKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"DJANGO_SECRET_KEY\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"api.secrets.django.mandrill.apiKey\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"DJANGO_MANDRILL_API_KEY\\\\\\"}]},{\\\\\\"objectName\\\\\\":\\\\\\"", { "Fn::Join": [ "-", @@ -3328,7 +3328,7 @@ exports[`Snapshot 1`] = ` ], ], }, - "\\\\\\",\\\\\\"objectType\\\\\\":\\\\\\"secretsmanager\\\\\\",\\\\\\"jmesPath\\\\\\":[{\\\\\\"path\\\\\\":\\\\\\"username\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_USER\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"password\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_PASSWORD\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"host\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_HOST\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"port\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_PORT\\\\\\"}]}]\\"},\\"secretObjects\\":[{\\"secretName\\":\\"crisiscleanup-api-secrets\\",\\"type\\":\\"Opaque\\",\\"data\\":[{\\"objectName\\":\\"AWS_ACCESS_KEY_ID\\",\\"key\\":\\"AWS_ACCESS_KEY_ID\\"},{\\"objectName\\":\\"AWS_SECRET_ACCESS_KEY\\",\\"key\\":\\"AWS_SECRET_ACCESS_KEY\\"},{\\"objectName\\":\\"AWS_DEFAULT_REGION\\",\\"key\\":\\"AWS_DEFAULT_REGION\\"},{\\"objectName\\":\\"AWS_DYNAMO_STAGE\\",\\"key\\":\\"AWS_DYNAMO_STAGE\\"},{\\"objectName\\":\\"CLOUDFRONT_PRIVATE_KEY\\",\\"key\\":\\"CLOUDFRONT_PRIVATE_KEY\\"},{\\"objectName\\":\\"CLOUDFRONT_PUBLIC_KEY\\",\\"key\\":\\"CLOUDFRONT_PUBLIC_KEY\\"},{\\"objectName\\":\\"JWT_PRIVATE_KEY\\",\\"key\\":\\"JWT_PRIVATE_KEY\\"},{\\"objectName\\":\\"JWT_PUBLIC_KEY\\",\\"key\\":\\"JWT_PUBLIC_KEY\\"},{\\"objectName\\":\\"CONNECT_FIRST_PASSWORD\\",\\"key\\":\\"CONNECT_FIRST_PASSWORD\\"},{\\"objectName\\":\\"POSTGRES_HOST\\",\\"key\\":\\"POSTGRES_HOST\\"},{\\"objectName\\":\\"POSTGRES_PASSWORD\\",\\"key\\":\\"POSTGRES_PASSWORD\\"},{\\"objectName\\":\\"POSTGRES_DBNAME\\",\\"key\\":\\"POSTGRES_DBNAME\\"},{\\"objectName\\":\\"POSTGRES_PORT\\",\\"key\\":\\"POSTGRES_PORT\\"},{\\"objectName\\":\\"POSTGRES_USER\\",\\"key\\":\\"POSTGRES_USER\\"},{\\"objectName\\":\\"REDIS_HOST\\",\\"key\\":\\"REDIS_HOST\\"},{\\"objectName\\":\\"REDIS_HOST_REPLICAS\\",\\"key\\":\\"REDIS_HOST_REPLICAS\\"},{\\"objectName\\":\\"ZENDESK_API_KEY\\",\\"key\\":\\"ZENDESK_API_KEY\\"},{\\"objectName\\":\\"SAML_AWS_PROVIDER\\",\\"key\\":\\"SAML_AWS_PROVIDER\\"},{\\"objectName\\":\\"SAML_AWS_ROLE\\",\\"key\\":\\"SAML_AWS_ROLE\\"},{\\"objectName\\":\\"DJANGO_ADMIN_URL\\",\\"key\\":\\"DJANGO_ADMIN_URL\\"},{\\"objectName\\":\\"DJANGO_SECRET_KEY\\",\\"key\\":\\"DJANGO_SECRET_KEY\\"},{\\"objectName\\":\\"DJANGO_MANDRILL_API_KEY\\",\\"key\\":\\"DJANGO_MANDRILL_API_KEY\\"}]},{\\"secretName\\":\\"crisiscleanup-db-secrets\\",\\"type\\":\\"Opaque\\",\\"data\\":[{\\"objectName\\":\\"POSTGRES_USER\\",\\"key\\":\\"POSTGRES_USER\\"},{\\"objectName\\":\\"POSTGRES_PASSWORD\\",\\"key\\":\\"POSTGRES_PASSWORD\\"},{\\"objectName\\":\\"POSTGRES_HOST\\",\\"key\\":\\"POSTGRES_HOST\\"},{\\"objectName\\":\\"POSTGRES_PORT\\",\\"key\\":\\"POSTGRES_PORT\\"}]}]}}]", + "\\\\\\",\\\\\\"objectType\\\\\\":\\\\\\"secretsmanager\\\\\\",\\\\\\"jmesPath\\\\\\":[{\\\\\\"path\\\\\\":\\\\\\"username\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_USER\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"password\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_PASSWORD\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"host\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_HOST\\\\\\"},{\\\\\\"path\\\\\\":\\\\\\"port\\\\\\",\\\\\\"objectAlias\\\\\\":\\\\\\"POSTGRES_PORT\\\\\\"}]}]\\"},\\"secretObjects\\":[{\\"secretName\\":\\"crisiscleanup-api-secrets\\",\\"type\\":\\"Opaque\\",\\"data\\":[{\\"objectName\\":\\"AWS_ACCESS_KEY_ID\\",\\"key\\":\\"AWS_ACCESS_KEY_ID\\"},{\\"objectName\\":\\"AWS_SECRET_ACCESS_KEY\\",\\"key\\":\\"AWS_SECRET_ACCESS_KEY\\"},{\\"objectName\\":\\"AWS_DEFAULT_REGION\\",\\"key\\":\\"AWS_DEFAULT_REGION\\"},{\\"objectName\\":\\"AWS_DYNAMO_STAGE\\",\\"key\\":\\"AWS_DYNAMO_STAGE\\"},{\\"objectName\\":\\"CLOUDFRONT_PRIVATE_KEY\\",\\"key\\":\\"CLOUDFRONT_PRIVATE_KEY\\"},{\\"objectName\\":\\"CLOUDFRONT_PUBLIC_KEY\\",\\"key\\":\\"CLOUDFRONT_PUBLIC_KEY\\"},{\\"objectName\\":\\"JWT_PRIVATE_KEY\\",\\"key\\":\\"JWT_PRIVATE_KEY\\"},{\\"objectName\\":\\"JWT_PUBLIC_KEY\\",\\"key\\":\\"JWT_PUBLIC_KEY\\"},{\\"objectName\\":\\"CONNECT_FIRST_PASSWORD\\",\\"key\\":\\"CONNECT_FIRST_PASSWORD\\"},{\\"objectName\\":\\"REDIS_HOST\\",\\"key\\":\\"REDIS_HOST\\"},{\\"objectName\\":\\"REDIS_HOST_REPLICAS\\",\\"key\\":\\"REDIS_HOST_REPLICAS\\"},{\\"objectName\\":\\"ZENDESK_API_KEY\\",\\"key\\":\\"ZENDESK_API_KEY\\"},{\\"objectName\\":\\"SAML_AWS_PROVIDER\\",\\"key\\":\\"SAML_AWS_PROVIDER\\"},{\\"objectName\\":\\"SAML_AWS_ROLE\\",\\"key\\":\\"SAML_AWS_ROLE\\"},{\\"objectName\\":\\"DJANGO_ADMIN_URL\\",\\"key\\":\\"DJANGO_ADMIN_URL\\"},{\\"objectName\\":\\"DJANGO_SECRET_KEY\\",\\"key\\":\\"DJANGO_SECRET_KEY\\"},{\\"objectName\\":\\"DJANGO_MANDRILL_API_KEY\\",\\"key\\":\\"DJANGO_MANDRILL_API_KEY\\"}]},{\\"secretName\\":\\"crisiscleanup-db-secrets\\",\\"type\\":\\"Opaque\\",\\"data\\":[{\\"objectName\\":\\"POSTGRES_USER\\",\\"key\\":\\"POSTGRES_USER\\"},{\\"objectName\\":\\"POSTGRES_PASSWORD\\",\\"key\\":\\"POSTGRES_PASSWORD\\"},{\\"objectName\\":\\"POSTGRES_HOST\\",\\"key\\":\\"POSTGRES_HOST\\"},{\\"objectName\\":\\"POSTGRES_PORT\\",\\"key\\":\\"POSTGRES_PORT\\"}]}]}}]", ], ], },