Currently there are only access tokens associated with users. Many organizations use a dedicated CI user account (or bot use account) to provide customized access for the CI user and allocate tokens to that account.
A service account token feature is on the roadmap as well.
f
full-painter-18061
12/18/2019, 3:15 PM
Ok so can we do it programmatically?
full-painter-18061
12/18/2019, 3:16 PM
I mean create the user then get its token using your API, maybe similarly to how I did it with a standard account
full-painter-18061
12/18/2019, 3:21 PM
or you mean we create a token the same way on a user, but then we need to target the stacks of our Organisation, not the “personal” ones if that makes sense
w
white-balloon-205
12/18/2019, 3:38 PM
Today: just create a use account for your CO not, give that user appropriate RBAC permissions, log in as that user, get an access token.
In the future: programmatically request a service token with specific RBAC permission.
No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.