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

Clarification on Support for Importing Port Blueprints #370

Open
phalbert opened this issue Jul 12, 2024 · 3 comments
Open

Clarification on Support for Importing Port Blueprints #370

phalbert opened this issue Jul 12, 2024 · 3 comments

Comments

@phalbert
Copy link
Contributor

I'm trying to import an existing Port Blueprint into my Pulumi project using the pulumi import command. However, I'm encountering errors during the import process. Specifically, when running the following command:

pulumi import port:index/blueprint:Blueprint teamBlueprint _team

I'm getting the following error:

error: Preview failed: cannot encode resource inputs to call ValidateResourceConfig: objectEncoder failed on property "properties": objectEncoder failed on property "string_props": encMap failed on {[]}

My Terraform configuration for this Blueprint is:

terraform {
  required_providers {
    port = {
      source  = "port-labs/port-labs"
      version = "~> 2.0.0"
    }
  }

}


resource "port_blueprint" "teamBlueprint" {
  title       = "Team"
  identifier  = "_team"
  description = "This blueprint is synced with Port teams"
  icon        = "Team"
  properties = {
    string_props = {
      "description" = {
        title = "Description"
      }
    }
  }
}

Questions:

  • Is importing existing Port Blueprints officially supported by the pulumi-port provider?
  • If so, are there any specific considerations or steps that I need to take when importing Blueprints with complex property structures?
  • Could this error be related to a bug or incompatibility between the provider and my specific Blueprint configuration?
  • Any guidance or insights you can provide would be greatly appreciated.

Additional Information:

Pulumi Version: 3.28.1
pulumi-port Provider Version: v2.0.10
Blueprint Type: teamBlueprint
Blueprint Identifier: _team

@phalbert
Copy link
Contributor Author

@dirien

@dirien
Copy link
Collaborator

dirien commented Jul 21, 2024

Hey @phalbert,

I could recreate the issue and created a issue in our repo here: pulumi/pulumi-terraform-bridge#2219

Normally, importing of resources is fully supported in Pulumi and I think this needs to be evaluated from our engineering team.

@phalbert
Copy link
Contributor Author

Thank you @dirien. I will await your feedback then

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants