Little AWS Lambda to validate links in awesome projects. Uses the Lamby gem for simple Rails & AWS Lambda intgration along with the awesome_bot gem.
If you have these installed skip this setp. However, each are fairly easy on Macs using Homebrew. For other platforms or first time installers, please follow the full guides and configure your AWS CLI before proceeding.
$ brew install awscli
$ brew tap aws/tap
$ brew install aws-sam-cli
You can change this in your bin/deploy
script or use the CLOUDFORMATION_BUCKET
environment varable.
aws s3 mb "s3:https://lamby.cloudformation.awesomebotlambda"
Create the SSM Parameter store for the RAILS_MASTER_KEY
. WARNING: This is checked into git source only so I can share this project. Please change/delete if you fork it.
aws ssm put-parameter \
--name "/config/awesomebotlambda/env/RAILS_MASTER_KEY" \
--type "SecureString" \
--value $(cat config/master.key)
Use the local deploy script to package and deploy with AWS SAM.
$ ./bin/deploy
To see your newly created Lambda's API Gateway URL, run the following. This will describe the CloudFormation stack we just deployed and the Outputs
from that template.
aws cloudformation describe-stacks \
--stack-name "awesomebotlambda-production-us-east-1" | \
grep OutputValue | \
grep https