We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dca2ad5 commit ee5cd58Copy full SHA for ee5cd58
src/server/utils/ssm.ts
@@ -1,15 +1,13 @@
1
import { GetParameterCommand, SSMClient } from '@aws-sdk/client-ssm';
2
import { credentials, region } from './aws';
3
4
-const getSSMClient = () =>
5
- new SSMClient({
6
- credentials: credentials(),
7
- region,
8
- });
+const client = new SSMClient({
+ credentials: credentials(),
+ region,
+});
9
10
export async function getSsmValue(stage: string, id: string): Promise<string | undefined> {
11
const name = `/membership/support-dotcom-components/${stage}/${id}`;
12
- const client = getSSMClient();
13
14
const response = await client.send(
15
new GetParameterCommand({
0 commit comments