Closed jkodroff closed 1 month ago
Workaround:
const randomString = new random.RandomString("org-token-suffix", {
length: 6,
lower: true,
numeric: true,
});
const pulumiOrgToken = new pulumicloud.OrgAccessToken("pulumi-org-token", {
name: pulumi.interpolate`gitlab-ci-cd-${randomString.result}`,
organizationName: pulumiOrg,
admin: false,
description: "Used by GitLab CI/CD"
});
This is a duplicate of https://github.com/pulumi/pulumi-pulumiservice/issues/110 - org access tokens (and access tokens in general) need to be uniquely named so audit logs can remain accurate.
What happened?
It looks like OrgAccessToken is a soft delete because when I try to recreate a token with the same name, I get:
This resource could really use autonaming, per #110.
Example
Output of
pulumi about
Additional context
No response
Contributing
Vote on this issue by adding a 👍 reaction. To contribute a fix for this issue, leave a comment (and link to your pull request, if you've opened one already).