Run make all version=1.0
to provision infrastructure and deploy auth lambdas. After infrastructure is provisioned you should create a user manually. To test authorization go to created CloudFront URL and use created user to login.
Run make tf-destroy
to destroy provisioned infrastructure. Note, that you can receive error with the message Lambda was unable to delete...
which is caused by the AWS as it can't destroy replicated edge lambdas in a moment see https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-edge-delete-replicas.html. Retry in an hour and terraform will clean provisioned lambdas.
wurdum / lambda-edge-auth Goto Github PK
View Code? Open in Web Editor NEWTest project to implement Lambda@Edg S3 authorization