https://serverless-stack.com/ logo
#help
Title
# help
j

Jon Holman

01/26/2022, 5:09 PM
I asked this in the aws-cdk slack, but did not get much response. So I thought maybe this group could advise as this could be a cdk or sst solution. Is there a way to include prompts for user input after
sst deploy
is run? I would like to be able to prompt for parameters if they were not provided through arguments / env file. For example if I wanted to create a project that would use an existing s3 bucket (if the user wants) but otherwise will create its own bucket.
o

Omi Chowdhury

01/26/2022, 5:24 PM
I think you’ll need to check if some parameters aren’t provided yourself, do the prompting, then invoke sst deploy
j

Jon Holman

01/26/2022, 7:59 PM
like a wrapper script, so not within the sst stack/app code?
o

Omi Chowdhury

01/26/2022, 8:09 PM
Yeah I don’t think SST has any hooks to let you implement custom logic before running things
2 Views