Commit graph

20 commits

Author SHA1 Message Date
b9d4623d63 chore: add CI/CD tooling and project configuration
- Add commit-message-generator skill for standardized commit messages
 - Add buildspec.yml for CodeBuild Docker image build process
 - Add build-artifact.sh script for creating deployment packages
 - Add .gitignore to exclude zip files from version control
2026-01-04 12:47:40 +09:00
5e9c27cbf7 feat: enhance Lambda function configuration and add outputs
- Add parameters for source bucket, repo URL, and branch
- Increase timeout to 300s and memory to 512MB
- Add ARM64 architecture support
- Add S3 GetObject and ListBucket permissions
- Use ImportValue for ECR repository ARN
- Add resource names for better identification
- Export API endpoint, Lambda ARN, and function name
2026-01-04 12:46:05 +09:00
639044388f feat: add ECR lifecycle policy and additional outputs
- Add lifecycle policy to keep only last 10 images
- Export repository ARN and name for cross-stack references
2026-01-04 12:45:08 +09:00
45c77bab2b feat: add CodePipeline for Lambda deployment automation
- Add CodeBuild project for building and pushing Docker images
- Add CodePipeline with S3 source and build stages
- Add EventBridge rule to trigger pipeline on S3 object creation
- Configure IAM roles and policies for pipeline execution
2026-01-04 12:44:31 +09:00
2ebcc5541e refactor: improve Lambda handler and update Go to 1.25.5
- Update Dockerfile: Go 1.25.5, fix build context paths
- Use git archive instead of zip to exclude .git directory
- Add context support for git/zip operations (timeout control)
- Optimize git clone (--depth 1, --single-branch)
- Improve error handling (%w wrapping) and logging consistency
- Add case-insensitive HTTP header lookup for webhooks
2026-01-04 10:02:12 +09:00
621b9f006e feat(cicd): enable S3-triggered CodePipeline and align IAM/ECR integration
- enable EventBridge notifications on source S3 bucket
- trigger CodePipeline execution on source.zip updates
- fix artifact bucket ARN substitutions
- extend CodePipeline role permissions for S3, CodeBuild, and approvals
- allow Lambda to pull images from ECR via repository policy
- export ECR repository URI and reference it from Lambda
2026-01-01 11:18:26 +09:00
0c9a8feb9f Add project overview and infrastructure description to README 2025-12-31 19:33:55 +09:00
0b67765510 Restructure project layout and add ECR repository CloudFormation template
- Move application entrypoint to cmd/lambda/
- Move Dockerfile to docker/ for clearer build context separation
- Promote go.mod/go.sum to project root
- Move CloudFormation templates under infra/cfn/ for consistent infra layout
- Add new template-container-repository.yaml defining ECR repository (blog-deployment)
- Move Lambda test files to test/ directory
2025-12-31 19:24:08 +09:00
aa1f4a91bf feat: change cloudformation templates of cloudfront and codepipeline 2025-05-14 21:25:42 +09:00
c352d43605 feat: add an origin access control 2025-05-13 20:29:03 +09:00
793fb44aba feat: add a cloudfront distribution to host a static website 2025-05-11 20:33:18 +09:00
414897d9a9 feat: edit a s3 bucket policy to host my blog 2025-05-10 20:48:28 +09:00
73ce84ba2f feat: add a manual approval action in AWS CodePipeline 2025-05-10 20:46:53 +09:00
e7d6113ba4 feat: add Codebuild resources 2025-05-08 20:56:21 +09:00
45028307fd feat: create new Cloudformation template to make a S3 bucket as a source 2025-05-07 20:08:38 +09:00
e5fda53600 feat: add necessary roles and tag 2025-05-07 20:05:21 +09:00
5de667341c feat: add Cloudformation template to make CodePipeline 2025-05-06 20:06:52 +09:00
bba136cb12 feat: add Forgejo webhook trigger support with AWS Secrets Manager 2025-05-05 20:30:59 +09:00
0819ae1a71 Add some unit test and dockerfile 2025-05-04 21:02:44 +09:00
1bee169123 first commit 2025-05-02 21:51:49 +09:00