mlevit / aws-auto-cleanup

Programmatically delete AWS resources based on an allowlist and time to live (TTL) settings
MIT License
495 stars 55 forks source link

Deploying of api throws an error Rest API id could not be resolved. #99

Closed membra closed 2 years ago

membra commented 2 years ago

Hello,

While trying to set up a pipeline to deploy and run aws-auto-cleanup noticed that when deploying api component

npm run deploy -- --region ap-southeast-2

the stack looks to be deployed fine, all resources inside it as well

But in the very end npm throws this error: Rest API id could not be resolved.

and exits with status 1 (error)

Attaching full log: apideploylogs.txt

When I was deploying initially from local machine it didn't matter much as I checked that it deployed fine and was working after that, But now it is failing pipeline because of that.

What exactly is it trying to resolve and why? Thanks!

membra commented 2 years ago

The error seems to have disappeared when I removed following from serverless.yml

tracing: apiGateway: true lambda: true

Any requirements from the aws-auto-cleanup to have it?

mlevit commented 2 years ago

Hey @membra thanks for raising this, I'm currently taking a little break and will be back in a week or so to look into this.

mlevit commented 2 years ago

@membra is this still an issue for you? I've upgraded to Serverless V3, not sure if that changes anything or not.