Open TheHolyWaffle opened 1 month ago
Current version 0.1.17
I just encountered a similar issue.
sst secret set TempAuthToken value --stage=prod
.
SST ❍ ion ready!
➜ App: bts
Stage: prod
~ Deploy
| Error
| SecretMissingError: Set a value for TempAuthToken with `sst secret set TempAuthToken <value>`
| at new Secret (file:///builds/publishing/xyz/.sst/platform/src/components/secret.ts:102:13)
| at Object.bts_default (file:///builds/publishing/xyz/infra/bts.ts:24:5)
| at run (file:///builds/publishing/xyz/sst.config.ts:33:37)
| at run (file:///builds/publishing/xyz/.sst/platform/src/auto/run.ts:33:20)
| at file:///builds/publishing/xyz/eval.ts:6:22 {
| secretName: 'TempAuthToken'
| }
✕ Failed
SecretMissingError: Set a value for TempAuthToken with `sst secret set TempAuthToken <value>`
at new Secret (file:///builds/publishing/xyz/.sst/platform/src/components/secret.ts:102:13)
at Object.bts_default (file:///builds/publishing/xyz/infra/bts.ts:24:5)
at run (file:///builds/publishing/xyz/sst.config.ts:33:37)
at run (file:///builds/publishing/xyz.sst/platform/src/auto/run.ts:33:20)
at file:///builds/publishing/bts/eval.ts:6:22 {
secretName: 'TempAuthToken'
}
ELIFECYCLE Command failed with exit code 1.
```
When I run `sst secret list --stage=prod` locally, all the secrets are there.
Update: turns out I had the wrong AWS_PROFILE
set locally. Sometimes I switch these for different projects. Might want to double-check that.
I was experimenting with using
new sst.Secret('GitlabClientSecret');
after adding this line to
sst.config.ts
I've executedsst dev
. Doing so shows an failure:However, when running the command
sst secret set GitlabClientSecret foo
and then repeating thesst dev
command continues throwing the failure even though an Secret is set.What's worse is that after removing
new sst.Secret('GitlabClientSecret');
fromsst.config.ts
theSecretMissingError
still persists!I've tried deleting the sst-state folders in the S3 buckets, running
sst remove
,sst refresh
, clearing.sst
folder, clearingnode_modules
but nothing help. It keeps throwing theSecretMissingError
insst dev
even though there is no Secret defined insst.config.ts
.