sparse-intern-71089
07/28/2021, 8:13 AMlittle-van-8457
07/28/2021, 8:16 AMlittle-van-8457
07/28/2021, 8:17 AMlittle-van-8457
07/28/2021, 8:18 AMclever-sunset-76585
07/28/2021, 5:10 PMlittle-van-8457
07/29/2021, 1:24 AMimport * as alicloud from '@pulumi/alicloud';
// Create the FC service
const service = new alicloud.fc.Service('qianfeng-pulumi-component-test', {
name: 'qianfeng-pulumi-component-test',
});
// Create the FC function.
const func = new alicloud.fc.Function('my-function-1', {
handler: 'index.handler',
runtime: 'nodejs10',
memorySize: 128,
service: service.name,
filename: './code.zip',
name: 'my-function-1',
}, { parent: service, dependsOn: service });
little-van-8457
07/29/2021, 1:28 AMclever-sunset-76585
07/29/2021, 2:17 AMparent: service
, as well as dependsOn: service
. The dependsOn
is not necessary since the dependency is established implicitly by using a property of service
, which you are relying on service.name
when creating your func
. Try removing the dependsOn
. Also what does the detailed diff show? You can get the detailed diff by passing --diff
.little-van-8457
08/03/2021, 4:08 AMlittle-van-8457
08/03/2021, 4:09 AMlittle-van-8457
08/03/2021, 4:20 AMclever-sunset-76585
08/03/2021, 4:40 PMAnd If I removed ‘parents’ and retained ‘dependsOn’, The error won’t appear, which represented that I can not use --target option with ‘parent’. Is this as expected?@little-van-8457 that is not expected. I haven’t used alicloud package myself. I am not sure if there is a bug here but I would not expect the error if Pulumi says that it only needs to
update
the resource’s description and not replace
it. If it was a replace
action then I can understand the error. Let me see if someone else if might have an idea as to what’s going on.little-van-8457
08/06/2021, 3:46 AMclever-sunset-76585
08/06/2021, 6:28 PMpackage.json
?little-van-8457
08/09/2021, 2:06 AM{
"name": "local_test",
"devDependencies": {
"@types/node": "^14.14.35"
},
"dependencies": {
"@pulumi/pulumi": "^2.25.1",
"@pulumi/alicloud": "^2.37.0"
}
}
little-van-8457
08/09/2021, 2:06 AMclever-sunset-76585
08/09/2021, 5:15 PM--target
functionality in the CLI version 3.x release line. I was able to correctly do a targeted update using the latest CLI version. I did not change the package versions in package.json
; just installed the latest CLI version. Could you please update your CLI version to the latest as well and let me know how that goes for you?clever-sunset-76585
08/12/2021, 3:03 PMlittle-van-8457
08/13/2021, 2:17 AM