Fix: Refactored aws elasticache to separate provider

This commit is contained in:
Daniel Hougaard
2024-08-28 17:57:19 +04:00
parent a598665b2f
commit 21750a8c20
17 changed files with 1061 additions and 685 deletions
+14 -6
View File
@@ -19,7 +19,8 @@ export enum DynamicSecretProviders {
SqlDatabase = "sql-database",
Cassandra = "cassandra",
AwsIam = "aws-iam",
Redis = "redis"
Redis = "redis",
AwsElastiCache = "aws-elasticache"
}
export enum SqlProviders {
@@ -29,11 +30,6 @@ export enum SqlProviders {
MsSQL = "mssql"
}
export enum RedisProviders {
Redis = "redis",
Elasticache = "elasticache"
}
export type TDynamicSecretProvider =
| {
type: DynamicSecretProviders.SqlDatabase;
@@ -89,6 +85,18 @@ export type TDynamicSecretProvider =
revocationStatement: string;
ca?: string | undefined;
};
}
| {
type: DynamicSecretProviders.AwsElastiCache;
inputs: {
clusterName: string;
accessKeyId: string;
secretAccessKey: string;
region: string;
creationStatement: string;
revocationStatement: string;
ca?: string | undefined;
};
};
export type TCreateDynamicSecretDTO = {