Creating an Agent Space - AWS DevOps Agent

Creating an Agent Space

An Agent Space defines the tools and infrastructure that AWS DevOps Agent has access to. This guide walks you through creating an Agent Space, configuring primary account access, and enabling the DevOps Agent Web App. See “What is an Agent Space” to learn more about the Agent Space concept.

Create an Agent Space

Access the AWS DevOps Agent console

  • Sign in to the AWS Management Console

  • Navigate to the AWS DevOps Agent console

Name the Agent Space

  • Click Create Agent Space +

In the Agent Space details section, provide:

  • In the Name field, enter a name for your Agent Space

  • (Optional) In the Description field, add details about the Agent Space's purpose

Configure primary account access

In the Give this Agent Space AWS resource access section, you will set up an IAM role to grant the Agent Space access to the primary AWS account.The primary account is the AWS account where you create your Agent Space. AWS DevOps Agent requires an IAM role to discover and access AWS resources in this account during investigations. ​ Choose a role configuration method.Select one of the following options:

This option automatically creates a role with appropriate permissions for AWS DevOps Agent to investigate resources in your account. Note:You must have IAM permissions to create new roles to use this option.

  • Select Auto-create a new AWS DevOps Agent role

  • (Optional) Update the Agent Space role name to be created

Option 2: Assign an existing role

Use this option when another administrator has previously created a role specifically for AWS DevOps Agent.

  • Select Assign an existing role

  • From the dropdown menu, select an existing role that has appropriate permissions

Option 3: Create a new AWS DevOps Agent role using a policytemplate

Use this option when you need to limit the services and resources the agent can access in the primary account.

  • Select Create a new AWS DevOps Agent role using a policy template

  • Follow the instructions to create the new role’s trust policy and inline policy.

Use AWS tags for resource discovery

By default, all CloudFormation stacks and their resources will be discovered. If your resources were not deployed with CloudFormation, you can have AWS DevOps Agent discover resources with specific AWS tags. See Application Resource Mapping[link] to learn more.

Enabling the Agent Space Web App

The Web App is where personnel interact with AWS DevOps Agent for incident investigations and reviewing recommendations. See AWS DevOps Agent Console Architecture[link] to learn more. When enabled, users can access the Agent Space Web App through an IAM authentication link from the AWS Management Console. ​ Select one of the following options:

This option automatically creates a role with appropriate permissions for accessing the DevOps Agent Web App. Note:You must have IAM permissions to create new roles to use this option.

  • Select Auto-create a new AWS DevOps Agent role

  • Review the permissions that will be granted to the role

Option 2: Assign an existing role

Use this option when another administrator has previously created an operator role.

  • Select Assign an existing role

  • From the dropdown menu, select an existing role that has appropriate permissions

Option 3: Create a new AWS DevOps Agent role using apolicytemplate

Use this option when you need to customize permissions for web app access.

  • Select Create a new AWS DevOps Agent role using a policy template

  • Follow the instructions to create the new role’s trust policy and inline policy.

​ Once all sections are filled out, click Submit

Verify your Agent Space setup

Once configured, the “Configure Web App” button should become “Admin access”. Clicking should open the Web App and authenticate successfully.

Next steps

After setting up your Agent Space, consider these next steps:

  • Add secondary accounts if your applications span multiple AWS accounts

  • Configure third-party integrations like observability tools or ticketing systems

  • Set up IAM Identity Center authentication for production environments

  • Explore your application resource mapping to help AWS DevOps Agent understand your infrastructure