feat: aws auth
This commit is contained in:
@@ -14,24 +14,6 @@ const PROJECT_ID = "PROJECT_ID";
|
||||
clientSecret: "CLIENT_SECRET"
|
||||
});
|
||||
|
||||
const dynamicSecret = await client
|
||||
.dynamicSecrets()
|
||||
.leases.create({
|
||||
dynamicSecretName: "test-redis",
|
||||
projectSlug: "11-w-hfo",
|
||||
environmentSlug: "dev"
|
||||
})
|
||||
.catch(err => {
|
||||
if (err instanceof AxiosError) {
|
||||
console.log(err.response?.data);
|
||||
}
|
||||
throw new Error("oops");
|
||||
});
|
||||
|
||||
console.log(dynamicSecret);
|
||||
|
||||
// // process.exit(0);
|
||||
|
||||
const allSecrets = await client.secrets().listSecrets({
|
||||
environment: "dev",
|
||||
projectId: PROJECT_ID,
|
||||
|
||||
Reference in New Issue
Block a user