sparse-intern-71089
12/08/2020, 6:07 PMbillowy-army-68599
pulumi state delete <urn>
gifted-vase-28337
12/08/2020, 6:22 PMgentle-diamond-70147
12/08/2020, 6:22 PMgentle-diamond-70147
12/08/2020, 6:23 PMgentle-diamond-70147
12/08/2020, 6:23 PM.get()
function that lets you get a resource by its id.gifted-vase-28337
12/08/2020, 6:24 PMget
the resources for now, and revise the gets to imports when we're ready to transition ownership of the resources to the new accountgentle-diamond-70147
12/08/2020, 6:24 PMget
sounds like what you actually want for now.gifted-vase-28337
12/08/2020, 6:24 PMgotten
resources like we can when we import
?gentle-diamond-70147
12/08/2020, 6:25 PM.get
, but you can reference all the properties from them.gifted-vase-28337
12/08/2020, 6:25 PMgentle-diamond-70147
12/08/2020, 6:25 PMgifted-vase-28337
12/09/2020, 7:19 PMget()
succeeds even when the resource attributes in code don't match the gotten cloud resource, and then the code is out of sync with the pulumi resource (which matches the cloud resource).
Is this a bug?
cc @gentle-account-13294 who discovered this issuegentle-diamond-70147
12/09/2020, 7:21 PMgentle-diamond-70147
12/09/2020, 7:22 PM.get()
function is essentially a read-only view of an existing resource, so I'm confused by you trying to match it in code.gifted-vase-28337
12/09/2020, 7:22 PMaws.glue.CatalogDatabase.get(
id="...",
resource_name="...",
name="...",
location_uri="<s3://wrong-url>",
)
gifted-vase-28337
12/09/2020, 7:23 PMid
attributes ignored when get()
executes?gifted-vase-28337
12/09/2020, 7:24 PMA resource from aEven though it's read-only, we want the code to match the resource 1:1, because at some point we'll convert it from afunction is essentially a read-only view of an existing resource, so I'm confused by you trying to match it in code..get()
get()
to a normal resource under pulumi's management.gifted-vase-28337
12/09/2020, 7:26 PMgifted-vase-28337
12/09/2020, 7:26 PMget()
works we'll need to approximately 1:1 describe the resource now, and correct any mistakes that arise later when we import it?gentle-diamond-70147
12/09/2020, 8:15 PMget()
was designed with that idea in mind (specifically trying to match what the "shape" of the resource like import
), so I think your last point of "approximately 1:1" will be the best thing to do for now.