millions-furniture-75402
06/24/2021, 1:27 PMType Name Plan Info
pulumi:pulumi:Stack outbound-proxy-sandbox.eu-central-1
└─ aws:ec2:LaunchTemplate outbound-proxy-launch-template 1 error
Diagnostics:
aws:ec2:LaunchTemplate (outbound-proxy-launch-template):
error: aws:ec2/launchTemplate:LaunchTemplate resource 'outbound-proxy-launch-template' has a problem: Expected Object Type: Expected object, got string. Examine values at 'LaunchTemplate.IamInstanceProfile'.
I am declaring the object:
const outboundProxyIamInstanceProfile = new aws.iam.InstanceProfile(`${appName}-instance-profile`, {
role: outboundProxyInstanceRole,
});
const outboundProxyLaunchTemplate = new aws.ec2.LaunchTemplate(
`${appName}-launch-template`,
{
namePrefix: `${appName}-`,
iamInstanceProfile: outboundProxyIamInstanceProfile,
...
},
{ dependsOn: outboundProxyIamInstanceProfile },
);
I can define it inline as an object… but then… lol…
aws:iam:InstanceProfile (outbound-proxy-instance-profile):
error: Duplicate resource URN 'urn:pulumi:sandbox.eu-central-1::outbound-proxy::aws:iam/instanceProfile:InstanceProfile::outbound-proxy-instance-profile'; try giving it a unique name
little-cartoon-10569
06/24/2021, 9:46 PMaws.iam.InstanceProfile
. It's an inline object with fields arn and name.const outboundProxyLaunchTemplate = new aws.ec2.LaunchTemplate(
`${appName}-launch-template`,
{
namePrefix: `${appName}-`,
iamInstanceProfile: {
arn: outboundProxyIamInstanceProfile.arn,
name: outboundProxyIamInstanceProfile.name
},
...
},
{ dependsOn: outboundProxyIamInstanceProfile },
);
millions-furniture-75402
06/25/2021, 9:14 PM* Error creating Auto Scaling Group: ValidationError: You must use a valid fully-formed launch template. Security group sg-024a9e83f1b59c229 and subnet subnet-90c3aaba belong to different networks.
status code: 400, request id: f2e7928a-d319-4c5e-ade7-45a4ab5ab974
I’m confused about how to assign the correct subnet ids per instance.little-cartoon-10569
06/27/2021, 8:23 PMmillions-furniture-75402
06/28/2021, 1:01 PMlittle-cartoon-10569
06/28/2021, 8:29 PMmillions-furniture-75402
06/28/2021, 8:34 PMlittle-cartoon-10569
06/28/2021, 8:37 PMmillions-furniture-75402
06/28/2021, 8:43 PMfromExistingId()
, so it could also be related to that.little-cartoon-10569
06/29/2021, 9:33 PM