{"id":16905130,"url":"https://github.com/hyperbrain/serverless-aws-alias-example","last_synced_at":"2025-04-11T14:43:57.102Z","repository":{"id":78212343,"uuid":"92286592","full_name":"HyperBrain/serverless-aws-alias-example","owner":"HyperBrain","description":"Example project for the Serverless alias plugin","archived":false,"fork":false,"pushed_at":"2017-07-19T15:03:17.000Z","size":60,"stargazers_count":17,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T10:51:11.817Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HyperBrain.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2017-05-24T11:49:30.000Z","updated_at":"2023-11-06T04:46:36.000Z","dependencies_parsed_at":"2023-03-07T18:45:44.873Z","dependency_job_id":null,"html_url":"https://github.com/HyperBrain/serverless-aws-alias-example","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyperBrain%2Fserverless-aws-alias-example","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyperBrain%2Fserverless-aws-alias-example/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyperBrain%2Fserverless-aws-alias-example/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HyperBrain%2Fserverless-aws-alias-example/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HyperBrain","download_url":"https://codeload.github.com/HyperBrain/serverless-aws-alias-example/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248420649,"owners_count":21100441,"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","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-13T18:37:16.573Z","updated_at":"2025-04-11T14:43:57.095Z","avatar_url":"https://github.com/HyperBrain.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless test project\n\nThis project uses some central functionality of Serverless and\nshows how the alias plugin works.\n\nYou can deploy the available branches `master` and `warmup-apig` to different\naliases. The branches have different configurations:\n\n### master\n\nSimple Lambda function + DynamoDB table + DynamoDB event source\n\n### warmup-apig\n\nThe warmup branch simulates feature development in a project perspective as well\nas developer changes in the Serverless configuration.\n\nThe DynamoDB is removed in this branch, APIG endpoints are added and the warmup\nplugin has been added to serverless yml.\n\nThis branch can be deployed to a separate alias without destroying anything\nthat is deployed on master. Branch development in master and warmup can even\nget more different over time.\n\n### sns-topic\n\nThis branch adds a SNS subscription event to one of the functions. It shows how\nthe alias plugin will handle these when deployed to different aliases.\n\n### authorizer\n\nThis branch deploys a custom authorizer and attaches it to the func1 GET method.\nYou can call GET https://XXXXXXXXX.execute-api.us-east-1.amazonaws.com/auth/func1\nwith an Authorization header set to an arbitrary value. The function will echo\nthe incoming event object, that contains the results of the authorizer under\n`requestContext.authorizer`.\n\n### Deploying the system\n\nCheckout the master branch and deploy the stage without specifying an alias (i.e.\nthe branch gets deployed into the master/stage alias `dev`).\n\n```\ngit checkout master\nnpm install\nnode ./node_modules/serverless/bin/serverless deploy\n```\n\nCheckout the warmup branch and deploy it to a different alias\n\n```\ngit checkout warmup-apig\nnpm install\nnode ./node_modules/serverless/bin/serverless deploy --alias=warmup\n```\n\n```\ngit checkout sns-topic\nnpm install\nnode ./node_modules/serverless/bin/serverless deploy --alias=sns\n```\n\nAfterwards you will have everything deployed in your AWS account. The functions\nfor the different aliases are labeled (aliased) with the alias name.\nSee the documentation of the alias plugin for details.\n\n\n\nAttention: The project will create resources in your AWS account. These will\ngenerate costs. You should delete the created resources (CF stacks) if you do\nnot need them anymore.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperbrain%2Fserverless-aws-alias-example","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhyperbrain%2Fserverless-aws-alias-example","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhyperbrain%2Fserverless-aws-alias-example/lists"}