Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/nsakki55/lambda-ses-vpc-endpoints

Sample project for invoking amazon SES from lambda in private subnet
https://github.com/nsakki55/lambda-ses-vpc-endpoints

aws python terraform

Last synced: 9 days ago
JSON representation

Sample project for invoking amazon SES from lambda in private subnet

Awesome Lists containing this project

README

        

# Invoke SES via VPC Endpoint from lambda function in private subnet
Sample project for invoking SES from lambda in private subnet.
# Architecture
System architecture covered in this project is as follows.
![architecture](./img/architecture.jpeg)

# Setup Environment Variable
Please set the following environment variables before deploying the infrastructure.
- AWS_ACCOUNT_ID: target aws account for creating resources by terraform
- AWS_REGION: target aws region for deploying lambda and ses resources
- DOMAIN: domain name for creating ses domain identity
- FROM_ADDRESS: from email address for email set by lambda
- TO_ADDRESS: to email address for email set by lambda
```
$ export AWS_ACCOUNT_ID=
$ export AWS_REGION=
$ export DOMAIN=
$ export FROM_ADDRESS=
$ export TO_ADDRESS=
```

# Deploy AWS Resources
```
$ cd terraform
$ terraform init
$ terraform apply -var="aws_account_id=$AWS_ACCOUNT_ID" -var="aws_region=$AWS_REGION" -var="domain=$DOMAIN"
```

# Deploy Lambda Function
```
$ make build
$ make push
```