{"id":17983540,"url":"https://github.com/techjacker/aws-go-web-stack","last_synced_at":"2025-04-04T02:13:02.470Z","repository":{"id":141450592,"uuid":"47103076","full_name":"techjacker/aws-go-web-stack","owner":"techjacker","description":"Golang web stack deployed with AWS cloudformation, packer and chef-solo","archived":false,"fork":false,"pushed_at":"2016-07-05T14:59:18.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-09T13:37:03.114Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Makefile","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/techjacker.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":"2015-11-30T07:46:25.000Z","updated_at":"2016-07-05T14:59:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"3d5b5a77-2369-40db-b946-4fbaeedeb587","html_url":"https://github.com/techjacker/aws-go-web-stack","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/techjacker%2Faws-go-web-stack","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Faws-go-web-stack/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Faws-go-web-stack/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/techjacker%2Faws-go-web-stack/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/techjacker","download_url":"https://codeload.github.com/techjacker/aws-go-web-stack/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247107828,"owners_count":20884797,"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-29T18:17:35.457Z","updated_at":"2025-04-04T02:13:02.450Z","avatar_url":"https://github.com/techjacker.png","language":"Makefile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aws-go-web-stack\n\n- Go web stack deployed with cloudformation, packer and chef-solo\n- Designed to be run on a buildbox in the cloud\n- Pre-bakes AMI containing application and dependencies with packer for faster deploys\n- Cloudformation template creates a load balanced, auto-scaled stack in your default AWS VPC with 2 nodes running a golang web application of your choice\n\n\n\n\n\n\n\n## Set Up\n\n#### Install\n\t- ruby\n\t- Berkshelf\n\t- packer\n\t- awscli\n\nMake sure you have your AWS credentials set in your shell (access key and secret).\n\n\n\n\n\n\n\n\n\n## Build \u0026 Deploy\n\n#### 1. Bake AMI with packer and upload to AWS\n```\nmake ami\n```\n\n#### 2. Deploy stack with AWS Cloudformation\n\nWill deploy stack to your default VPC.\n\n```\nmake stack-create\n```\n\n#### 3. Visit URL of server in browser\n```\nmake stack-info\n```\n\n#### 4. Delete stack\n```\nmake stack-delete\n```\n\n\n\n\n\n\n\n## Configuration\n\n#### Golang Web Application\n- baked in with packer\n- currently pointing to [go-server-best-buy](https://github.com/techjacker/go-server-best-buy)\n- update the `app_repo` variable in `packer/template.json` to change the application\n\n\n\n\n\n\n\n## To Do\n\n- image baking\n\t- use system d as init process for app and remove bootstrapping in cfm launch config\n\t- turn packer golang shell provisioner into cookbook + add logic for creating binary (ie don't rely on app repo's makefile for this)\n\t- build a chroot EBS AMI for faster deployments\n\t- add check to prevent re-baking image if app source code has not changed\n\n- cloudformation\n\t- create dedicated VPC and subnets for stack in cfm template\n\t- split cfm template into vpc stack and app stack\n\t- create private subnets for app stack\n\t- better logic around handling stack updates\n\t- add cloudwatch logs\n\t- add cpu based scaling up and down policies to auto scaling group\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Faws-go-web-stack","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftechjacker%2Faws-go-web-stack","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftechjacker%2Faws-go-web-stack/lists"}