colossal-librarian-55280
11/13/2020, 10:44 PMexport const vpc = new awsx.ec2.Vpc('infra-vpc', {
numberOfAvailabilityZones: 2,
subnets: [
{ type: 'public', name: 'pub' },
{ type: 'private', name: 'priv' },
]
})
export const vpcId = vpc.id;
const infra = new pulumi.StackReference('infra-repro')
const vpcId = infra.getOutputValue('vpcId')
const vpc = awsx.ec2.Vpc.fromExistingIds(`my-vpc-ref`, {
vpcId
})
const myCluster = new awsx.ecs.Cluster('mycluster', {
vpc
});
myCluster.createAutoScalingGroup('autoscaling', {
vpc,
templateParameters: {
minSize: 1,
desiredCapacity: 1
},
launchConfigurationArgs: {
associatePublicIpAddress: false,
rootBlockDevice: {
volumeSize: 50
},
instanceType: "t3.xlarge",
},
})
Diagnostics:
aws:ec2:LaunchConfiguration (autoscaling):
error: Preview failed: transport is closing
pulumi:pulumi:Stack (service-repro-service-repro):
error: preview failed
panic: interface conversion: interface {} is string, not bool
(more logs in the README: https://github.com/eordano/autosg-repro)v2.13.2
broad-gold-44713
11/14/2020, 8:48 PMfromExistingIds
method when I did it. https://www.pulumi.com/docs/reference/pkg/nodejs/pulumi/awsx/ec2/#Vpc-fromExistingIds
const vpc = new awsx.ec2.Vpc('appVpc', { vpcId })
cool-fireman-90027
11/16/2020, 3:25 PM