cloudtools / stacker

An AWS CloudFormation Stack orchestrator/manager.
http://stacker.readthedocs.io/en/stable/
BSD 2-Clause "Simplified" License
711 stars 167 forks source link

Support different `profile` for `upload_lambda_functions` hook #764

Open danieljamesscott opened 3 years ago

danieljamesscott commented 3 years ago

We have a multi-account setup and want to upload lambda code to a bucket in a different account where the stack will execute.

Is it possible to add the ability to pass a profile to the upload_lambda_functions function and then pass it to the get_session call https://github.com/cloudtools/stacker/blob/master/stacker/hooks/aws_lambda.py#L569

I can do a PR for this if it helps? (And my proposed solution is correct?)