https://pulumi.com logo
Title
g

green-oxygen-82594

04/10/2023, 7:37 AM
what am I missing? of course arn:aws:iam::225051786593:role/service-role/eyal_lambda_role exists in AWS (I had to take it from somewhere :)). pulumi import "aws:iam/role:Role" eyallambdarole arn:aws:iam::225051786593:role/service-role/eyal_lambda_role Previewing import (eyal) Type Name Plan Info pulumi😛ulumi:Stack backend-stacks-eyal 1 error = └─ aws:iam:Role eyallambdarole import 1 error Diagnostics: aws:iam:Role (eyallambdarole): error: Preview failed: refreshing urn😛ulumi:eyal::backend-stacks::aws:iam/role:Role::eyallambdarole: 1 error occurred: * error reading IAM Role (arn:aws:iam::225051786593:role/service-role/eyal_lambda_role): ValidationError: The specified value for roleName is invalid. It must contain only alphanumeric characters and/or the following: +=,.@_- status code: 400, request id: d9eb1591-fcf1-4fdb-9736-7fda8363329b pulumi😛ulumi:Stack (backend-stacks-eyal): error: preview failed
m

melodic-tomato-39005

04/10/2023, 1:52 PM
Hi Eyal! Based on this page, it seems the
id
should just be “eyal_lambda_role”. That would explain the invalid characters error.
g

green-oxygen-82594

04/11/2023, 9:45 AM
You are right, it passed now, Thanks!! I was sure it needs to get the full ARN path.
got another one... pulumi import "aws😒qs/queue:Queue" eyal_sqs arn:aws:sqs:eu-west-1:225051786593:eyal_sqs Previewing import (eyal) Type Name Plan Info pulumi😛ulumi:Stack backend-stacks-eyal 1 error = └─ aws😒qs:Queue eyal_sqs import 1 error Diagnostics: aws😒qs:Queue (eyal_sqs): error: Preview failed: refreshing urn😛ulumi:eyal::backend-stacks::aws:sqs/queue:Queue::eyal_sqs: 1 error occurred: * error reading SQS Queue (arn:aws:sqs:eu-west-1:225051786593:eyal_sqs): InvalidAddress: The address arn:aws:sqs:eu-west-1:225051786593:eyal_sqs is not valid for this endpoint. status code: 404, request id: b764db23-234b-595e-b62a-878c0c906c20 pulumi😛ulumi:Stack (backend-stacks-eyal): error: preview failed