Skip to content

Failing to import a Pulumi resource due to unhelpful output #6285

@ekasprzyk

Description

@ekasprzyk

In the documentation on how to import a Pulumi resource here: https://sst.dev/docs/import-resources/
the documentation says that I should attempt the import and change the fields that the import tells me to change.

I'm trying to import a Cloudfront Distribution and the very helpful message I get is:

inputs to import do not match the existing resource: [comment origins]

Since origins is a massive complex JSON as detailed here:
https://www.pulumi.com/registry/packages/aws/api-docs/cloudfront/distribution/#distributionorigin
That comment is worse than useless and I have been fiddling with the values for a while now failing to get anywhere.

Is there any approach that would allow SST to print a better error message or allow dropping into a Pulumi console to allow debugging the error, or maybe doing a manual import that might suggest how to debug the issue? Or any kind of documentation which might help explain what to do?

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions