sparse-intern-71089
08/14/2020, 9:39 PMbillowy-army-68599
salmon-ghost-86211
08/14/2020, 10:09 PMbillowy-army-68599
pulumi up
before trying to add the property, it should fix itsalmon-ghost-86211
08/17/2020, 7:03 PMpulumi up
show the following error
Object literal may only specify known properties, and 'updateDefaultVersion' does not exist in type 'GroupArgs'.
My code is
const myAutoscalingGroup = new aws.autoscaling.Group(
`${namePrefix}-autoscaling-group`,
{
desiredCapacity: 1,
enabledMetrics: [ "GroupInServiceInstances" ],
healthCheckGracePeriod: 0,
launchTemplate: {
id: myLaunchTemplate.id,
version: "$Latest",
},
maxSize: 1,
minSize: 1,
name: namePrefix,
updateDefaultVersion: true,
vpcZoneIdentifiers: availableSubnetIds,
},
{ dependsOn: myLaunchTemplate }
);
Here are some version details if that helps
$ pulumi version
v2.8.2
$ pulumi plugin ls
NAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 2.13.0 228 MB n/a 1 month ago
docker resource 2.2.3 40 MB n/a 1 month ago
kubernetes resource 2.4.2 70 MB n/a 4 hours ago
billowy-army-68599
updateDefaultVersion
property is on the aws.ec2.LaunchTemplate
resource, not the aws.autoscaling.Group
salmon-ghost-86211
08/17/2020, 7:15 PMObject literal may only specify known properties, and 'updateDefaultVersion' does not exist in type 'LaunchTemplateArgs'.
billowy-army-68599
2.13.1
. You'll need to remove the property, update your package.json
and run a pulumi up without the propertysalmon-ghost-86211
08/17/2020, 7:26 PMNAME KIND VERSION SIZE INSTALLED LAST USED
aws resource 2.13.1 228 MB n/a 4 minutes ago
I removed the property, ran npm ci
, ran pulumi up, then added the property back and ran another pulumi up. Same error.salmon-ghost-86211
08/17/2020, 7:26 PMpackage.json
is updated as wellsalmon-ghost-86211
08/17/2020, 7:28 PMpackage.json
to latest
and ran npm ci
salmon-ghost-86211
08/17/2020, 7:36 PMconst myLaunchTemplate = new aws.ec2.LaunchTemplate(
`${serverDetails.namePrefix}-launch-template`,
{
description: `Builds the ${serverDetails.namePrefix} server`,
iamInstanceProfile: {
arn: serverDetails.instanceProfileArn
},
imageId: serverDetails.amiId,
instanceType: serverDetails.instanceType,
keyName: generalDetails.sshKey,
namePrefix: `${serverDetails.namePrefix}-`,
tagSpecifications: [
{
resourceType: "instance",
tags: { "Name": serverDetails.namePrefix }
},
{
resourceType: "volume",
tags: { "Name": serverDetails.namePrefix }
},
],
updateDefaultVersion: true,
userData: userData,
vpcSecurityGroupIds: [ pulumi.output(mySG).apply(sg => sg.id) ],
},
{ dependsOn: mySG }
);
billowy-army-68599
npm ci
? without having the updateDefaultVersion: true
parametersalmon-ghost-86211
08/17/2020, 7:45 PMbillowy-army-68599
pulumi up
works with the property set?salmon-ghost-86211
08/17/2020, 8:35 PMbillowy-army-68599
npm ci
but can you try manually clearing the `node_modules`: this is definitely an SDK issue rather than a provider issuesalmon-ghost-86211
08/17/2020, 11:18 PMbillowy-army-68599