handsome-truck-95168
12/11/2019, 8:18 PMaws.route53.Record.get(...)
to retrieve a record that doesn't exist (in which case I would create it), my pulumi up
fails with an error message like:
error: Preview failed: resource 'Z22LJ5YIATCQQQ_<http://consolex.dev.example.com|consolex.dev.example.com>_CNAME' does not exist
Is there another way to see if a DNS record already exists? Do I need to use the AWS SDK (from Amazon)?rhythmic-hair-33677
12/11/2019, 9:29 PMbig-piano-35669
rhythmic-hair-33677
12/11/2019, 11:30 PMbig-piano-35669
get
methods. (In hindsight, it's quite confusing and unfortunate that we named them both get
!)
1. A static get
method on all resource types that looks up a resource by ID and/or properties, but does not lead to Pulumi managing that resource
2. An instance get
method on all `Output<T>`s that is used to get the raw value of the property without needing an apply
(as you say, typically used with lambda closure capture)
Justin's question seems to be about (1). His scenario was actually an intended use case -- but we made it impossible by not letting you catch the errors 😕rhythmic-hair-33677
12/11/2019, 11:53 PMmicroscopic-florist-22719
handsome-truck-95168
12/13/2019, 5:32 PM