0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

メモ [CDK] Secrets Manager から値を取得してCDKで利用する

Posted at

例えば、 AWS Secrets Manager に以下のようの保存されていれば

シークレットの名前: secretName
シークレットキー: /hoge/fuga
シークレットの値: xxx

以下のようにCDKで値を取り出すことができる

.ts
    const secret = SecretValue
      .secretsManager(`secretName`, { jsonField: `/hoge/fuga` })
      .toString() // xxx

公式:

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?