eager-thailand-33661
02/28/2022, 9:30 AMget-o40-entry-export : {
integrated_system : "CLOUD_PUBSUB"
linked_resource : "//pubsub.googleapis.com/projects/mathem-m-test/topics/o40-topic"
name : "projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj"
source_system_timestamps : {
create_time: "2022-02-25T17:08:36.192Z"
update_time: "2022-02-25T17:08:36.192Z"
}
type : "DATA_STREAM"
}
Since that datacatalog entry already exists, I want to import it to Pulumi but then I get a response that the resource doesn't exist.
pulumi import google-native:datacatalog/v1:Entry o40-entry projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj
=>
Type Name Plan Info
pulumi:pulumi:Stack datapipelines-prod 1 error
= └─ google-native:datacatalog/v1:Entry o40-entry import 1 error
Diagnostics:
google-native:datacatalog/v1:Entry (o40-entry):
error: Preview failed: resource 'projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj' does not exist
Should I use a different resource name for the entry? The Entry resource seems to be referenced by a combination of an entry_group_id and an entry_id when using the getEntry function or when creating a custom Entry.
Running gcloud data-catalog also returns that entry:
gcloud data-catalog entries describe cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj --location=global --entry-group=@pubsub
=>
integratedSystem: CLOUD_PUBSUB
linkedResource: //pubsub.googleapis.com/projects/mathem-m-test/topics/o40-topic
name: projects/mathem-m-test/locations/global/entryGroups/@pubsub/entries/cHJvamVjdHMvbWF0aGVtLW0tdGVzdC90b3BpY3MvbzQwLXRvcGlj
sourceSystemTimestamps:
createTime: '2022-02-25T17:08:36.192Z'
updateTime: '2022-02-25T17:08:36.192Z'
type: DATA_STREAM
great-queen-39697
02/28/2022, 3:53 PMpulumi import gcp:datacatalog/entry:Entry o40-entry <name>
Generally, if there's an import section like this in the API docs, you can import it.eager-thailand-33661
02/28/2022, 6:02 PM