So I have one IAM Profile/User that I am using to deploy a Lambda function, but this Lambda function needs to instantiate a new AWS Session to connect to a whitelisted S3 bucket. Each of these users have distinct Keys, Secrets, and coordinated policies that are set up for their distinct purposes.
I cannot set the profile
in my serverless.yaml to the S3 configuration, as I won't have adequate permissions to deploy the Lambda. How can I in-code reference a distinct aws.Config{}? Ideally, I do not want to statically store the keys/secret for the S3 configured IAM in Parameter Store but that's all I can think as of now.