Nuon apps are versions of your application code and infrastructure that can be deployed into a customer cloud account. Please refer to the Terraform reference for full configuration options.

Nuon is designed to lift and shift your existing application and infrastructure code, so you can quickly create one or more B.Y.O.C. deployable versions of your product.

In most cases, setting up your app should only take an afternoon.

What Is An App?

When you first set up Nuon, you will map your existing product into one or more apps. A Nuon app is a fully configured version of your product that can be installed into your customer’s cloud account.

Each Nuon app consists of the following parts:

  • sandbox - The base infrastructure layer
  • runner - The Nuon service that manages the install
  • inputs - Customer-provided input values
  • components - Your application and infrastructure

Nuon is designed so you can lift and shift your existing application and infrastructure into new deployment options. Most Nuon users will create multiple apps to offer different “flavors” of B.Y.O.C. to their customers.

App Sandbox

The app sandbox is the base layer of each app and is responsible for setting up any shared infrastructure to configure an install. In most cases, sandboxes consist of the following resources:

  • Basic cloud account access and controls (such as IAM on AWS)
  • Basic network infrastructure (such as an AWS VPC)
  • Compute infrastructure (such as a Kubernetes or ECS cluster)

Read more about sandbox configuration here.

App Inputs

App inputs allow you to define different inputs that customers can provide. This enables you to create “configuration” knobs that your customers can manage to control your application.

App inputs are commonly used to:

  • Allow users to select regions and provide access to an account
  • Customize infrastructure versions, such as pinning a Kubernetes cluster version
  • Re-use existing infrastructure, such as providing a vpc_id that has been granted access

Read more about app inputs here.

App Components

App components are used to connect your existing application and infrastructure code to your Nuon app.

Components allow you to:

  • Import existing images, or build Dockerfiles and sync these artifacts into customer accounts
  • Deploy Helm charts
  • Deploy Terraform code

Nuon apps allow you to create dependencies between components and expose a rich configuration language to share outputs between components for configuration. You can use variables to configure components with the outputs of other components.

App Runner

Nuon deploys an app runner into each install, which is responsible for managing the install. This runner performs the following actions:

  • Deploys new container artifacts and infrastructure
  • Monitors running software
  • Manages releases and updating/deprovisioning parts of the app
  • Handles operations such as logs and more

Read more about app runner config here.

App Management

The CLI exposes many operational commands to manage apps.

To see all available commands, run: nuon apps --help.

Pinning an App

You can pin an app, which will set its ID as a default argument to all app commands. This is helpful to avoid having to pass -a to each command.

nuon apps select

Each example below assumes you have run nuon apps select first.

To show the currently pinned app:

nuon apps current

App Management Commands

Commands for creating, deleting, and viewing apps.

Create an app - Create an app and kickstart a config file.

nuon apps create  \
  --name=your-app

Get an app - Get an app

nuon apps get

List all apps - List all apps

nuon apps list

Rename - Rename an app

nuon apps rename --name=new-name

Configuration

You can view various configs for an app and sync configuration files using the CLI.

Sync - Sync config files

Sync all config files in the current directory:

nuon apps sync

Sync a single config file:

nuon apps sync -c <path-to-config.toml>

Configs - List all config versions for an app

nuon apps configs

Export-terraform - Export the current application configuration as Terraform JSON

nuon apps export-terraform

Runner-config - Print the current runner config

nuon apps runner-config

Sandbox-config - Print the current sandbox config

nuon apps sandbox-config

Input-config - Print the current input config

nuon apps input-config

App Metadata

You can add the following metadata to your application, which is used in installers:

  • display_name
  • description

This metadata can be added via a config file or Terraform:

display_name = "Your App"
description = "your app"