Learn how to package an app for BYOC distribution.
whomami
application and deploying it to an Install.
example-app-configs
repository which includes the eks-simple
App Config versus creating each config file manually. This guide is meant to explain the concepts behind each config file, so you can create your own App Configs in the future.app.nuon.co
inputs.toml
and add the following:
whoami
, but the customer can change it to whatever they want.
aws-eks-sandbox
will provide everything you need to run an EKS, from the EKS cluster down to the VPC.
Your App references these Sandboxes in the sandbox.toml
file.
In the App root directory, create a file named sandbox.toml
and add the following:
enable_nuon_dns
set to true
, the Sandbox will create a Route53 DNS zone for the install, allowing you to access the services deployed in the customer’s AWS account using a Nuon-managed domain. The config uses the Install ID as the subdomain, which will be unique for each install.
The Sandbox expects variables, some of which are defined in the vars
section while others are defined in the sandbox.tfvars
file.
In the App root directory, create a file named sandbox.tfvars
and add the following:
min_size
, max_size
, and desired_capacity
of the EKS cluster.components
and within it, a file named whoami.toml
and add the following:
components
directory, create a file named alb.toml
and add the following:
certificate.toml
and add the following:
kubectl
commands.
In the App root directory, create directory called actions
and within it, a file named simple_action.toml
and add the following to create a random secret in the whoami
namespace:
eks-simple
App Config in the example-app-configs
repository for the remaining and required directory structure and files. The files created above are marked in **.
inputs.toml
file are displayed here, allowing the customer to enter their own values.
After entering the Inputs, click the Create Install button at the bottom of the page to start the Workflow including the creation of an AWS CloudFormation stack link for the customer to open in their AWS account.
error-destroy.sh
script in the Nuon Managed Sandboxes repository that you can use to manually deprovision the Install. This script will remove all resources created by the Install, including the EKS cluster, ALB, certificates, and Route53 DNS records.