Connect an Account
An environment is a deployment target for a project: an AWS account that StratoNext and its agents can discover and operate against. After you create an environment, a wizard guides you through connecting your account with a CloudFormation template and then discovers your AWS resources automatically.
How the connection works
Section titled “How the connection works”StratoNext never asks for access keys. Instead, you deploy a CloudFormation stack in your account that creates a set of IAM roles trusted only by StratoNext’s dedicated credential-broker role: a single, least-privilege StratoNext role whose only ability is to assume the roles you create. The platform assumes those roles with short-lived STS sessions. Nothing long-lived is exchanged, and you can revoke access at any time by deleting the stack.
Agents never receive these roles directly either: the StratoNext credential broker assumes the role on the agent’s behalf and hands the agent short-lived credentials scoped to its current task. See IAM roles reference for what each role does.
Onboard with an agent (recommended)
Section titled “Onboard with an agent (recommended)”The fastest way to connect an account is to let a local agent drive the flow for you. Once the CLI is installed and the StratoNext skill is added to your agent, ask:
Onboard a new account for workspace XYZThe agent deploys the CloudFormation template, reads back the stack outputs, and registers the environment for you. Follow its instructions and approve the steps it proposes. To do it by hand instead, use the manual flow below.
Deploy the template
Section titled “Deploy the template”-
In the StratoNext app, open your workspace and create a new Environment, choosing AWS.
-
The wizard gives you a CloudFormation template generated for this environment. It is fully pre-filled: StratoNext’s credential-broker role, a unique external ID, and role names with a random suffix are already in it, so the template takes no parameters. Read access to Cost Explorer is included when the Cost Explorer service is selected in the wizard, which it is by default. Read the template, then launch it in the AWS account you want to connect.
-
When the stack completes, copy the ARNs from the stack Outputs and paste them into the StratoNext wizard:
Output Paste as ConnectionRoleArnConnection Role ARN OperationsRoleArnAgent Operations Role ARN OperationsMaxRoleArnAgent Operations Max Role ARN -
StratoNext validates the connection and starts discovering your AWS resources automatically.
Agent permissions
Section titled “Agent permissions”Background agents operate with the permissions of the Operations Role. The standard template grants basic read-only permissions; you can customize the role in your AWS account at any time to give agents more power.
If you connect an account that belongs to one of your own customers, they can grant your agents additional permissions by editing the roles on their side.