Skip to content

Commit

Permalink
feat: Ja/cleanup (#36)
Browse files Browse the repository at this point in the history
* feat(aws-ecs-tutorial): rename ecs directory

* feat(aws-eks-tutorial): cleanup

* feat(aws-lambda-tutorial): cleanup
  • Loading branch information
jordan-acosta committed Mar 21, 2024
1 parent 95f7458 commit 77b9be9
Show file tree
Hide file tree
Showing 63 changed files with 407 additions and 46 deletions.
5 changes: 5 additions & 0 deletions aws-ecs-tutorial/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create an AWS ECS BYOC App

This project contains sample code for our [Create an AWS ECS App](https://docs.nuon.co/tutorials/aws-ecs-app-tutorial) guide on our [docs site](https://docs.nuon.co/).

The [./terraform-app-config](./terraform-app-config) directory contains a sample Terraform project for creating an ECS app. The [./components](./components) directory contains the components the app consists of.
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type = "docker_build"
dockerfile = "Dockerfile"
[components.public_repo]
repo = "nuonco/guides"
directory = "create-an-aws-ecs-byoc-app/components/docker-image"
directory = "aws-ecs-tutorial/components/docker-image"
branch = "main"

[[components]]
Expand All @@ -44,7 +44,7 @@ type = "terraform_module"
terraform_version = "1.5.3"
[components.public_repo]
repo = "nuonco/guides"
directory = "create-an-aws-ecs-byoc-app/components/ecs-service"
directory = "aws-ecs-tutorial/components/ecs-service"
branch = "main"
[[components.var]]
name = "service_name"
Expand Down
5 changes: 5 additions & 0 deletions aws-eks-tutorial/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Create an AWS EKS BYOC App

This project contains sample code for our [Create an AWS EKS App](https://docs.nuon.co/tutorials/aws-eks-app-tutorial) guide on our [docs site](https://docs.nuon.co/).

The [./terraform-app-config](./terraform-app-config) directory contains a sample Terraform project for creating an EKS app. The [./components](./components) directory contains the components the app consists of.
2 changes: 1 addition & 1 deletion aws-eks-tutorial/components/docker-image/discover.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"net/http"

"github.com/gin-gonic/gin"
"github.com/nuonco/guides/deploy-to-aws-ecs/components/docker-image/internal/introspection"
"github.com/nuonco/guides/aws-eks-tutorial/components/docker-image/internal/introspection"
)

type discoverEndpoint struct {
Expand Down
20 changes: 10 additions & 10 deletions aws-eks-tutorial/components/docker-image/go.mod
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
module github.com/nuonco/guides/deploy-to-aws-ecs/components/docker-image
module github.com/nuonco/guides/aws-eks-tutorial/components/docker-image

go 1.21.1
go 1.22.1

require (
github.com/gin-gonic/gin v1.9.1
github.com/go-playground/validator/v10 v10.17.0
go.uber.org/zap v1.26.0
github.com/go-playground/validator/v10 v10.19.0
go.uber.org/zap v1.27.0
)

require (
github.com/bytedance/sonic v1.9.1 // indirect
github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311 // indirect
github.com/gabriel-vasile/mimetype v1.4.2 // indirect
github.com/gabriel-vasile/mimetype v1.4.3 // indirect
github.com/gin-contrib/sse v0.1.0 // indirect
github.com/go-playground/locales v0.14.1 // indirect
github.com/go-playground/universal-translator v0.18.1 // indirect
github.com/goccy/go-json v0.10.2 // indirect
github.com/json-iterator/go v1.1.12 // indirect
github.com/klauspost/cpuid/v2 v2.2.4 // indirect
github.com/leodido/go-urn v1.2.4 // indirect
github.com/leodido/go-urn v1.4.0 // indirect
github.com/mattn/go-isatty v0.0.19 // indirect
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
github.com/modern-go/reflect2 v1.0.2 // indirect
Expand All @@ -27,10 +27,10 @@ require (
github.com/ugorji/go/codec v1.2.11 // indirect
go.uber.org/multierr v1.10.0 // indirect
golang.org/x/arch v0.3.0 // indirect
golang.org/x/crypto v0.9.0 // indirect
golang.org/x/net v0.10.0 // indirect
golang.org/x/sys v0.8.0 // indirect
golang.org/x/text v0.9.0 // indirect
golang.org/x/crypto v0.19.0 // indirect
golang.org/x/net v0.21.0 // indirect
golang.org/x/sys v0.17.0 // indirect
golang.org/x/text v0.14.0 // indirect
google.golang.org/protobuf v1.30.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)
40 changes: 20 additions & 20 deletions aws-eks-tutorial/components/docker-image/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ github.com/chenzhuoyu/base64x v0.0.0-20221115062448-fe3a3abad311/go.mod h1:b583j
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gabriel-vasile/mimetype v1.4.2 h1:w5qFW6JKBz9Y393Y4q372O9A7cUSequkh1Q7OhCmWKU=
github.com/gabriel-vasile/mimetype v1.4.2/go.mod h1:zApsH/mKG4w07erKIaJPFiX0Tsq9BFQgN3qGY5GnNgA=
github.com/gabriel-vasile/mimetype v1.4.3 h1:in2uUcidCuFcDKtdcBxlR0rJ1+fsokWf+uqxgUFjbI0=
github.com/gabriel-vasile/mimetype v1.4.3/go.mod h1:d8uq/6HKRL6CGdk+aubisF/M5GcPfT7nKyLpA0lbSSk=
github.com/gin-contrib/sse v0.1.0 h1:Y/yl/+YNO8GZSjAhjMsSuLt29uWRFHdHYUb5lYOV9qE=
github.com/gin-contrib/sse v0.1.0/go.mod h1:RHrZQHXnP2xjPF+u1gW/2HnVO7nvIa9PG3Gm+fLHvGI=
github.com/gin-gonic/gin v1.9.1 h1:4idEAncQnU5cB7BeOkPtxjfCSye0AAm1R0RVIqJ+Jmg=
Expand All @@ -19,8 +19,8 @@ github.com/go-playground/locales v0.14.1 h1:EWaQ/wswjilfKLTECiXz7Rh+3BjFhfDFKv/o
github.com/go-playground/locales v0.14.1/go.mod h1:hxrqLVvrK65+Rwrd5Fc6F2O76J/NuW9t0sjnWqG1slY=
github.com/go-playground/universal-translator v0.18.1 h1:Bcnm0ZwsGyWbCzImXv+pAJnYK9S473LQFuzCbDbfSFY=
github.com/go-playground/universal-translator v0.18.1/go.mod h1:xekY+UJKNuX9WP91TpwSH2VMlDf28Uj24BCp08ZFTUY=
github.com/go-playground/validator/v10 v10.17.0 h1:SmVVlfAOtlZncTxRuinDPomC2DkXJ4E5T9gDA0AIH74=
github.com/go-playground/validator/v10 v10.17.0/go.mod h1:9iXMNT7sEkjXb0I+enO7QXmzG6QCsPWY4zveKFVRSyU=
github.com/go-playground/validator/v10 v10.19.0 h1:ol+5Fu+cSq9JD7SoSqe04GMI92cbn0+wvQ3bZ8b/AU4=
github.com/go-playground/validator/v10 v10.19.0/go.mod h1:dbuPbCMFw/DrkbEynArYaCwl3amGuJotoKCe95atGMM=
github.com/goccy/go-json v0.10.2 h1:CrxCmQqYDkv1z7lO7Wbh2HN93uovUHgrECaO5ZrCXAU=
github.com/goccy/go-json v0.10.2/go.mod h1:6MelG93GURQebXPDq3khkgXZkazVtN9CRI+MGFi0w8I=
github.com/golang/protobuf v1.5.0/go.mod h1:FsONVRAS9T7sI+LIUmWTfcYkHO4aIWwzhcaSAoJOfIk=
Expand All @@ -32,8 +32,8 @@ github.com/json-iterator/go v1.1.12/go.mod h1:e30LSqwooZae/UwlEbR2852Gd8hjQvJoHm
github.com/klauspost/cpuid/v2 v2.0.9/go.mod h1:FInQzS24/EEf25PyTYn52gqo7WaD8xa0213Md/qVLRg=
github.com/klauspost/cpuid/v2 v2.2.4 h1:acbojRNwl3o09bUq+yDCtZFc1aiwaAAxtcn8YkZXnvk=
github.com/klauspost/cpuid/v2 v2.2.4/go.mod h1:RVVoqg1df56z8g3pUjL/3lE5UfnlrJX8tyFgg4nqhuY=
github.com/leodido/go-urn v1.2.4 h1:XlAE/cm/ms7TE/VMVoduSpNBoyc2dOxHs5MZSwAN63Q=
github.com/leodido/go-urn v1.2.4/go.mod h1:7ZrI8mTSeBSHl/UaRyKQW1qZeMgak41ANeCNaVckg+4=
github.com/leodido/go-urn v1.4.0 h1:WT9HwE9SGECu3lg4d/dIA+jxlljEa1/ffXKmRjqdmIQ=
github.com/leodido/go-urn v1.4.0/go.mod h1:bvxc+MVxLKB4z00jd1z+Dvzr47oO32F/QSNjSBOlFxI=
github.com/mattn/go-isatty v0.0.19 h1:JITubQf0MOLdlGRuRq+jtsDlekdYPia9ZFsB8h/APPA=
github.com/mattn/go-isatty v0.0.19/go.mod h1:W+V8PltTTMOvKvAeJH7IuucS94S2C6jfK/D7dTCTo3Y=
github.com/modern-go/concurrent v0.0.0-20180228061459-e0a39a4cb421/go.mod h1:6dJC0mAP4ikYIbvyc7fijjWJddQyLn8Ig3JB5CqoB9Q=
Expand All @@ -53,32 +53,32 @@ github.com/stretchr/testify v1.7.0/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/
github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg=
github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU=
github.com/stretchr/testify v1.8.1/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.2/go.mod h1:w2LPCIKwWwSfY2zedu0+kehJoqGctiVI29o6fzry7u4=
github.com/stretchr/testify v1.8.3 h1:RP3t2pwF7cMEbC1dqtB6poj3niw/9gnV4Cjg5oW5gtY=
github.com/stretchr/testify v1.8.3/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/stretchr/testify v1.8.4 h1:CcVxjf3Q8PM0mHUKJCdn+eZZtm5yQwehR5yeSVQQcUk=
github.com/stretchr/testify v1.8.4/go.mod h1:sz/lmYIOXD/1dqDmKjjqLyZ2RngseejIcXlSw2iwfAo=
github.com/twitchyliquid64/golang-asm v0.15.1 h1:SU5vSMR7hnwNxj24w34ZyCi/FmDZTkS4MhqMhdFk5YI=
github.com/twitchyliquid64/golang-asm v0.15.1/go.mod h1:a1lVb/DtPvCB8fslRZhAngC2+aY1QWCk3Cedj/Gdt08=
github.com/ugorji/go/codec v1.2.11 h1:BMaWp1Bb6fHwEtbplGBGJ498wD+LKlNSl25MjdZY4dU=
github.com/ugorji/go/codec v1.2.11/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg=
go.uber.org/goleak v1.2.0 h1:xqgm/S+aQvhWFTtR0XK3Jvg7z8kGV8P4X14IzwN3Eqk=
go.uber.org/goleak v1.2.0/go.mod h1:XJYK+MuIchqpmGmUSAzotztawfKvYLUIgg7guXrwVUo=
go.uber.org/goleak v1.3.0 h1:2K3zAYmnTNqV73imy9J1T3WC+gmCePx2hEGkimedGto=
go.uber.org/goleak v1.3.0/go.mod h1:CoHD4mav9JJNrW/WLlf7HGZPjdw8EucARQHekz1X6bE=
go.uber.org/multierr v1.10.0 h1:S0h4aNzvfcFsC3dRF1jLoaov7oRaKqRGC/pUEJ2yvPQ=
go.uber.org/multierr v1.10.0/go.mod h1:20+QtiLqy0Nd6FdQB9TLXag12DsQkrbs3htMFfDN80Y=
go.uber.org/zap v1.26.0 h1:sI7k6L95XOKS281NhVKOFCUNIvv9e0w4BF8N3u+tCRo=
go.uber.org/zap v1.26.0/go.mod h1:dtElttAiwGvoJ/vj4IwHBS/gXsEu/pZ50mUIRWuG0so=
go.uber.org/zap v1.27.0 h1:aJMhYGrd5QSmlpLMr2MftRKl7t8J8PTZPA732ud/XR8=
go.uber.org/zap v1.27.0/go.mod h1:GB2qFLM7cTU87MWRP2mPIjqfIDnGu+VIO4V/SdhGo2E=
golang.org/x/arch v0.0.0-20210923205945-b76863e36670/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/arch v0.3.0 h1:02VY4/ZcO/gBOH6PUaoiptASxtXU10jazRCP865E97k=
golang.org/x/arch v0.3.0/go.mod h1:5om86z9Hs0C8fWVUuoMHwpExlXzs5Tkyp9hOrfG7pp8=
golang.org/x/crypto v0.9.0 h1:LF6fAI+IutBocDJ2OT0Q1g8plpYljMZ4+lty+dsqw3g=
golang.org/x/crypto v0.9.0/go.mod h1:yrmDGqONDYtNj3tH8X9dzUun2m2lzPa9ngI6/RUPGR0=
golang.org/x/net v0.10.0 h1:X2//UzNDwYmtCLn7To6G58Wr6f5ahEAQgKNzv9Y951M=
golang.org/x/net v0.10.0/go.mod h1:0qNGK6F8kojg2nk9dLZ2mShWaEBan6FAoqfSigmmuDg=
golang.org/x/crypto v0.19.0 h1:ENy+Az/9Y1vSrlrvBSyna3PITt4tiZLf7sgCjZBX7Wo=
golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU=
golang.org/x/net v0.21.0 h1:AQyQV4dYCvJ7vGmJyKki9+PBdyvhkSd8EIx/qb0AYv4=
golang.org/x/net v0.21.0/go.mod h1:bIjVDfnllIU7BJ2DNgfnXvpSvtn8VRwhlsaeUTyUS44=
golang.org/x/sys v0.0.0-20220704084225-05e143d24a9e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.8.0 h1:EBmGv8NaZBZTWvrbjNoL6HVt+IVy3QDQpJs7VRIw3tU=
golang.org/x/sys v0.8.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/text v0.9.0 h1:2sjJmO8cDvYveuX97RDLsxlyUxLl+GHoLxBiRdHllBE=
golang.org/x/text v0.9.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8=
golang.org/x/sys v0.17.0 h1:25cE3gD+tdBA7lp7QfhuV+rJiE9YXTcS3VG1SqssI/Y=
golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA=
golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ=
golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
google.golang.org/protobuf v1.26.0-rc.1/go.mod h1:jlhhOSvTdKEhbULTjvd4ARK9grFBp09yW+WbY/TyQbw=
Expand Down
4 changes: 2 additions & 2 deletions aws-eks-tutorial/components/docker-image/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (

"github.com/gin-gonic/gin"
"github.com/go-playground/validator/v10"
"github.com/nuonco/guides/deploy-to-aws-ecs/components/docker-image/internal/health"
"github.com/nuonco/guides/deploy-to-aws-ecs/components/docker-image/internal/introspection"
"github.com/nuonco/guides/aws-eks-tutorial/components/docker-image/internal/health"
"github.com/nuonco/guides/aws-eks-tutorial/components/docker-image/internal/introspection"
"go.uber.org/zap"
)

Expand Down
79 changes: 79 additions & 0 deletions aws-eks-tutorial/nuon.my_eks_app.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
version = "v1"

[installer]
name = "My EKS App"
description = "A demo app that runs on EKS."
slug = "my-eks-app"
documentation_url = "https://docs.nuon.co/"
community_url = "https://join.slack.com/t/nuoncommunity/shared_invite/zt-1q323vw9z-C8ztRP~HfWjZx6AXi50VRA"
logo_url = "https://assets-global.website-files.com/62a2c1332b518a9eedc6de2f/651df2030c43865b9b16046b_Group%2048.png"
github_url = "https://github.com/nuonco"
homepage_url = "https://www.nuon.co/"
demo_url = "https://www.nuon.co/"

[sandbox]
terraform_version = "1.5.4"
[sandbox.public_repo]
directory = "aws-eks"
repo = "nuonco/sandboxes"
branch = "main"

[runner]
runner_type = "aws-eks"

[[components]]
name = "docker_image"
type = "docker_build"
dockerfile = "Dockerfile"
[components.public_repo]
repo = "nuonco/guides"
directory = "aws-eks-tutorial/components/docker-image"
branch = "main"

[[components]]
name = "certificate"
type = "terraform_module"
terraform_version = "1.5.3"
[components.public_repo]
repo = "nuonco/guides"
directory = "aws-eks-tutorial/components/certificate"
branch = "main"
[[components.var]]
name = "domain_name"
value = "introspect.{{.nuon.install.sandbox.outputs.public_domain.name}}"
[[components.var]]
name = "zone_id"
value = "{{.nuon.install.sandbox.outputs.public_domain.zone_id}}"

[[components]]
name = "helm_chart"
type = "helm_chart"
chart_name = "introspect"
[components.public_repo]
repo = "nuonco/guides"
directory = "aws-eks-tutorial/components/helm-chart"
branch = "main"
[[components.value]]
name = "image.repository"
value = "{{.nuon.components.docker_image.image.repository.uri}}"
[[components.value]]
name = "image.tag"
value = "{{.nuon.components.docker_image.image.tag}}"
[[components.value]]
name = "api.nlbs.public_domain_certificate"
value = "{{.nuon.components.certificate.outputs.public_domain_certificate_arn}}"
[[components.value]]
name = "api.nlbs.public_domain"
value = "introspect.{{.nuon.install.sandbox.outputs.public_domain.name}}"
[[components.value]]
name = "app_id"
value = "{{.nuon.app.id}}"
[[components.value]]
name = "org_id"
value = "{{.nuon.org.id}}"
[[components.value]]
name = "install_id"
value = "{{.nuon.install.id}}"
[[components.value]]
name = "vpc_id"
value = "{{.nuon.install.sandbox.outputs.vpc.id}}"
3 changes: 3 additions & 0 deletions aws-eks-tutorial/terraform-app-config/app.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resource "nuon_app" "my_eks_app" {
name = "my_eks_app"
}
17 changes: 17 additions & 0 deletions aws-eks-tutorial/terraform-app-config/certificate.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
resource "nuon_terraform_module_component" "certificate" {
app_id = nuon_app.my_eks_app.id
name = "certificate"
connected_repo = {
repo = "nuonco/guides"
directory = "aws-eks-tutorial/components/certificate"
branch = "main"
}
var {
name = "domain_name"
value = "introspect.{{.nuon.install.sandbox.outputs.public_domain.name}}"
}
var {
name = "zone_id"
value = "{{.nuon.install.sandbox.outputs.public_domain.zone_id}}"
}
}
10 changes: 10 additions & 0 deletions aws-eks-tutorial/terraform-app-config/docker_image.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
resource "nuon_docker_build_component" "docker_image" {
app_id = nuon_app.my_eks_app.id
name = "docker_image"
dockerfile = "Dockerfile"
public_repo = {
repo = "nuonco/guides"
directory = "aws-eks-tutorial/components/docker-image"
branch = "main"
}
}
41 changes: 41 additions & 0 deletions aws-eks-tutorial/terraform-app-config/helm_chart.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
resource "nuon_helm_chart_component" "helm_chart" {
app_id = nuon_app.my_eks_app.id
name = "helm_chart"
chart_name = "introspect"
public_repo = {
repo = "nuonco/guides"
directory = "aws-eks-tutorial/components/helm-chart"
branch = "main"
}
value {
name = "image.repository"
value = "{{.nuon.components.docker_image.image.repository.uri}}"
}
value {
name = "image.tag"
value = "{{.nuon.components.docker_image.image.tag}}"
}
value {
name = "api.nlbs.public_domain_certificate"
value = "{{.nuon.components.certificate.outputs.public_domain_certificate_arn}}"
}
value {
name = "api.nlbs.public_domain"
value = "nlb.{{.nuon.install.sandbox.outputs.public_domain.name}}"
}
value {
name = "app_id"
value = "{{.nuon.app.id}}"
}
value {
name = "org_id"
value = "{{.nuon.org.id}}"
}
value {
name = "install_id"
value = "{{.nuon.install.id}}"
}
dependencies = [
nuon_docker_build_component.docker_image.id
]
}
12 changes: 12 additions & 0 deletions aws-eks-tutorial/terraform-app-config/installer.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
resource "nuon_app_installer" "my_eks_app" {
app_id = nuon_app.my_eks_app.id
name = "My EKS App"
description = "A demo app that runs on EKS."
slug = nuon_app.my_eks_app.name
documentation_url = "https://docs.nuon.co/"
community_url = "https://join.slack.com/t/nuoncommunity/shared_invite/zt-1q323vw9z-C8ztRP~HfWjZx6AXi50VRA"
logo_url = "https://assets-global.website-files.com/62a2c1332b518a9eedc6de2f/651df2030c43865b9b16046b_Group%2048.png"
github_url = "https://github.com/nuonco"
homepage_url = "https://www.nuon.co/"
demo_url = "https://www.nuon.co/"
}
1 change: 1 addition & 0 deletions aws-eks-tutorial/terraform-app-config/providers.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
provider "nuon" {}
4 changes: 4 additions & 0 deletions aws-eks-tutorial/terraform-app-config/runner.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
resource "nuon_app_runner" "main" {
app_id = nuon_app.my_eks_app.id
runner_type = "aws-eks"
}
9 changes: 9 additions & 0 deletions aws-eks-tutorial/terraform-app-config/sandbox.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
resource "nuon_app_sandbox" "main" {
app_id = nuon_app.my_eks_app.id
terraform_version = "v1.6.3"
public_repo = {
repo = "nuonco/sandboxes"
branch = "main"
directory = "aws-eks"
}
}
15 changes: 15 additions & 0 deletions aws-eks-tutorial/terraform-app-config/versions.tf
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
terraform {
required_version = ">= 1.3.7"

required_providers {
nuon = {
source = "nuonco/nuon"
version = ">= 0.9.1"
}

utils = {
source = "cloudposse/utils"
version = ">= 0.17.23"
}
}
}
6 changes: 0 additions & 6 deletions aws-lambda-tutorial/components/api-gateway/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ locals {
payload_format_version = "2.0"
timeout_milliseconds = 12000
}

// "DELETE /widgets/{id}" = {
// lambda_arn = var.lambda_function_arn
// payload_format_version = "2.0"
// timeout_milliseconds = 12000
// }
}
}

Expand Down
Loading

0 comments on commit 77b9be9

Please sign in to comment.