Skip to content

Commit 9bedf11

Browse files
fix: update TTL format
1 parent d8abb66 commit 9bedf11

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

secret-manager/createSecret.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,9 @@ async function main(
4242

4343
// Add TTL to the secret configuration if provided
4444
if (ttl) {
45-
secretConfig.ttl = ttl;
45+
secretConfig.ttl = {
46+
seconds: parseInt(ttl.replace('s', ''), 10),
47+
};
4648
}
4749

4850
const [secret] = await client.createSecret({

0 commit comments

Comments
 (0)