Hi I'm new to sst and I'm just trying out an examp...
# help
w
Hi I'm new to sst and I'm just trying out an example for the first time in conjunction with aws-vault, but getting this error: 25705 PM | CREATE_FAILED | AWS:IAM:Role | FilePublishingRole The security token included in the request is invalid (Service: AmazonIdentityManagement; Status Code: 403; E steps to reproduce: svn checkout https://github.com/serverless-stack/examples/trunk/rest-api cd rest-api npm i aws-vault exec wadminv --debug -- npm run start However both these execute correctly: aws-vault exec wadminv --debug --no-session -- npm run start aws-vault exec wadminv -- aws s3 ls I'd appreciate some guidance on what to investigate or try?
f
Hey @Warwick Grigg, welcome to SST!
Thanks for the details. Let me give ur setup a try in a bit.
w
Thank you!
Hold back on that for a moment please. I've found some info in the aws-vault issues that says "if you need access to IAM operations with a session token, it should be MFA authenticated. It's a requirement from AWS. Please add 
mfa_serial
 propery in the aws config file, then 
aws-vault
 will prompt for MFA token". Looks promising. I'll try that ... and I'll let you know here.
Yes, that's the solution. I assigned a virtual MFA device, added it to aws config and it's all working as I hoped. Thank you for all your work on SST!
f
Oh nice. Glad you got it to work!