delightful-monkey-90700
03/18/2024, 3:48 AMwarning: inputs to import do not match the existing resource; importing this resource will fail) because some of the attributes of the existing bucket aren't set, but I can't actually set them as the result of gcp.storage.Bucket.get().
For example, one bucket may need to set logging.logObjectPrefix which is a pulumi.Input<string> | undefined but since gcp.storage.Bucket.get() returns an object whose logging member is pulumi.Output<BucketLogging | undefined> there's no way for me to unwrap logging.logObjectPrefix into pulumi.Output<string> | undefined only pulumi.Output<string | undefined> which is incompatible.
Am I missing something ?little-cartoon-10569
03/18/2024, 5:32 AMimport opt, or the pulumi import tool.delightful-monkey-90700
03/18/2024, 6:02 AMdelightful-monkey-90700
03/18/2024, 6:04 AMlittle-cartoon-10569
03/18/2024, 8:11 PMpulumi import does: get the information in one pass (the call to pulumi import, which generates code and updates the state), then pulumi up (begin managing the resource in Pulumi).little-cartoon-10569
03/18/2024, 8:14 PM