Skip to content

Ghost/ Duplicate secret and unable to remove #6687

@Kyle-Trocki

Description

@Kyle-Trocki

Not sure how I got into this state but this is what I am facing:

❯ pnpm sst secret list --stage myStage | grep SecretId
SecretId=921
❯ pnpm sst secret remove --stage myStage SecretId
 ✕  Secret "SecretId" does not exist
❯ pnpm sst secret set --stage myStage SecretId newKey
 ✓  Set "SecretId" for stage "myStage". Run "sst deploy" to update.
❯ pnpm sst secret list --stage myStage | grep SecretId
SecretId=newKey
SecretId=921
❯ pnpm sst secret remove --stage myStage SecretId
✓  Removed "SecretId" for stage "myStage". Run "sst deploy" to update.
❯ pnpm sst secret list --stage myStage | grep SecretId
SecretId=921
❯ pnpm sst secret remove --stage myStage SecretId
 ✕  Secret "SecretId" does not exist

I somehow have a ghost sst secret that I can not remove. I have tried the above sequence with sst deploys as recommended by the steps as well and it persists. I have also tried multiple refreshes of the stage. Hoping you can help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions