serverless-aws-secrets icon indicating copy to clipboard operation
serverless-aws-secrets copied to clipboard

It dosen't work

Open dudckd6744 opened this issue 1 year ago • 0 comments

  • serverless.yml
service: hellow
frameworkVersion: '3'
custom:
  serverless-aws-secrets:
    secretId: test

provider:
  name: aws
  runtime: nodejs18.x
  region: ap-northeast-2
  environment:
    TEST: secret:TEST

functions:
  test:
    handler: index.handler

plugins:
  - serverless-aws-secrets

typing sls aws-secrets --verbose It ran right

DOTENV: Loading environment variables from .env:
[serverless-aws-secrets]: Running the command: sls aws-secrets
[serverless-aws-secrets]: Loading secret: test in ap-northeast-2
✔ [serverless-aws-secrets]: Secret: TEST, Value: good

but when I typed a console.log , It didn't run right

{
   ...
   TEST: 'secret:TEST',
   ...
}

how should I do?? can i forgot something?

my environment language : nodejs

dudckd6744 avatar Mar 15 '24 06:03 dudckd6744