https://pulumi.com
Join Slack
Hi all I have this issue where preview keeps failing when I try to run command to import a resource ...
o

Olubusayo Amowe

about 1 year ago
Hi all I have this issue where preview keeps failing when I try to run command to import a resource into an existing pulumi stack. Here's the error
Type                    Name    Plan    Info
pulumi: pulumi: Stack   dev             1 error
- aws:ebs:Volume        id      import  1 error

Diagnostics:
pulumi:pulumi:Stack (dev):

error: Preview failed: 1 error occurred:
* configuring Terraform AWS Provider: no valid credential sources for Terraform AWS Provider found.
AWS Error: failed to refresh cached credentials, no EC2 IMDS role found, operation error ec2imds: GetMetadata, access disabled to EC2 IMDS via client option, or "AWS_EC2_ METADATA DISABLED" environment variable
Any ideas why this might be happening please? I have run the import command on the cli to import an ebs volume, specifying the id of the resource.
pulumi import aws:ebs/volume:Volume id vol-id
and I am expecting a preview and some ts code that should be generated. Here's what I expect
Previewing import (dev)

     Type                 Name        Plan
 +   pulumi:pulumi:Stack  dev         
 =   └─ aws:ebs:Volume     id         import

Resources:
    + 1 to create
    = 1 to import
    2 changes

Do you want to perform this import?
> yes
  no
  details
o
t
  • 2
  • 2
  • 56
This message was deleted.
s

Slackbot

almost 4 years ago
This message was deleted.
s
j
+4
  • 6
  • 12
  • 56
This message was deleted.
s

Slackbot

about 4 years ago
This message was deleted.
➕ 1
1️⃣ 2
s
l
m
  • 3
  • 2
  • 56
This message was deleted.
s

Slackbot

over 4 years ago
This message was deleted.
s
j
+2
  • 4
  • 22
  • 56
This message was deleted.
s

Slackbot

over 4 years ago
This message was deleted.
s
e
t
  • 3
  • 11
  • 56
This message was deleted.
s

Slackbot

over 4 years ago
This message was deleted.
s
m
c
  • 3
  • 6
  • 56
This message was deleted.
s

Slackbot

about 5 years ago
This message was deleted.
s
l
+2
  • 4
  • 10
  • 56
Hey all. I have an interesting one here. Does anyone else here use nix packages manager or NixOS? I ...
a

Andrew Glück

8 months ago
Hey all. I have an interesting one here. Does anyone else here use nix packages manager or NixOS? I have installed pulumi from nix on my mac and my NixOS system. Both have the below warnings. Are these warnings expected with my configuration because of the package manager? If they are normal and I have not inherently broken the world, is there a way that I can suppress them?
warning: using pulumi-resource-docker from $PATH at /etc/profiles/per-user/user/bin/pulumi-resource-docker
    warning: using pulumi-resource-PostgreSQL from $PATH at /etc/profiles/per-user/user/bin/pulumi-resource-postgresql
    warning: using pulumi-resource-aws from $PATH at /etc/profiles/per-user/user/bin/pulumi-resource-aws
    warning: using pulumi-resource-aws from $PATH at /etc/profiles/per-user/user/bin/pulumi-resource-aws
    warning: using pulumi-resource-postgresql from $PATH at /etc/profiles/per-user/user/bin/pulumi-resource-postgresql
a
k
  • 2
  • 4
  • 55
Hey y’all Has anyone tried out running the Pulumi automation API inside an AWS lambda function. Ge...
g

Gus Milner

10 months ago
Hey y’all Has anyone tried out running the Pulumi automation API inside an AWS lambda function. Getting an error
window is not defined
, seems to be occurring when the lambda is starting up. end of stack trace points to this line - https://github.com/pulumi/pulumi/blob/f74a5dfec10c83584e65b3535cbbc138741ba2c5/sdk/nodejs/proto/status_pb.js#L16
g
j
d
  • 3
  • 17
  • 56
This message was deleted.
s

Slackbot

about 2 years ago
This message was deleted.
s
e
m
  • 3
  • 3
  • 55
Previous757677Next

Pulumi Community

No matter how you like to participate in developer communities, Pulumi wants to meet you there. If you want to meet other Pulumi users to share use-cases and best practices, contribute code or documentation, see us at an event, or just tell a story about something cool you did with Pulumi, you are part of our community.

Powered by