Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Team resource doesn't support import #181

Closed
aureq opened this issue Oct 25, 2023 · 0 comments · Fixed by #207
Closed

Team resource doesn't support import #181

aureq opened this issue Oct 25, 2023 · 0 comments · Fixed by #207
Assignees
Labels
customer/feedback Feedback from customers kind/enhancement Improvements or new features resolution/fixed This issue was fixed
Milestone

Comments

@aureq
Copy link
Member

aureq commented Oct 25, 2023

What happened?

With the code provided below, if a user wants to manage a Pulumi team using this provider, they have no choice. They must delete the existing team first and then use this provider to (re)create that team.

Using the CLI doesn't work either. In both cases, the provider returns:

provider does not support importing resources; please try updating the 'pulumiservice' plugin

Example

import * as pulumi from "@pulumi/pulumi";
import * as pulumiService from "@pulumi/pulumiservice";

export = async() => {
    const team = new pulumiService.Team("existing-team", {
        name: "existing-team",
        teamType: "pulumi",
        organizationName: pulumi.runtime.getOrganization(),
        displayName: "Created with TypeScript",
        members: [
            "aureq"
        ]
    }, {
        import: `${pulumi.runtime.getOrganization()}/existing-team`
    });
}

Output of pulumi about

CLI          
Version      3.90.1
Go Version   go1.21.3
Go Compiler  gc

Plugins
NAME           VERSION
nodejs         unknown
pulumiservice  0.14.0

Host     
OS       debian
Version  12.2
Arch     x86_64

This project is written in nodejs: executable='/usr/local/bin/node' version='v20.9.0'

Current Stack: menfin/zendesk/4228

Found no resources associated with 4228

Found no pending operations associated with 4228

Backend        
Name           pulumi.com
URL            https://app.pulumi.com/aureq
User           aureq
Organizations  aureq, team-ce, menfin, menfin-team, demo, pulumi
Token type     personal

Dependencies:
NAME                   VERSION
@pulumi/pulumi         3.90.1
@pulumi/pulumiservice  0.14.0
@types/node            16.18.59

Additional context

CLI import

pulumi import pulumiservice:index:Team existing-team menfin/existing-team

Customer conversation for context.

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

@aureq aureq added kind/bug Some behavior is incorrect or out of spec customer/feedback Feedback from customers labels Oct 25, 2023
@lukehoban lukehoban added kind/enhancement Improvements or new features and removed kind/bug Some behavior is incorrect or out of spec labels Nov 21, 2023
@cleverguy25 cleverguy25 added this to the 0.98 milestone Dec 18, 2023
komalali added a commit that referenced this issue Dec 18, 2023
@pulumi-bot pulumi-bot added the resolution/fixed This issue was fixed label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer/feedback Feedback from customers kind/enhancement Improvements or new features resolution/fixed This issue was fixed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants