This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/examples
Andrea Luzzardi cba524eb0f merge Route into Env, rebase dagger compute to use the new API
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2021-03-25 22:29:11 +00:00
..
aws-eks example: added README 2021-03-24 08:46:06 -07:00
aws-monitoring implemented http-monitoring example using AWS Cloudformation and AWS Cloudwatch Synthetics 2021-03-03 17:34:00 -08:00
dagger-dev Rename dagger.#Dir to dagger.#Artifact 2021-03-13 00:11:59 -08:00
kubernetes fix linting errors 2021-03-24 09:36:19 -07:00
react-netlify merge Route into Env, rebase dagger compute to use the new API 2021-03-25 22:29:11 +00:00
README.md example: added README 2021-03-24 08:46:06 -07:00

Dagger Examples

aws-eks: Kubernetes on AWS (EKS)

This example provisions a Kubernetes (EKS) cluster on AWS using Cloudformation, it also outputs the new generated kubeconfig for the kubectl client.

How to run:

dagger compute ./aws-eks \
    --input-string awsConfig.accessKey="MY_AWS_ACCESS_KEY" \
    --input-string awsConfig.secretKey="MY_AWS_SECRET_KEY" \
    | jq -j '.kubeconfig.kubeconfig' > kubeconfig

aws-monitoring: HTTP Monitoring on AWS

This example implements a full HTTP(s) Monitoring solution on AWS using Cloudformation and Cloudwatch Synthetics.

How to run:

dagger compute ./aws-monitoring \
    --input-string awsConfig.accessKey="MY_AWS_ACCESS_KEY" \
    --input-string awsConfig.secretKey="MY_AWS_SECRET_KEY" \

kubernetes: Deploy to an existing Kubernetes cluster

This example shows two different ways for deploying to an existing Kubernetes (EKS) cluster: a simple deployment spec (written in Cue), and a local helm chart.

How to run:

dagger compute ./kubernetes \
    --input-string awsConfig.accessKey="MY_AWS_ACCESS_KEY" \
    --input-string awsConfig.secretKey="MY_AWS_SECRET_KEY" \
    --input-dir helmChart.chart=./kubernetes/testdata/mychart

react-netlify: Deploy a React Web app to Netlify

This example shows how to deploy a simple React App to Netlify.

How to run:

dagger compute ./react-netlify \
    --input-string todoApp.account.token="MY_NETLIFY_API_TOKEN"