Run serverless Helm repositories using the opensource chart museum project.
The AWS serverless implementation runs chartmuseum in a lambda function. Using API Gateway proxy, the lambda captures the raw http request and forwards it to the chartmuseum webserver running inside the lambda.
The webserver is initialised on cold start of the lambda. All subsequent requests do not initialise the webserver unless the lambda environment is destroyed by AWS.
Terraform is used to deploy the solution. The module can be found in deploy/aws.
Steps to deploy chartmuseum:
- Create or select an S3 bucket
- Clone this repository:
https://github.com/digitary/serverless-chartmuseum
- Within the cloned directory, build the solution using the makefile command:
make build-lambda
- Use terraform to call the module in deploy/aws with the S3 bucket provided. See the file in this repo deploy_example/deploy.tf for an example terraform file.
When deploying AWS serverless chartmuseum, the following parameters are supported:
- s3_bucket - A pre-existing bucket to store the helm charts.
- s3_bucket_region - The region the bucket is in.
- basic_auth_user - (Optional) When set, chartmuseum will require basic authentication with the given username
- basic_auth_password - (Optional) The password for the basic authentication user if provided