pulumi / pulumi-pulumiservice

https://pulumi.com
Apache License 2.0
13 stars 7 forks source link

Refresh fails on an OrgAccessToken with a slash in the name #388

Closed jkodroff closed 1 month ago

jkodroff commented 3 months ago

What happened?

I get this error when running pulumi refresh on my program:

  pulumiservice:index:OrgAccessToken (pulumi-org-token):
    error: Preview failed: "pulumi-gl-demo-2024-08/GitLab CI/CD/c84f6678-6856-47cb-9d5f-1c3c46972272" is invalid, must contain a single slash ('/')

Example

const pulumiOrgToken = new pulumicloud.OrgAccessToken("pulumi-org-token", {
  name: "GitLab CI/CD",
  organizationName: pulumiOrg,
  admin: false,
});

Output of pulumi about

CLI          
Version      3.129.0
Go Version   go1.22.6
Go Compiler  gc

Plugins
KIND      NAME           VERSION
resource  aws            6.6.1
resource  gitlab         6.4.0
language  nodejs         unknown
resource  pulumiservice  0.23.2

Host     
OS       darwin
Version  14.6.1
Arch     arm64

This project is written in nodejs: executable='/opt/homebrew/bin/node' version='v22.5.1'

Current Stack: jkodrofftest/pulumi-cloud-gitlab-integration/dev

TYPE                                        URN
pulumi:pulumi:Stack                         urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:pulumi:Stack::pulumi-cloud-gitlab-integration-dev
pulumi:providers:aws                        urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:providers:aws::default_6_6_1
pulumi:providers:pulumiservice              urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:providers:pulumiservice::default_0_23_2
pulumi:providers:gitlab                     urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumi:providers:gitlab::default_6_4_0
pulumiservice:index:OrgAccessToken          urn:pulumi:dev::pulumi-cloud-gitlab-integration::pulumiservice:index:OrgAccessToken::pulumi-org-token
aws:iam/role:Role                           urn:pulumi:dev::pulumi-cloud-gitlab-integration::aws:iam/role:Role::gitlab-cicd-admin-role
gitlab:index/project:Project                urn:pulumi:dev::pulumi-cloud-gitlab-integration::gitlab:index/project:Project::pulumi-gitlab-demo
gitlab:index/repositoryFile:RepositoryFile  urn:pulumi:dev::pulumi-cloud-gitlab-integration::gitlab:index/repositoryFile:RepositoryFile::scripts/aws-auth.sh

Found no pending operations associated with dev

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/josh-pulumi-corp
User           josh-pulumi-corp
Organizations  josh-pulumi-corp, jkodrofftest, pulumi-gl-demo-2024-08, aws-partnership, zephyr, jkodroff-team, pulumi
Token type     personal

Dependencies:
NAME                   VERSION
@pulumi/gitlab         6.4.0
@pulumi/pulumi         3.91.0
@pulumi/pulumiservice  0.23.2
@types/node            16.18.59
@pulumi/aws            6.6.1

Pulumi locates its logs in /var/folders/5m/4n1x3f8151s35wc80w06z5k80000gn/T/ by default

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).