Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/chaseconey/sync-fastly-ips
Sync Fastly IPs to AWS Security Group
https://github.com/chaseconey/sync-fastly-ips
aws lambda security-group-rules
Last synced: 11 days ago
JSON representation
Sync Fastly IPs to AWS Security Group
- Host: GitHub
- URL: https://github.com/chaseconey/sync-fastly-ips
- Owner: chaseconey
- Created: 2019-12-17T20:58:16.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-30T19:21:08.000Z (about 2 years ago)
- Last Synced: 2024-11-13T20:42:12.985Z (2 months ago)
- Topics: aws, lambda, security-group-rules
- Language: JavaScript
- Size: 226 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Fastly Public IP Security Group Sync
[![CircleCI](https://circleci.com/gh/chaseconey/sync-fastly-ips.svg?style=svg)](https://circleci.com/gh/chaseconey/sync-fastly-ips)
A small-ish lambda to make sure that a security group has the most up-to-date public IP addresses for Fastly.
After installing the lambda, a new security group will be created called `external-fastly-ips` that will have an up-to-date list of [public Fastly IPs](https://api.fastly.com/public-ip-list).
### Deploy
In order to run this in your account, you simply need to pull down the code and run the serverless CLI to deploy.
- `git clone [email protected]/chaseconey/sync-fastly-ips`
- `npm i`
- `npm install -g serverless`
- `cp serverless-inputs.example.yml serverless-inputs.yml`
- Fill out `serverless-inputs.yml` with personal values
- `serverless deploy`### Resources Created
This serverless deployment will create a few AWS resources to be aware of.
- A CloudFormation Stack
- An AWS Role that has permissions to:
- Create security groups
- Update security groups
- A Lambda function
- A CloudWatch event that will kick off the lambda once per hour### Running Locally
```
sls invoke local -f sync
```### Testing
```
npm test
```