breezy-laptop-42679
08/02/2022, 9:24 AMrich-agency-75207
08/02/2022, 3:40 PMerror: Preview failed: unrecognized resource type (Read): gcp:compute:Instance
Am probably missing something obvious. I've tried with stacks configured with gcp-python
and google-native-yaml
templates.rich-agency-75207
08/02/2022, 3:43 PM{
"resources": [
{
"type": "gcp:compute:Instance",
"name": "********",
"id": "787623324243234"
}
]
}
name
and id
sourced from gcloud compute instances describe ***** --zone **** --format=json
outputrich-agency-75207
08/02/2022, 3:44 PMpulumi import -f test.json
breezy-laptop-42679
08/02/2022, 3:45 PMbreezy-laptop-42679
08/02/2022, 3:46 PMrich-agency-75207
08/02/2022, 3:46 PMrich-agency-75207
08/02/2022, 3:47 PM"type": "google-native:compute/v1:Instance" too
In this case I get error: Preview failed: selfLink property "selfLink" not found
victorious-memory-43562
08/02/2022, 5:33 PMacoustic-plumber-13001
08/03/2022, 4:31 PM.apply
which I think I'm just getting syntax wrong. Code in my first reply, but the general gist of what I'm attempting:
• Given two projects, we'll call them bucket
and iam
• Export an s3 bucket from the bucket
project
• Get the string value of that bucket's ARN in the iam
projectbrief-baker-41837
08/04/2022, 7:39 AMfull-zebra-67293
08/04/2022, 8:49 AMfew-lizard-48557
08/04/2022, 12:18 PMcalm-kitchen-4682
08/04/2022, 3:33 PMacoustic-apple-75209
08/06/2022, 9:03 AMacoustic-evening-77298
08/08/2022, 3:40 PMsuper().__init__(
"<component-type-id>",
"<component-name>",
props: Optional[Inputs],
opts
)
In the examples I can find the props
are not handled. Digging through the code that seems to resolve to the Resource.__init__(... props )
To confirm, my best guess is that any pulumi.Input[]
to my custom component should be forwarded to the base class __init__
AND that part of the reason for this is to allow Pulumi to work out dependency ordering between my component and other resource outputs… BUT that it generally doesn’t matter in practice because these are forwarded to sub-resources of the component so the dependency ordering is handled that way.
---
So the question here:
(1) is the understanding above correct and
(2) are there any other important reasons for specifying the component properties?
In all of the Pulumi examples, they seem to pass None
or {}
(e.g. Azure Virtual Data Center)delightful-bear-69098
08/08/2022, 6:55 PMdelightful-bear-69098
08/08/2022, 6:55 PMmost-mouse-38002
08/09/2022, 11:14 AMPulumi.*.yaml
files in git, right? So long as we store the secret key for the values within the file in a proper manner this is the way, correct?quiet-state-82941
08/09/2022, 6:23 PMgreat-lifeguard-55102
08/10/2022, 9:25 AMlate-lizard-19909
08/11/2022, 2:49 PMdelightful-bear-69098
08/11/2022, 3:16 PMdelightful-bear-69098
08/11/2022, 6:54 PMdelightful-bear-69098
08/11/2022, 6:55 PMlively-helmet-97905
08/12/2022, 3:56 PMmicroscopic-doctor-76377
08/14/2022, 1:26 AMswift-apple-26877
08/15/2022, 5:07 PMshy-dentist-79386
08/16/2022, 9:58 PMhappy-processor-87181
08/17/2022, 7:42 AMhappy-processor-87181
08/17/2022, 7:42 AMechoing-dinner-19531
08/17/2022, 7:44 AMpulumi stack rm
etchappy-processor-87181
08/17/2022, 7:47 AMechoing-dinner-19531
08/17/2022, 7:49 AM