{"id":15348129,"url":"https://github.com/ironcore864/lambda-edge-for-cloudfront-blue-green-default-index","last_synced_at":"2025-08-27T07:14:49.881Z","repository":{"id":73865938,"uuid":"216777451","full_name":"IronCore864/lambda-edge-for-cloudfront-blue-green-default-index","owner":"IronCore864","description":null,"archived":false,"fork":false,"pushed_at":"2019-10-22T09:42:12.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-03T00:38:25.643Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/IronCore864.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-10-22T09:42:05.000Z","updated_at":"2019-10-22T09:42:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"29c02236-7e5b-43d0-9de7-209763ca75ef","html_url":"https://github.com/IronCore864/lambda-edge-for-cloudfront-blue-green-default-index","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IronCore864/lambda-edge-for-cloudfront-blue-green-default-index","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Flambda-edge-for-cloudfront-blue-green-default-index","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Flambda-edge-for-cloudfront-blue-green-default-index/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Flambda-edge-for-cloudfront-blue-green-default-index/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Flambda-edge-for-cloudfront-blue-green-default-index/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IronCore864","download_url":"https://codeload.github.com/IronCore864/lambda-edge-for-cloudfront-blue-green-default-index/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IronCore864%2Flambda-edge-for-cloudfront-blue-green-default-index/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":272303227,"owners_count":24910341,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-27T02:00:09.397Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T11:45:00.037Z","updated_at":"2025-08-27T07:14:49.821Z","avatar_url":"https://github.com/IronCore864.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Lambda Edge Function for CloudFront origin-request\n\n- Implements blue/green with single CloudFront distribution with multiple S3 origins\n- Set default index.html object for not only root directory but also sub-directories\n\nAssumption:\n- domain: yourdomain.com\n- blue domain: blue.yourdomain.com\n- green domain: green.yourdomain.com\n- S3 bucket for blue origin: your-blue-bucket\n- S3 bucket for green origin: your-green-bucket\n\n## Dependency\n\n- python3\n\n## Create Deploy Package\n\n```\nrm origin_request.zip\nzip origin_request.zip main.py\n``\n\n## Deploy\n\n```\n# lambda edge only in region us-east-1\naws --region us-east-1 s3 cp origin_request.zip s3://your-s3-bucket-for-lambda-edge-package/\naws --region us-east-1 lambda update-function-code --s3-bucket your-s3-bucket-for-lambda-edge-package --s3-key origin_request.zip --function-name your_lambda_edge_function_name\naws --region us-east-1 lambda publish-version --function-name your_lambda_edge_function_name\n```\n\n## Test\n```\npython3 -m unittest discover test\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironcore864%2Flambda-edge-for-cloudfront-blue-green-default-index","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fironcore864%2Flambda-edge-for-cloudfront-blue-green-default-index","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fironcore864%2Flambda-edge-for-cloudfront-blue-green-default-index/lists"}