Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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
```