https://pulumi.com logo
Title
c

careful-television-82602

09/16/2021, 2:09 PM
So let's say I want to write my own service that wraps/uses pulumi to deploy to AWS ... I would still have to have AWS cli tool around and configure the credentials there? I would prefer to provide the credentials through my own code. Is that possible?
b

billowy-army-68599

09/16/2021, 2:20 PM
I'm assuming you're talking about our automation API to wrap Pulumi? https://www.pulumi.com/automation/ if so, you can configure the credentials using a provider: https://www.pulumi.com/docs/reference/pkg/aws/provider/#accesskey_nodejs
c

careful-television-82602

09/16/2021, 2:26 PM
Hm. I don't know? 🙂 Not sure I understand the product distinction yet. I thought I could write some golang binary that (when provided with some credentials) it would setup my AWS for me.
Like wrapping terraform up as an API instead of DSL.
b

billowy-army-68599

09/16/2021, 2:47 PM
@careful-television-82602 you can do this with Automation API. you'd need to use the AWS SDK to set your credentials up, but then you can use the automation API to provision your infrastructure
you can see an example of a Pulumi automation API program here: https://github.com/jaxxstorm/pulumi-productionapp/blob/main/cli/main.go#L73-L86
c

careful-television-82602

09/16/2021, 3:42 PM
How is the automation API different from the other API? I am still lacking a good overview.