What is the workflow when multiple developer are w...
# help
p
What is the workflow when multiple developer are working with SST. Do each developer need separate AWS account, or they can use same AWS account with different IAM user.
t
Both work. If you're going to use the same AWS account you can do something like this
sst start --stage $USER
p
So if both developer are running
sst start --stage $USER
at same time it won't conflict. I mean dev1's event doesn't trigger lambda in dev2's local!?
t
Correct, if they have different user names
They can also set the stage manually to something unique
Maybe we should support this more directly. @Frank what do you think of allowing a way to set the stage automatically to a users AWS id?
f
@thdxr Yeah that’d be neat! We can also parse the username from the Arn:
Copy code
$ aws sts get-caller-identity
{
    "UserId": "AIDAIHW56K6VNFT4XPI2W",
    "Account": "112245769880",
    "Arn": "arn:aws:iam::112245769880:user/frank"
}
t
cool I'll write an issue
https://github.com/serverless-stack/serverless-stack/issues/691 - would like some input on how this could be configued