Hi Guys. Is it possible when we provisioning for e...
# automation-api
r
Hi Guys. Is it possible when we provisioning for example an s3 bucket, passing the credentials by arguments instead of having it on a route like ~/.aws/credentials file? I mean, using this example: https://github.com/EvanBoyle/automation-api-examples/blob/main/inline_program/main.go It read credentials from ~/.aws/credentials or from env-vars, My idea is for example each request to an API that receives those credentials by arguments.
l
I believe you should be able to create an explicit aws provider and pass in the credentials you'd like to use: https://www.pulumi.com/docs/reference/pkg/aws/provider/
That's the generic pulumi answer (not automation api specific). There are some other options such as environment variables that you could set on the workspace: https://www.pulumi.com/docs/intro/cloud-providers/aws/setup/