{"id":26780675,"url":"https://github.com/kaihendry/go-cdk2-hello","last_synced_at":"2025-04-19T10:58:59.598Z","repository":{"id":62382054,"uuid":"527119134","full_name":"kaihendry/go-cdk2-hello","owner":"kaihendry","description":"Deploying Go with AWS CDK2","archived":false,"fork":false,"pushed_at":"2025-03-17T22:11:58.000Z","size":76,"stargazers_count":8,"open_issues_count":3,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-23T22:13:42.610Z","etag":null,"topics":["aws","cdk","go","lambda","serverless"],"latest_commit_sha":null,"homepage":"https://hello.dabase.com","language":"Go","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/kaihendry.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":"2022-08-21T05:57:12.000Z","updated_at":"2025-03-09T16:18:08.000Z","dependencies_parsed_at":"2024-04-29T22:44:14.773Z","dependency_job_id":"0f4433ae-def9-4631-8bba-407dac036ca6","html_url":"https://github.com/kaihendry/go-cdk2-hello","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/kaihendry%2Fgo-cdk2-hello","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaihendry%2Fgo-cdk2-hello/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaihendry%2Fgo-cdk2-hello/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kaihendry%2Fgo-cdk2-hello/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kaihendry","download_url":"https://codeload.github.com/kaihendry/go-cdk2-hello/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246150449,"owners_count":20731419,"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":["aws","cdk","go","lambda","serverless"],"created_at":"2025-03-29T07:17:29.155Z","updated_at":"2025-03-29T07:17:29.655Z","avatar_url":"https://github.com/kaihendry.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go Hello World using AWS CDK 2\n\n## Environment variables in .github/workflows\n\nFor example using DNS validation with wildcard *.dabase.com\n\n    AWSCERT=\"arn:aws:acm:ap-southeast-1:407461997746:certificate/87b0fd84-fb44-4782-b7eb-d9c7f8714908\"\n    DOMAIN=\"hello.dabase.com\"\n\nCI/CD deployment; [you need to adjust _role-to-assume_ for the workflow to work](https://youtu.be/WKzVqFsOBSE), once setup you avoid the need to setup AWS_SECRET_ACCESS_KEY credentials.\n\n# To deploy to the cloud\n\n    npx aws-cdk@2.x deploy\n\n# To develop locally with a live reloader\n\n    cd src\n    go install github.com/cosmtrek/air@latest\n    PORT=3000 air\n    \n# Why?\n\nThere are many ways to deploy a Go application to the AWS Cloud. I've explored them all.\n\n## EC2\n\nCopy across the Go binary and put it behind an ALB or Caddy.\n\nAwkward and isn't serverless.\n\n## Make a Docker image and deploy with Kubernetes\n\nHave you lost your mind? This is incredibly complex and expensive way to deploy a Go application to the Cloud.\n\nGood luck to you and your team.\n\nAnd it's not serverless.\n\n## AWS Serverless Application Model (SAM)\n\nhttps://github.com/kaihendry/aws-sam-gateway-example\n\nAn efficient usage of AWS native Cloudformation that requires Python tooling such as https://github.com/aws/aws-sam-cli\n\n## Apex Up\n\nEasiest though proprietary https://apex.sh/up/\n\n## Terraform\n\nVery awkward and slow to deploy and requires extra tooling.\n\n## AWS CDK\n\nKeep everything in Go, including the Infrastructure as Code.\n\nWarning experimental APIs: https://pkg.go.dev/github.com/aws/aws-cdk-go/awscdkapigatewayv2alpha/v2\n\n# Related\n\n* https://www.go-on-aws.com/infrastructure-as-go/cdk-go/\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaihendry%2Fgo-cdk2-hello","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkaihendry%2Fgo-cdk2-hello","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkaihendry%2Fgo-cdk2-hello/lists"}