https://github.com/jason-dour/net-snmp-aws-lambda-layer
AWS Lambda Layer for Net SNMP Tools
https://github.com/jason-dour/net-snmp-aws-lambda-layer
aws aws-lambda aws-lambda-layer cloud lambda lambda-layer snmp
Last synced: about 1 month ago
JSON representation
AWS Lambda Layer for Net SNMP Tools
- Host: GitHub
- URL: https://github.com/jason-dour/net-snmp-aws-lambda-layer
- Owner: jason-dour
- License: bsd-2-clause
- Created: 2020-01-15T22:22:52.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2021-09-15T00:34:46.000Z (over 3 years ago)
- Last Synced: 2024-11-02T06:33:40.840Z (6 months ago)
- Topics: aws, aws-lambda, aws-lambda-layer, cloud, lambda, lambda-layer, snmp
- Language: Shell
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-layers - `jason-dour/net-snmp-aws-lambda-layer`
README
# net-snmp-aws-lambda-layer
AWS Lambda Layer for Net SNMP Tools.
## Why SNMP?!
Because.
To be more clear: because I needed it as a cloud guy who works hard to integrate on-premises infrastructure with cloud. And SNMP is a reasonable way for a Lambda to extract information from decades of existing on-premises infrastructure.
This is why SNMP. :)
## Building the Layer
1. Make certain you have the `jasondour/amazonlinux-gcc-devel` Docker image needed to build the layer.
``` shell
$ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
jasondour/amazonlinux-gcc-devel latest 64ff20963c0a 7 minutes ago 668MB
```1. If you do not have the images, just pull them with a `docker pull` command.
1. Confirm the build directory is clean.
``` shell
$ ls -1
Dockerfile
LICENSE
README.md
build.sh
```1. Then execute the docker `jasondour/amazonlinux-gcc-devel` image to run the build script.
``` shell
docker run --rm -it -v `pwd`:/tmp/repo jasondour/amazonlinux-gcc-devel /tmp/repo/build.sh
```## Deploy the Layer
Once the layer zip file is created, you can deploy it to your AWS account with the following command:
``` shell
aws lambda publish-layer-version --layer-name "net-snmp-58" --description "Net-SNMP Utilities for All Runtimes" --license-info "BSD-2-Clause" --zip-file "fileb://net-snmp-5.8.zip"
```