sparse-intern-71089
01/18/2021, 9:23 PMlittle-cartoon-10569
01/18/2021, 9:26 PMendpoint.id
in the normal way.eager-petabyte-62054
01/18/2021, 9:29 PMresource.json
file that I fed into pulumi import -f resource.json
E.g:
{
"resources": [
{
"type": "aws:sagemaker/endpoint:Endpoint",
"name": "fake-model"
},
{
"type": "aws:sagemaker/endpointConfiguration:EndpointConfiguration",
"name": "fake-model"
},
{
"type": "aws:sagemaker/model:Model",
"name": "fake-model"
}
]
}
Running that caused the tool to panic: panic: fatal: An assertion has failed
eager-petabyte-62054
01/18/2021, 9:32 PMid
values. The tool didn’t panic but said it couldn’t find those resources.little-cartoon-10569
01/18/2021, 9:39 PMeager-petabyte-62054
01/18/2021, 9:41 PMlittle-cartoon-10569
01/18/2021, 9:42 PMpulumi import
. In this case, the name field is the name you want to use in Pulumi: it becomes the first parameter to the constructor of the resource. It is not necessarily the same as the name tag or field.little-cartoon-10569
01/18/2021, 9:42 PMlittle-cartoon-10569
01/18/2021, 9:43 PMeager-petabyte-62054
01/18/2021, 9:46 PM