polite-napkin-90098
05/16/2023, 4:48 PM// Create the launch template that uses the instance profile and IAM role
const launchTemplate = new aws.ec2.LaunchTemplate("launchTemplate", {
imageId: "ami-0c94855ba95b798c7", // Replace with the desired AMI ID
instanceType: "t2.micro", // Change to desired instance type
instanceProfileName: instanceProfile.name,
// Additional launch template settings can be added here, such as security groups
});
uses instanceProfileName, which the compiler complained about and the docs say doesn't exist.
There is iamInstanceProfile which takes an arn, so I was able to make it work.
I'm not complaining, I do find the AI to be useful, but it is worth noting that its code needs checking.millions-furniture-75402
05/16/2023, 5:17 PMpolite-napkin-90098
05/16/2023, 5:27 PM