https://pulumi.com logo
#general
Title
# general
s

stocky-spoon-28903

12/04/2019, 3:12 PM
How is the launch configuration defined?
w

white-balloon-205

12/04/2019, 3:20 PM
@high-jackal-29091 sounds like you are using
awsx
. I believe that library does currently include some defaults that are probably not appropriate here which may be causing this problem - you could pass
rootBlockDevice: null
and
ebsBlockDevices: null
to
new awsx.autoscaling.AutoScalingLaunchConfiguration
to avoid getting those defaults - does that solve this? If so - fixing this is part of https://github.com/pulumi/pulumi-awsx/issues/340 - please do upvote that one.
h

high-jackal-29091

12/05/2019, 9:33 AM
Hey Luke, unfortunately I cannot do it in typescipt
Type 'null' is not assignable to type 'LaunchConfigurationRootBlockDevice | Promise<LaunchConfigurationRootBlockDevice> | OutputInstance<LaunchConfigurationRootBlockDevice> | undefined'.
I can try with undefined though
This solved my problem:
rootBlockDevice: {
                
volumeSize: 275,
                
volumeType: "gp2",
            
},
Thank you very much Luke
w

white-balloon-205

12/05/2019, 6:08 PM
Great - definitely something we need to fix the defaults on - but glad it was possible to get working.