This project contains the source code for AWS Blogs on 🦋 and for Deprecated by AWS bots.
The purpose of these bot is to automatically re-share blog posts published by AWS employees/partners on aws.amazon.com/blogs
- NodeJS 20.x
- Terraform latest version (tested with 1.9.8)
- An AWS account
- A BlueSky account
- Create a password for your account: https://bsky.app/settings/app-passwords
- Build shared dependencies
cd shared
npm install --install-links --cpu=arm64 --os=linux --omit=dev --ignore-scripts
npm run build
- Build the lambda layers
cd bsky-aws-blogs-deprecations-lambda-layer/nodejs
npm install --install-links --cpu=arm64 --os=linux --omit=dev --ignore-scripts --legacy-peer-deps
cd bsky-aws-blogs-fetcher-lambda-layer/nodejs
npm install --install-links --cpu=arm64 --os=linux --omit=dev --ignore-scripts
cd bsky-aws-blogs-lambda-layer/nodejs
npm install --install-links --cpu=arm64 --os=linux --omit=dev --ignore-scripts
- Build the lambda functions:
cd bsky-aws-blogs-deprecations-lambda
npm install
npm run build
cd bsky-aws-blogs-fetcher-lambda
npm install
npm run build
cd bsky-aws-blogs-lambda
npm install
npm run build
- Deploy the infrastructure
cd infra
cp input.tfvars.example input.tfvars
# Fill in the missing values
terraform apply -var-file="input.tfvars"