Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nsakki55/lambda-ses-vpc-endpoints
- Owner: nsakki55
- Created: 2024-12-25T03:54:13.000Z (16 days ago)
- Default Branch: main
- Last Pushed: 2024-12-25T03:58:46.000Z (16 days ago)
- Last Synced: 2024-12-25T04:25:44.700Z (16 days ago)
- Topics: aws, python, terraform
- Language: HCL
- Homepage:
- Size: 0 Bytes
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
```