https://github.com/dedis/go-imports
Go lambda code hosted on AWS to redirect Go module requests
https://github.com/dedis/go-imports
Last synced: about 1 month ago
JSON representation
Go lambda code hosted on AWS to redirect Go module requests
- Host: GitHub
- URL: https://github.com/dedis/go-imports
- Owner: dedis
- Created: 2019-05-10T07:22:42.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2025-03-24T12:53:36.000Z (about 1 year ago)
- Last Synced: 2025-03-24T13:41:10.778Z (about 1 year ago)
- Language: Go
- Size: 19.5 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# DEDIS Go imports
This repository contains the Go lambda hosted on AWS that redirects Go module
requests to the correct repository URL.
## How it works
The domain is redirected to an API Gateway hosted on AWS. This API is configured
so that any request is proxied to a lambda named `dedis-go-imports` also hosted
on AWS.
The Go lambda is using the code of [golang.org](https://github.com/golang/website/blob/master/cmd/golangorg/x.go)
as a base but modified to fit the DEDIS repositories.
## Supported repositories
The domain of the modules is `go.dedis.ch`. The list of repositories supported is in
`main.go`.
## Contribute
First you will need to install the AWS CLI client on your computer. Please use the
following [instructions](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-install.html).
Then you'll need to setup the credentials:
```bash
$ aws configure
AWS Access Key ID [None]: # generate one on AWS
AWS Secret Access Key [None]: # secret of the generated key
Default region name [None]: eu-central-1
Default output format [None]: json
```
You can now deploy your changes using the provided script that will pack the
lambda code in a zip file and upload it to AWS.
```
./deploy.sh
```
Note that this will update the **production** lambda.