https://pulumi.com logo
#getting-started
Title
# getting-started
a

acoustic-state-79068

08/16/2021, 11:43 AM
Hey there! I am trying out pulumi as a potential alternative for provisioning stuff on AWS via bash scripts and cdk. We already have a lot of resources and I wanted to import a loadbalancer, but I am struggeling to figure out how the import resource name is constructed. I tried the import command over here: https://www.pulumi.com/docs/guides/adopting/import/#pulumi-import-command with something like
aws:elasticloadbalancing:loadbalancer/LoadBalancer
(and other variations) without any success. Is there a logical scheme for building those strings? Sample error message
Copy code
pulumi import aws:elasticloadbalancing:loadbalancer/LoadBalancer xxxxxxxx xxxxxxxx
Previewing import (dev)

View Live: <https://app.pulumi.com/xxxxxx/cyanite-api/dev/previews/e94fxxxd-36c4-4xxb-932e-xxx564bef403>

     Type                                                   Name                Plan       Info
 +   pulumi:pulumi:Stack                                    xxxxxxxx            create     1 error
 =   └─ aws:elasticloadbalancing:loadbalancer/LoadBalancer  xxxxxxxx            import     1 error
 
Diagnostics:
  pulumi:pulumi:Stack (xxxxxxxxxxxx):
    error: preview failed
 
  aws:elasticloadbalancing:loadbalancer/LoadBalancer (xxxxxxxxxxxxxx):
    error: Preview failed: unrecognized resource type (Read): aws:elasticloadbalancing:loadbalancer/LoadBalancer
f

fast-florist-41572

08/16/2021, 1:30 PM
@acoustic-state-79068 its best to check resource definitions in the pkg and at the bottom is usually a Import section that explains how to import something
🙌 1
1
Thats the url for the aws import loadbancer
3 Views