3

I am running this command

terraformer import aws --resources=lambda --regions=us-east-1

and getting the following error:

2022/12/28 12:35:19 aws error initializing resources in service lambda, err: operation error Lambda: GetPolicy, https response error StatusCode: 404, RequestID: xxxxx-xxxxx-xxxxx-xxxxx, ResourceNotFoundException: The resource you requested does not exist.

can someone assist?

I have checked that i can pull the lambdas using aws cli and i am getting them properly

Marko E
  • 13,362
  • 2
  • 19
  • 28
Pitbull
  • 31
  • 1

1 Answers1

0

It's an open issue, probably related to failing on finding the first lambda with no resource policy (inline policy doesn't cut it apparently). so, if you can put a resource policy on all your lambdas you should get it to work.

See the thread here: https://github.com/GoogleCloudPlatform/terraformer/issues/1599