Open mehrenreich opened 4 years ago
Hey Michael, this appears to be a bug in our typeToSheet method where it seems we're missing *elbv2.LoadBalancer
. We have future intent on refactoring this project to remove the need for a such a function, however, we can get this resolved fairly quickly.
@mehrenreich Thanks for opening this ticket and adding the logs. We were able to identify the problem pretty quickly with the log data you provided and are working on a fix which is being tracked in Issue #39. I've added the enhancement tag to this issue and we are going to put this in our backlog. We're currently using Go's standard log package which doesn't have leveled logs. We're going to be looking at some alternative logging packages that provide optional logging levels.
@mehrenreich v0.1.4 should contain the fix for this bug, if you want to give that release a shot and see if it works better.
Hi @bryanlalexander ,
thanks for the update! I modified my config a bit to make the new version work, now I run into a completely different error:
START RequestId: c6ee7f6d-c3e0-4b02-9c1e-73d5eb87b5a4 Version: $LATEST
fork/exec /var/task/grace-inventory-lambda: permission denied: PathError
null
END RequestId: c6ee7f6d-c3e0-4b02-9c1e-73d5eb87b5a4
REPORT RequestId: c6ee7f6d-c3e0-4b02-9c1e-73d5eb87b5a4 Duration: 1.12 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 30 MB Init Duration: 1.57 ms
main.tf:
module "inventory" {
source = "github.com/GSA/grace-inventory?ref=v0.1.4"
source_file = "files/grace-inventory-lambda.zip"
appenv = "production"
project_name = "XXX"
}
inventory git:master ❯ tree .
├── files
│ └── grace-inventory-lambda.zip
└── main.tf
1 directory, 2 files
Hi @bryanlalexander,
after building the artefacts manually and not using the downloaded zip file, it works now! Now there are only some permission issues, but nothing you should take care about.
Thanks for your help!
Thanks for the update @mehrenreich, yeah I bet I screwed up the release process. We'll get the binary updated tomorrow when everyone is back in the office. The permission issues may be related to the terraform, if you're seeing particular commands that aren't being allowed during the execution of the lambda. Feel free to post any of those you think are related to issues in this repository.
@bryanlalexander I re-released v0.1.4 with a re-compiled binary.
I've implemented the module as shown in the examples (using 'self' as well as within the organization from a master account). All resources have been created successfully, but when I invoke the Lambda function either manually or via Cron scheduler, no report is created.
An error message is shown in the Cloudwatch logs, but nothing I can really work with. Is there a way to increase the verbosity and/ or enable DEBUG information?