Skip to main content
Amazon Web Services (AWS) is Tensor9 BYOC’s primary deployment platform and the reference implementation for all service equivalents. Deploying to AWS provides the most complete feature set and serves as the baseline from which other form factors are derived.

Overview

When you deploy an application to AWS customer environments using Tensor9 BYOC:
  • Customer appliances run entirely within the customer’s AWS account
  • Your control plane orchestrates deployments from your dedicated Tensor9 BYOC AWS account
  • Cross-account IAM roles enable your control plane to manage customer appliances with customer-approved permissions
  • Service equivalents compile your origin stack into AWS-native resources (or preserve them if already AWS-based)
AWS appliances use AWS-native services for compute, storage, networking, and observability, so they fit into the AWS environments your customers already run.

Prerequisites

Before deploying appliances to AWS customer environments, ensure:

Your Control Plane

  • Dedicated AWS account for your Tensor9 BYOC control plane
  • Control plane installed - See Installing Tensor9 BYOC
  • Origin stack published - Your application infrastructure defined and uploaded

Customer AWS Account

Your customers must provide:
  • AWS account where the appliance will be deployed
  • IAM roles configured for the four-phase permissions model (Install, Steady-state, Deploy, Operate)
  • VPC and networking configured according to their requirements
  • Sufficient service quotas for your application’s resource needs
  • AWS region where they want the appliance deployed

Your Development Environment

  • AWS CLI installed and configured
  • Terraform or OpenTofu (if using Terraform origin stacks)
  • AWS CloudFormation CLI (if using CloudFormation origin stacks)
  • Docker (if deploying container-based applications)

How AWS appliances work

AWS appliances are deployed using AWS-native services orchestrated by your Tensor9 BYOC control plane.
1

Customer provisions IAM roles

Your customer creates four IAM roles in their AWS account, each corresponding to a permission phase: Install, Steady-state, Deploy, and Operate. These roles define what the Tensor9 BYOC controller in the appliance can do within their environment.The customer configures trust policies that allow the Tensor9 BYOC controller to assume these roles with appropriate conditions (time windows, approval tags, etc.).
2

You create a release for the customer appliance

You create a release targeting the customer’s appliance:
Your control plane compiles your origin stack into a deployment stack tailored for AWS, compiling any non-AWS resources to their AWS service equivalents. The deployment stack downloads to your local environment.
3

Customer grants deploy access

The customer approves the deployment by granting temporary deploy access. This can be manual (updating IAM policy conditions) or automated (scheduled maintenance windows).Once approved, the Tensor9 BYOC controller in the appliance can assume the Deploy role in the customer’s account.
4

You deploy the release

You run the deployment locally against the downloaded deployment stack:
The deployment stack is configured to route resource creation through the Tensor9 BYOC controller inside the customer’s appliance. The controller assumes the Deploy role and creates all infrastructure resources in the customer’s AWS account:
  • VPCs, subnets, security groups
  • EKS clusters, Lambda functions
  • RDS databases, S3 buckets, ElastiCache clusters
  • CloudWatch log groups, IAM roles, Route 53 records
  • Any other AWS resources defined in your origin stack
5

Steady-state observability begins

After deployment, your control plane uses the Steady-state role to continuously collect observability data (logs, metrics, traces) from the customer’s appliance without requiring additional approvals.This data flows to your observability sink, giving you visibility into appliance health and performance.

Permissions model

AWS appliances use a four-phase IAM permissions model that balances operational capability with customer control.

The four permission phases

IAM role structure

Each role is created in the customer’s AWS account with a trust policy that allows the Tensor9 BYOC controller in the appliance to assume it. Example: Deploy role with conditional access
The Tensor9 BYOC controller can only assume the Deploy role when:
  • The DeployAccess tag is set to “enabled”
  • The current time is within the allowed window
Customers control when and how long deploy access is granted. Example: Steady-state role (read-only observability)
The Steady-state role:
  • Can read observability data from resources tagged with the appliance’s t9-appliance-id
  • Cannot modify, delete, or terminate any resources
  • Cannot change IAM policies

Deployment workflow with IAM

1

Customer grants deploy access

Customer approves a deployment by setting the DeployAccess tag to “enabled” and defining a time window. This can be done manually or through automated approval workflows.
2

You execute deployment locally

You run the deployment locally against the downloaded deployment stack:
The deployment stack is configured to route resource creation through the Tensor9 BYOC controller in the appliance.
3

Controller assumes Deploy role and creates resources

For each resource Terraform attempts to create, the Tensor9 BYOC controller inside the appliance assumes the Deploy role and creates the resource in the customer’s account.All infrastructure changes occur within the customer’s account using their Deploy role permissions.
4

Deploy access expires

After the time window expires, the Deploy role can no longer be assumed. Your control plane automatically reverts to using only the Steady-state role for observability.
See Permissions Model for detailed information on all four phases.

Networking

AWS appliances use an isolated networking architecture with a Tensor9 BYOC controller that manages communication with your control plane.

Tensor9 BYOC controller VPC

When an appliance is deployed, Tensor9 BYOC creates an isolated VPC containing the Tensor9 BYOC controller. This VPC is configured with:
  • Internet Gateway: Provides outbound internet connectivity
  • Route to control plane: Establishes a secure channel to your Tensor9 BYOC control plane
  • No ingress ports: The controller VPC does not accept inbound connections - all communication is outbound-only
The Tensor9 BYOC controller uses this secure channel to:
  • Receive deployments: Deployment stacks are pushed from your control plane to the appliance
  • Configure observability pipeline: Set up log, metric, and trace forwarding to your observability sink
  • Receive operational commands: Execute remote operations initiated from your control plane

Outbound-only security model

The Tensor9 BYOC controller in your customer’s appliance is designed to only make outbound connections and not require ingress ports to be opened in your customer’s network perimeter:
This architecture ensures that the customer’s appliance cannot be compromised via inbound network attacks on the controller.

Controller connectivity

The appliance controller’s outbound channel to your control plane is established over the public internet by default. Two private alternatives are additionally available for AWS form factors:
  • AWS PrivateLink. Traffic stays on the private AWS backbone instead of traversing the public internet. PrivateLink appears as a form-factor option unless your vendor controller infrastructure setup specifically opted out of AWS PrivateLink (see vendor setup -noAwsPrivateLinkRdv).
  • Vendor-provided Tailscale. The appliance joins a tailnet that you operate; the handshake travels the tailnet. The appliance-side join is bootstrapped from a pre-auth key you supply when generating the customer’s setup link.
See the customer security model for the underlying handshake, and the Connectivity page for the full set of network paths. When you create an AWS form factor in the vendor portal, you select which of these transports the form factor permits. You may pick as many connectivity options as you are willing to support; when you construct an appliance setup link and assign a form factor to it, you may optionally reduce the set at that time, or defer the choice to the customer by leaving multiple options open.

Application VPC topology

Your application resources run in their own VPC(s), completely separate from the Tensor9 BYOC controller VPC. The application VPC topology is defined entirely by your origin stack - whatever VPC resources you define in your origin stack will be deployed into the appliance. Example: Application VPC with internet-facing load balancer If your origin stack defines a VPC with public subnets, an internet gateway, and a load balancer, that exact topology will be created in the customer’s appliance:
This application VPC topology is deployed alongside the Tensor9 BYOC controller VPC, but they remain completely separate. The controller VPC manages the control plane connection, while the application VPC handles your application’s traffic and resources.

Resource naming and tagging

All AWS resources should incorporate the @namespace annotated variable to ensure uniqueness across multiple customer appliances.

Parameterization pattern

Tags applied by Tensor9 BYOC

You don’t need to tag resources to identify the appliance. When Tensor9 BYOC compiles your origin stack it stamps t9-app-name, t9-app-id, t9-buyer-name, t9-appliance-id, t9-projection-id, t9-release-id, and t9-release-version onto every resource whose provider schema supports tags, merging them with any tags you set yourself:
The t9-appliance-id tag:
  • Enables IAM condition keys to scope permissions to specific appliances
  • Allows CloudWatch filters to isolate telemetry by appliance
  • Helps customers track costs per appliance
  • Facilitates resource discovery by Tensor9 BYOC controllers

Observability

AWS appliances provide observability through CloudWatch, X-Ray, and CloudTrail.

CloudWatch Logs

Application and infrastructure logs flow to CloudWatch Log Groups:
Your control plane uses the Steady-state role to continuously fetch logs:
Logs are forwarded to your observability sink for centralized monitoring.

CloudWatch Metrics

Infrastructure metrics are automatically collected:
  • RDS: Database connections, query latency, storage usage
  • Lambda: Invocations, duration, errors, throttles
  • EKS: Node CPU/memory, pod counts, API server metrics
  • ALB: Request counts, latency, HTTP status codes
Custom application metrics can be published:

AWS X-Ray

Enable distributed tracing for Lambda and containerized applications:
X-Ray traces are accessible through the Steady-state role and forwarded to your observability sink.

CloudTrail auditing

All API calls within the customer’s AWS account are logged to CloudTrail, providing a complete audit trail of what your control plane does:
  • Role assumptions (when Deploy or Operate roles are assumed)
  • Resource creation, modification, deletion
  • Permission denials
  • Configuration changes
Customers have full visibility into your control plane’s actions through their CloudTrail logs.

Artifacts

AWS appliances automatically provision private artifact repositories to store container images and application files deployed by your deployment stacks.

Container images (Amazon ECR)

When you deploy an appliance, Tensor9 BYOC automatically provisions a private ECR repository in the customer’s AWS account to store your container images. Example: Origin stack with ECS service Your origin stack references container images from your vendor ECR repository:
Container copy during deployment When you deploy the deployment stack, Tensor9 BYOC automatically:
  1. Detects the container image reference in your ECS task definition
  2. Provisions a private ECR repository in the appliance (e.g., 987654321098.dkr.ecr.us-east-1.amazonaws.com/myapp-api-000000007e)
  3. Copies the container image from your vendor ECR (123456789012.dkr.ecr.us-west-2.amazonaws.com/myapp-api:1.0.0) to the appliance’s private ECR
  4. Rewrites the deployment stack to reference the appliance-local ECR repository
The compiled deployment stack will contain:
This ensures the container image is stored locally in the customer’s account and the application doesn’t depend on cross-account access to your vendor ECR. Artifact lifecycle Container artifacts are tied to the deployment stack lifecycle:
  • Deploy (tofu apply): Tensor9 BYOC copies the container image from your vendor ECR to the appliance’s private ECR
  • Destroy (tofu destroy): Deleting the deployment stack also deletes the copied container artifact from the appliance’s private ECR
This ensures that artifacts are cleaned up when deployments are removed, preventing orphaned resources.

Lambda deployment packages (S3)

For Lambda functions, Tensor9 BYOC supports copying Lambda deployment packages (zip files) from S3. This follows the same copy pattern as container images:
During deployment, Tensor9 BYOC:
  1. Provisions a private S3 bucket in the appliance for Lambda artifacts
  2. Copies the Lambda zip file from your vendor S3 bucket to the appliance’s S3 bucket
  3. Rewrites the Lambda function definition to reference the appliance-local S3 bucket
Like container images, destroying the deployment stack (tofu destroy) removes the copied Lambda deployment packages. See Artifacts for documentation on artifact management, including immutability requirements and supported artifact types.

Secrets management

Store secrets in AWS Secrets Manager or AWS Systems Manager Parameter Store, then pass them to your application as environment variables.

Secret naming and injection

Always use parameterized secret names and inject them as environment variables:
Your application reads secrets from environment variables:
AWS applications can read Secrets Manager directly with the AWS SDK or receive secret values through environment variables. Cross-cloud runtime reads use the configured Secrets Manager service adapter; check its operation coverage and target-specific limits.
See Secrets for detailed secret management patterns.

Operations

Perform remote operations on AWS appliances using the Operate role.

kubectl on EKS

Execute kubectl commands against EKS clusters:
Output:

AWS CLI operations

Execute AWS CLI commands:

Database queries

Execute SQL queries against RDS databases:

Operations endpoints

Create temporary operations endpoints for interactive access:
See Operations for the full operations documentation.

Example: Complete AWS appliance

Here’s a complete example of a Terraform origin stack for an AWS appliance:

main.tf

variables.tf

outputs.tf

Best practices

Every AWS resource with a name or identifier should be prefixed with ${var.namespace} to prevent conflicts across customer appliances. Don’t skip account-scoped or region-scoped names: nothing stops two installs sharing one account:
You don’t need to add appliance-identifying tags yourself. Tensor9 BYOC stamps t9-appliance-id, t9-buyer-name, t9-app-name, and related tags onto every resource whose provider schema supports tags, merging them with your own.This enables:
  • IAM permission scoping
  • CloudWatch filtering
  • Cost tracking
  • Resource discovery
Configure logging for Lambda, EKS, RDS, and other services:
This ensures observability data flows to your control plane.
Never hardcode secrets. Use Secrets Manager with parameterized names and pass them to your application as environment variables:
Use environment variables for values needed at startup, or the Secrets Manager service adapter when the application needs to fetch values while running.

Troubleshooting

Symptom: Terraform apply fails with “AccessDenied” or “UnauthorizedOperation” errors.Solutions:
  • Verify the Tensor9 BYOC controller has successfully assumed the Deploy role
  • Check the Deploy role’s IAM policy includes necessary permissions for the resources being created
  • Ensure the trust policy allows the Tensor9 BYOC controller to assume it
  • Verify the DeployAccess tag is set and the time window hasn’t expired
  • Review CloudTrail logs in the customer account to see which specific API call was denied
Symptom: “ResourceAlreadyExists” or “BucketAlreadyExists” errors during deployment.Solutions:
  • Ensure all resource names are prefixed with ${var.namespace}
  • Verify the @namespace annotated variable is being passed correctly
  • Check that no hardcoded resource names exist in your origin stack
  • For S3 buckets, remember they must be globally unique - prefix them with ${var.namespace}
Symptom: CloudWatch logs and metrics aren’t appearing in your observability sink.Solutions:
  • Verify the Steady-state role has permissions to read CloudWatch logs and metrics
  • Check that all log groups and resources are tagged with Tensor9 BYOC’s t9-appliance-id
  • Ensure log group names are parameterized and follow the expected pattern
  • Verify CloudWatch log retention is set (logs may be deleted if retention is too short)
  • Check that the control plane is successfully assuming the Steady-state role
Symptom: “VpcLimitExceeded” error when creating VPCs.Solutions:
  • Ask the customer to request a VPC quota increase from AWS (default is 5 per region)
  • Consider deploying appliances in separate AWS regions
  • Use existing customer VPCs with dedicated subnets instead of creating new VPCs
  • Ask the customer to clean up unused VPCs in their account
Symptom: “InvalidParameterCombination” when enabling encryption on RDS instances.Solutions:
  • Ensure storage_encrypted = true is set when creating the instance
  • Use a customer-managed KMS key if required by customer policy
  • Note that encryption cannot be enabled on existing unencrypted instances - must create new instance
  • Verify the Deploy role has KMS permissions if using customer-managed keys
If you’re experiencing issues not covered here or need additional assistance with AWS deployments, we’re here to help:
  • Slack: Join our community Slack workspace for real-time support
  • Email: Contact us at [email protected]
Our team can help with deployment troubleshooting, IAM configuration, service equivalents, and best practices for AWS environments.

Next steps

Now that you understand deploying to AWS customer environments, explore these related topics: