-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
awsweeper running in Lambda issue #105
Comments
Hi @showerlee,
Cheers. |
Hi @jckuester ,
|
Is it actually the new version https://github.com/jckuester/awsweeper/releases/tag/v0.9.0 that you are using here? |
Yes, it should be the newest version. otherwise the new tag feature will not be workable. |
Sorry for my late replies. I fixed the panic in https://github.com/jckuester/awsweeper/releases/tag/v0.10.0. Can you try if the new version makes any difference? For the offline mode, I first have to make some changes, so that this can work. I'll let you know when I am done and give you a more detailed instruction. Unfortunately, I didn't find time yet to start a lambda myself and reconstruct the problem. |
Thanks @jckuester Much appreciate. |
Just letting you know that the offline mode is coming in PR #116 and is released soon. Hope that will help to get rid of the NAT gateway. |
Released in v0.10.2. For offline mode, please copy the Terraform AWS provider binary (https://releases.hashicorp.com/terraform-provider-aws/2.68.0/) to |
Hi @jckuester, I just have a specific scenario
I want to run the awsweeper in AWS Lambda.
Things are quite good if I just deploy each Lambda with awsweeper in different region
And awsweeper is working as expected in each Lambda of regions
But for cost reason, setup 4 NAT GATEWAY for Lambda use in each region is quite expensive as awsweeper need to download something when running the CMD in Lambda
So I just try to setup 1 Lambda in a region basically running 4 CMD cleanup for save cost purpose with following:
But I got the issue in CloudWatch Loggroup which implies CMD not running correctly.
The above 4 CMD is running good in my local laptop.
So just want to know if something happen with the code that is not compatible for executing CMD with
--region ap-northeast-1
and this specific region is not what Lambda deployed in.i.e. I run
./bin/awsweeper --region ap-northeast-1 --dry-run ./config/aws_resource.yml
in one Lambda and the Lambda is deployed in ap-northeast-2The Lambda role is quite loose as I give Lambda most power to running anything, so I think this error is not related to permission issue.
The text was updated successfully, but these errors were encountered: