AWS Edition
AWS SAM template and function configuration.
visitor_count/
: lambda functionevents/
: JSON tests for visitor count functiontests/
: integration and unit tests for API Gateway and function
S3 bucket static site. Deployed to cloudresume.sergix.dev
GitHub Actions workflows.
sam-pipeline
pytest
for Lambda function and API Gateway in CloudFormation stacksam build
/sam deploy
www
- Upload to S3
- Invalidate CloudFront CDN
AWS_ACCESS_KEY
from IAM user Access Key IDAWS_SECRET_ACCESS_KEY
from IAM user Secret Access KeyAWS_CLOUDFRONT_ID
from AWS CloudFront distribution ID
aws-sam/ $ sam build
aws-sam/ $ sam deploy
www/ $ aws s3 sync ./ s3://BUCKET --delete
www/ $ aws cloudfront create-invalidation --distribution-id $AWS_CLOUDFRONT_ID --paths '/*'
aws-sam/ $ pytest