modern-belgium-42936
09/02/2021, 11:04 PMpulumi import aws:ec2/instance:Instance github-runner-1 <instance-id>
I am met with the error:
Previewing import (dev)
View Live: <https://app.pulumi.com/lwooden/github-runners/dev/previews/d953777e-c02b-4d34-8718-8382479da9e1>
Type Name Plan Info
+ pulumi:pulumi:Stack github-runners-dev create 1 error
= └─ aws:ec2:Instance github-runner-1 import 4 errors
Diagnostics:
pulumi:pulumi:Stack (github-runners-dev):
error: preview failed
aws:ec2:Instance (github-runner-1):
error: aws:ec2/instance:Instance resource 'github-runner-1' has a problem: AtLeastOne: "launch_template": one of `ami,instance_type,launch_template` must be specified. Examine values at 'Instance.LaunchTemplate'.
error: aws:ec2/instance:Instance resource 'github-runner-1' has a problem: AtLeastOne: "ami": one of `ami,launch_template` must be specified. Examine values at 'Instance.Ami'.
error: aws:ec2/instance:Instance resource 'github-runner-1' has a problem: AtLeastOne: "instance_type": one of `instance_type,launch_template` must be specified. Examine values at 'Instance.InstanceType'.
error: Preview failed: one or more inputs failed to validate
Doing a describe instance via the aws cli clearly shows that all of the above fields (ami, instance_type, etc) exists for this resources so I am at a lost as to why pulumi is having issue picking them up 😞
Any pointers would be great. I've exhausted the documentation and have spent hours on thislittle-cartoon-10569
09/02/2021, 11:12 PMmodern-belgium-42936
09/03/2021, 12:00 PMlittle-cartoon-10569
09/05/2021, 9:42 PMnumerous-pharmacist-73685
09/18/2021, 10:43 AMmodern-belgium-42936
09/25/2021, 11:30 AMgentle-rocket-97330
11/04/2021, 7:44 PM