Skip to content

Commit 9845093

Browse files
fix: correct ttl parameter
1 parent 9bedf11 commit 9845093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

secret-manager/createSecret.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,15 @@
1717
async function main(
1818
parent = 'projects/my-project',
1919
secretId = 'my-secret',
20-
ttl = '900s'
20+
ttl = undefined
2121
) {
2222
// [START secretmanager_create_secret]
2323
/**
2424
* TODO(developer): Uncomment these variables before running the sample.
2525
*/
2626
// const parent = 'projects/my-project';
2727
// const secretId = 'my-secret';
28-
// const ttl = '900s' // Optional: Specify TTL in seconds (e.g., '900s' for 15 minutes).
28+
// const ttl = undefined // Optional: Specify TTL in seconds (e.g., '900s' for 15 minutes).
2929

3030
// Imports the Secret Manager library
3131
const {SecretManagerServiceClient} = require('@google-cloud/secret-manager');

0 commit comments

Comments
 (0)