Set up Outpost on EKS across AWS regions
Run Outpost in multiple AWS regions under one Relyance tenant. Register each EKS deployment with its own deployment ID, workload identity, queues, and S3 work and findings buckets. Assign each connection to the deployment that should run its scans.
Plan your deployments
Ask Relyance to confirm regional deployment support for your tenant and the integrations you intend to scan. Use the example below for two existing EKS clusters in the same AWS account, or use just the new region's module when extending an existing installation.
| Deployment ID | AWS execution region | EKS cluster | Namespace |
|---|---|---|---|
west |
us-west-2 |
outpost-west |
inhost |
east |
us-east-1 |
outpost-east |
inhost |
For each deployment, record the AWS account ID, cluster and namespace, approved scan sources, and network paths from the cluster. Use the namespace in your registered package. For standard EKS, confirm the node pools, storage classes and Pod Identity Agent setup with Relyance. The standard-cluster setting in Terraform only changes the module's Auto Mode check. See Before you start.
1. Provision the AWS resources
Use Terraform 1.9 or later and the regional Outpost EKS module. Give each deployment an AWS provider alias and a module instance. The provider's allowed_account_ids protects against applying to the wrong account. Use separate approved credentials per provider if you deploy across multiple accounts.
Add a region to an existing installation
Keep the existing deployment's module source and version, Terraform addresses, AWS resources, Kubernetes namespace, and connection assignments. Add just the new region's provider and module. For example, copy the east provider, module "east", and variables it uses. Remove the west entry from both output maps below. Use one Terraform root to own each set of resources. When adding a module to an existing root, merge its provider requirement into your existing required_providers block and review any dependency changes in the plan.
Review the plan for impact on the existing deployment. The new deployment needs its own bucket suffix, IAM role name prefix, and deployment ID. Resolve any proposed replacement of existing storage, roles, or Pod Identity associations before applying.
Terraform example for two existing clusters
Set both cluster names, the approved accounts for source role assumption, and the specific Secrets Manager ARN patterns the scanner needs. Use a separate pattern for each deployment's account and execution region. For example, arn:aws:secretsmanager:us-east-1:111122223333:secret:relyance/inhost/east/* scopes access to a dedicated secret path in the east deployment.
terraform {
required_version = ">= 1.9, < 2.0"
required_providers {
aws = {
source = "hashicorp/aws"
version = ">= 5.79, < 7.0"
}
}
}
provider "aws" {
alias = "west"
region = "us-west-2"
allowed_account_ids = ["111122223333"]
}
provider "aws" {
alias = "east"
region = "us-east-1"
allowed_account_ids = ["111122223333"]
}
module "west" {
source = "Relyance/outpost-eks/aws"
version = "0.10.0"
providers = { aws = aws.west }
create_vpc_and_eks = false
existing_eks_cluster_name = var.west_cluster_name
require_existing_eks_cluster_auto_mode = false
base_name = "Relyance_InHost_West"
s3_bucket_suffix = "-west"
deployment_id = "west"
route_revision = 1
additional_service_account_namespaces = ["inhost"]
assumable_account_ids = var.scan_account_ids
byok_secret_arn_patterns = var.west_secret_arn_patterns
byok_secret_write_back = false
}
module "east" {
source = "Relyance/outpost-eks/aws"
version = "0.10.0"
providers = { aws = aws.east }
create_vpc_and_eks = false
existing_eks_cluster_name = var.east_cluster_name
require_existing_eks_cluster_auto_mode = false
base_name = "Relyance_InHost_East"
s3_bucket_suffix = "-east"
deployment_id = "east"
route_revision = 1
additional_service_account_namespaces = ["inhost"]
assumable_account_ids = var.scan_account_ids
byok_secret_arn_patterns = var.east_secret_arn_patterns
byok_secret_write_back = false
}
variable "west_cluster_name" { type = string }
variable "east_cluster_name" { type = string }
variable "scan_account_ids" { type = list(string) }
variable "west_secret_arn_patterns" { type = list(string) }
variable "east_secret_arn_patterns" { type = list(string) }
output "regional_customer_facts" {
value = {
west = module.west.provisioning_facts
east = module.east.provisioning_facts
}
}
output "regional_reader_external_ids" {
sensitive = true
value = {
west = module.west.reader_external_id
east = module.east.reader_external_id
}
}Replace the example account, region, namespace, and deployment IDs with your agreed values. Use the initial route_revision agreed with Relyance. Each module instance creates its own work and findings buckets, KMS key, IAM roles and Pod Identity associations. Review the resources and permissions the module creates.
terraform init
terraform plan -out=outpost-regional.tfplanAfter reviewing the saved plan, apply it with terraform apply outpost-regional.tfplan.
2. Register each deployment with Relyance
- Run
terraform output -json regional_customer_factsand send the result to Relyance through the agreed onboarding channel. These facts include the deployment ID and revision, AWS account and region, OIDC issuer, IAM role references, and S3 roots. - Retrieve the external IDs using
terraform output -json regional_reader_external_idsin a private shell. Share each deployment's ID separately through the agreed access handoff. Keep Terraform state and connection secret values in your AWS environment. - Relyance registers each deployment, configures its queue bindings and hosted transfer access, and returns either a complete Kustomize folder or a full Helm values file for it. Match the package to the deployment ID, route revision, AWS account, region, cluster and namespace before installing. Use the exact S3 roots and queue bindings in that package.
If you use AWS inventory, confirm that the package enables it and includes the agreed inventory and outbox locations. Inventory discovery regions are a separate setting from the EKS execution region and from the region of the findings bucket. See Inventory workers.
3. Install Outpost in each cluster
Repeat these steps for each registered deployment. Set AWS_REGION, EKS_CLUSTER_NAME, and INHOST_NAMESPACE to that package's values, and use your deployment account's AWS credentials.
aws sts get-caller-identity --query Account --output text
aws eks update-kubeconfig --region "$AWS_REGION" --name "$EKS_CLUSTER_NAME"
OUTPOST_CONTEXT="$(kubectl config current-context)"
kubectl --context "$OUTPOST_CONTEXT" get nodes
aws eks list-pod-identity-associations --region "$AWS_REGION" --cluster-name "$EKS_CLUSTER_NAME"Confirm the AWS account and cluster before installing. Compare the Pod Identity association's namespace and service account with the package and confirm that it uses this deployment's scanner role. Check that pods can reach the specified registries, APIs, queues, S3 and Secrets Manager, and the approved data sources. Follow Prepare the cluster for KEDA and namespace setup, and use the installation steps for the package you received.
Install with Kustomize
Set OUTPOST_OVERLAY to the supplied folder. Review the rendered resources for this deployment's namespace, workload identity, queues, S3 roots, and image versions.
kubectl kustomize "$OUTPOST_OVERLAY" > outpost-rendered.yaml
kubectl --context "$OUTPOST_CONTEXT" apply --dry-run=server -k "$OUTPOST_OVERLAY"
kubectl --context "$OUTPOST_CONTEXT" diff -k "$OUTPOST_OVERLAY"
kubectl --context "$OUTPOST_CONTEXT" apply -k "$OUTPOST_OVERLAY"Review the diff before applying. Exit code 1 means there are changes. A higher exit code indicates an error.
Install with Helm
Set INHOST_CHART to the verified chart archive path and INHOST_VALUES to the full values file you received. Set INHOST_RELEASE to the registered release name. For an existing Outpost deployment, keep its current release name and installation method. Use the Helm verification steps to review the chart and monitoring settings first.
helm template "$INHOST_RELEASE" "$INHOST_CHART" \
--namespace "$INHOST_NAMESPACE" --values "$INHOST_VALUES" > outpost-rendered.yaml
kubectl --context "$OUTPOST_CONTEXT" -n "$INHOST_NAMESPACE" \
apply --dry-run=server -f outpost-rendered.yaml
kubectl --context "$OUTPOST_CONTEXT" -n "$INHOST_NAMESPACE" diff -f outpost-rendered.yaml
helm upgrade --install "$INHOST_RELEASE" "$INHOST_CHART" \
--kube-context "$OUTPOST_CONTEXT" --namespace "$INHOST_NAMESPACE" \
--values "$INHOST_VALUES" --atomic --wait --timeout 40mReview the diff before running the Helm upgrade. If inventory is enabled, also check the data-pipelines and gai-inventory-notifications rollouts in the registered namespace.
4. Assign a connection to each deployment
- Create an AWS Secrets Manager secret in the selected deployment's account and region. Grant the scanner role
secretsmanager:GetSecretValuefor that secret and permission to decrypt its customer-managed key if you use one. See Give the scanner access. - In the connection's Connection Settings, select Outpost BYOK under Runtime Mode. Select the deployment below it, then set the secret ARN in Authentication. For Terraform-managed connections, use Relyance provider 1.2.0 or later with
runtime_mode = "IN_HOST_BYOK", the exact registeredinhost_deployment_id, andsecret_ref. See the Terraform connection example. - Configure the source and scan scope for that connection. For example, the AWS region of an S3 source bucket is a source setting. The deployment ID determines where the scanner runs. Check that the selected deployment supports the source and has the network and IAM access it needs.
To use another deployment after a connection has prior accepted InHost or legacy work, create a new connection. Keep the existing connection active until you verify the new one and are ready to change its scan schedule. A connection has one deployment assignment, so plan any failover or migration with Relyance.
5. Verify a scan in each region
Check the workers in the cluster and namespace you just installed.
kubectl --context "$OUTPOST_CONTEXT" -n "$INHOST_NAMESPACE" get deployments,statefulsets,scaledjobs,pods
kubectl --context "$OUTPOST_CONTEXT" -n "$INHOST_NAMESPACE" rollout status deployment/inhost-scaler --timeout=5m
kubectl --context "$OUTPOST_CONTEXT" -n "$INHOST_NAMESPACE" rollout status statefulset/gai-redis-master --timeout=5mStart a small scan for a known, approved source on each deployment. Review your output policy before enabling data inspection.
| Check | Expected result |
|---|---|
| Execution | The connection shows the intended deployment, and scan pods start in that deployment's cluster. ScaledJobs can be idle before a scan. |
| Credentials and source | The workload reads its secret and reaches the source. The scan discovers expected resources within the approved scope. |
| S3 output | New objects appear under the findings or inventory prefix registered for that deployment. |
| Relyance results | Expected results appear in the application after transfer and processing. |
Repeat before expanding scope. If the scan produces S3 output but results are missing in Relyance, share the deployment ID, connection name and scan time with Relyance so the team can check transfer and processing. See Scan progress and retry.