Pulumi\folks, if anyone has a reference for a doc\...
# aws
m
Pulumi\folks, if anyone has a reference for a doc\example: Howdy folks. Looking to understand authentication options for Pulumi’s cross account deployment ability. Could anyone point me to a good resource? Thinking about Pulumi running in a CodeBuild build project in a devops account, deploying resources into an app account.
l
The answer depends on the cloud. I'm guessing it's AWS, since you mention CodeBuild? The account you're running from isn't relevant. You need an AWS provider for the account you are deploying to, and its credentials are acquired in the normal ways you do from the command line. There are many features to help manage credentials, but the first place to start is the documentation for the AWS provider: https://www.pulumi.com/registry/packages/aws/api-docs/provider/
Providers can be defined to be implicitly available to resources ("default" provider), or you can pass a provider to each resource as you construct it. This is how a single stack can create resources in multiple accounts: have a provider for each account/region combination, and pass the providers around.
m
Thank you!
l
There are many places on the Pulumi site and in their GitHub repos with more docs and good examples, but since it's such a wide area with lots of right answers, depending on your goal, use case and preferences, it's a bit risky to point at specific docs without knowing more. Search the Pulumi site, use google, and come back with more questions 🙂
There's plenty of links from this page, maybe this would be another good place to start? https://leebriggs.co.uk/blog/2022/09/05/authenticating-to-aws-the-right-way
m
Passed to SA and checking they can solve\solved it, thank you again! And sharing the secret of community slack and value! 🙂