[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 2. Associate your AWS account in AWS DevOps Agent.

[Assistant]
```
aws devops-agent associate-service \
  --agent-space-id <AGENT_SPACE_ID> \
  --service-id aws \
  --configuration '{
    "aws": {
      "assumableRoleArn": "arn:aws:iam::<MONITORING_ACCOUNT_ID>:role/DevOpsAgentRole-AgentSpace",
      "accountId": "<MONITORING_ACCOUNT_ID>",
      "accountType": "monitor"
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 3. Enable the operator app in AWS DevOps Agent?

[Assistant]
```
aws devops-agent enable-operator-app \
  --agent-space-id <AGENT_SPACE_ID> \
  --auth-flow iam \
  --operator-app-role-arn "arn:aws:iam::<MONITORING_ACCOUNT_ID>:role/DevOpsAgentRole-WebappAdmin" \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 3. Enable the operator app in AWS DevOps Agent.

[Assistant]
```
aws devops-agent enable-operator-app \
  --agent-space-id <AGENT_SPACE_ID> \
  --auth-flow iam \
  --operator-app-role-arn "arn:aws:iam::<MONITORING_ACCOUNT_ID>:role/DevOpsAgentRole-WebappAdmin" \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 4. (Optional) Associate additional source accounts in AWS DevOps Agent?

[Assistant]
Create a cross-account role in the external account and then associate it:

```
aws devops-agent associate-service \
  --agent-space-id <AGENT_SPACE_ID> \
  --service-id aws \
  --configuration '{
    "sourceAws": {
      "accountId": "<EXTERNAL_ACCOUNT_ID>",
      "accountType": "source",
      "assumableRoleArn": "arn:aws:iam::<EXTERNAL_ACCOUNT_ID>:role/DevOpsAgentCrossAccountRole"
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 4. (Optional) Associate additional source accounts in AWS DevOps Agent.

[Assistant]
Create a cross-account role in the external account and then associate it:

```
aws devops-agent associate-service \
  --agent-space-id <AGENT_SPACE_ID> \
  --service-id aws \
  --configuration '{
    "sourceAws": {
      "accountId": "<EXTERNAL_ACCOUNT_ID>",
      "accountType": "source",
      "assumableRoleArn": "arn:aws:iam::<EXTERNAL_ACCOUNT_ID>:role/DevOpsAgentCrossAccountRole"
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 5. (Optional) Associate GitHub in AWS DevOps Agent?

[Assistant]
You must first register GitHub through the AWS DevOps Agent console using the OAuth flow before you can associate it through the CLI.

```
aws devops-agent associate-service \
  --agent-space-id <AGENT_SPACE_ID> \
  --service-id <SERVICE_ID> \
  --configuration '{
    "github": {
      "repoName": "<GITHUB_REPO_NAME>",
      "repoId": "<GITHUB_REPO_ID>",
      "owner": "<GITHUB_OWNER>",
      "ownerType": "organization"
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 5. (Optional) Associate GitHub in AWS DevOps Agent.

[Assistant]
You must first register GitHub through the AWS DevOps Agent console using the OAuth flow before you can associate it through the CLI.

```
aws devops-agent associate-service \
  --agent-space-id <AGENT_SPACE_ID> \
  --service-id <SERVICE_ID> \
  --configuration '{
    "github": {
      "repoName": "<GITHUB_REPO_NAME>",
      "repoId": "<GITHUB_REPO_ID>",
      "owner": "<GITHUB_OWNER>",
      "ownerType": "organization"
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 6. (Optional) Register and associate ServiceNow in AWS DevOps Agent?

[Assistant]
```
aws devops-agent register-service \
  --service servicenow \
  --service-details '{
    "servicenow": {
      "instanceUrl": "<SERVICENOW_INSTANCE_URL>",
      "authorizationConfig": {
        "oAuthClientCredentials": {
            "clientName": "<SERVICENOW_CLIENT_NAME>",
            "clientId": "<SERVICENOW_CLIENT_ID>",
            "clientSecret": "<SERVICENOW_CLIENT_SECRET>"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 6. (Optional) Register and associate ServiceNow in AWS DevOps Agent.

[Assistant]
```
aws devops-agent register-service \
  --service servicenow \
  --service-details '{
    "servicenow": {
      "instanceUrl": "<SERVICENOW_INSTANCE_URL>",
      "authorizationConfig": {
        "oAuthClientCredentials": {
            "clientName": "<SERVICENOW_CLIENT_NAME>",
            "clientId": "<SERVICENOW_CLIENT_ID>",
            "clientSecret": "<SERVICENOW_CLIENT_SECRET>"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 7. (Optional) Register and associate Dynatrace in AWS DevOps Agent?

[Assistant]
```
aws devops-agent register-service \
  --service dynatrace \
  --service-details '{
    "dynatrace": {
      "accountUrn": "<DYNATRACE_ACCOUNT_URN>",
      "authorizationConfig": {
        "oAuthClientCredentials": {
            "clientName": "<DYNATRACE_CLIENT_NAME>",
            "clientId": "<DYNATRACE_CLIENT_ID>",
            "clientSecret": "<DYNATRACE_CLIENT_SECRET>"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 7. (Optional) Register and associate Dynatrace in AWS DevOps Agent.

[Assistant]
```
aws devops-agent register-service \
  --service dynatrace \
  --service-details '{
    "dynatrace": {
      "accountUrn": "<DYNATRACE_ACCOUNT_URN>",
      "authorizationConfig": {
        "oAuthClientCredentials": {
            "clientName": "<DYNATRACE_CLIENT_NAME>",
            "clientId": "<DYNATRACE_CLIENT_ID>",
            "clientSecret": "<DYNATRACE_CLIENT_SECRET>"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 8. (Optional) Register and associate Splunk in AWS DevOps Agent?

[Assistant]
```
aws devops-agent register-service \
  --service mcpserversplunk \
  --service-details '{
    "mcpserversplunk": {
      "name": "<SPLUNK_NAME>",
      "endpoint": "<SPLUNK_ENDPOINT>",
      "authorizationConfig": {
        "bearerToken": {
            "tokenName": "<SPLUNK_TOKEN_NAME>",
            "tokenValue": "<SPLUNK_TOKEN_VALUE>"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 8. (Optional) Register and associate Splunk in AWS DevOps Agent.

[Assistant]
```
aws devops-agent register-service \
  --service mcpserversplunk \
  --service-details '{
    "mcpserversplunk": {
      "name": "<SPLUNK_NAME>",
      "endpoint": "<SPLUNK_ENDPOINT>",
      "authorizationConfig": {
        "bearerToken": {
            "tokenName": "<SPLUNK_TOKEN_NAME>",
            "tokenValue": "<SPLUNK_TOKEN_VALUE>"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 9. (Optional) Register and associate New Relic in AWS DevOps Agent?

[Assistant]
```
aws devops-agent register-service \
  --service mcpservernewrelic \
  --service-details '{
    "mcpservernewrelic": {
      "authorizationConfig": {
        "apiKey": {
          "apiKey": "<YOUR_NEW_RELIC_API_KEY>",
          "accountId": "<YOUR_ACCOUNT_ID>",
          "region": "US"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 9. (Optional) Register and associate New Relic in AWS DevOps Agent.

[Assistant]
```
aws devops-agent register-service \
  --service mcpservernewrelic \
  --service-details '{
    "mcpservernewrelic": {
      "authorizationConfig": {
        "apiKey": {
          "apiKey": "<YOUR_NEW_RELIC_API_KEY>",
          "accountId": "<YOUR_ACCOUNT_ID>",
          "region": "US"
        }
      }
    }
  }' \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 10. (Optional) Register and associate Datadog in AWS DevOps Agent?

[Assistant] You must first register Datadog through the AWS DevOps Agent console using the OAuth flow before you can associate it through the CLI.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 10. (Optional) Register and associate Datadog in AWS DevOps Agent.

[Assistant] You must first register Datadog through the AWS DevOps Agent console using the OAuth flow before you can associate it through the CLI.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is 11. (Optional) Delete an agent space in AWS DevOps Agent?

[Assistant]
```
aws devops-agent delete-agent-space \
  --agent-space-id <AGENT_SPACE_ID> \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about 11. (Optional) Delete an agent space in AWS DevOps Agent.

[Assistant]
```
aws devops-agent delete-agent-space \
  --agent-space-id <AGENT_SPACE_ID> \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Verification in AWS DevOps Agent?

[Assistant]
```
aws devops-agent list-agent-spaces --region <REGION>
aws devops-agent get-agent-space --agent-space-id <AGENT_SPACE_ID> --region <REGION>
aws devops-agent list-associations --agent-space-id <AGENT_SPACE_ID> --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Verification in AWS DevOps Agent.

[Assistant]
```
aws devops-agent list-agent-spaces --region <REGION>
aws devops-agent get-agent-space --agent-space-id <AGENT_SPACE_ID> --region <REGION>
aws devops-agent list-associations --agent-space-id <AGENT_SPACE_ID> --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Next steps in AWS DevOps Agent?

[Assistant]
+ To connect additional integrations, see Configuring capabilities for AWS DevOps Agent.
+ To learn about agent skills and capabilities, see DevOps Agent Skills.
+ To understand the operator web app, see What is a DevOps Agent Web App?.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Next steps in AWS DevOps Agent.

[Assistant]
+ To connect additional integrations, see Configuring capabilities for AWS DevOps Agent.
+ To learn about agent skills and capabilities, see DevOps Agent Skills.
+ To understand the operator web app, see What is a DevOps Agent Web App?.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Give me a comprehensive overview of creating a test environment in AWS DevOps Agent.

[Assistant]
# Creating a test environment

This guide helps you create a controlled test environment to validate that AWS DevOps Agent can detect and investigate operational issues. You will deploy sample AWS resources that simulate common failure scenarios, then verify that AWS DevOps Agent detects and investigates these issues.

## Prerequisites

Before you begin, ensure the following:
+ An active Agent Space with at least one AWS account associated
+ AWS CLI version 2 installed and configured
+ Permissions to create CloudFormation stacks, EC2 instances, Lambda functions, and CloudWatch alarms
+ The Agent Space is in a supported Region

## Cost and safety overview

The test environment creates minimal AWS resources designed to generate detectable issues without impacting production workloads:
+ **EC2 test**: Creates a single t3.micro instance with a CPU stress script. Estimated cost: less than $0.02/hour.
+ **Lambda test**: Creates a single Lambda function that intentionally throws errors. Estimated cost: negligible (within free tier for most accounts).
+ All resources are tagged with `devops-agent-test: true` for easy identification and cleanup.
+ Resources are isolated and do not interact with any existing infrastructure.

## EC2 CPU capacity test

This test deploys an EC2 instance that generates high CPU utilization, triggering a CloudWatch alarm that AWS DevOps Agent can detect and investigate.

### CloudFormation template for EC2 test

Save the following template as `devops-agent-ec2-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - EC2 CPU stress test

Parameters:
  InstanceType:
    Type: String
    Default: t3.micro
    AllowedValues:
      - t3.micro
      - t3.small
    Description: EC2 instance type for the test

  LatestAmiId:
    Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
    Default: /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64
    Description: Latest Amazon Linux 2023 AMI

Resources:
  TestSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Security group for DevOps Agent EC2 test instance
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-sg

  TestInstance:
    Type: AWS::EC2::Instance
    Properties:
      InstanceType: !Ref InstanceType
      ImageId: !Ref LatestAmiId
      SecurityGroupIds:
        - !Ref TestSecurityGroup
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-cpu-stress
      UserData:
        Fn::Base64: |
          #!/bin/bash
          # Wait 2 minutes before starting stress to allow instance to stabilize
          sleep 120
          # Generate CPU stress using dd and yes commands
          while true; do
            yes > /dev/null &
          done

  CPUAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-high-cpu
      AlarmDescription: Test alarm for AWS DevOps Agent - High CPU utilization
      MetricName: CPUUtilization
      Namespace: AWS/EC2
      Statistic: Average
      Period: 60
      EvaluationPeriods: 2
      Threshold: 80
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: InstanceId
          Value: !Ref TestInstance
      Tags:
        - Key: devops-agent-test
          Value: 'true'

Outputs:
  InstanceId:
    Description: ID of the test EC2 instance
    Value: !Ref TestInstance
  AlarmName:
    Description: Name of the CloudWatch alarm
    Value: !Ref CPUAlarm
  SecurityGroupId:
    Description: ID of the test security group
    Value: !Ref TestSecurityGroup
```

### Deploy the EC2 test

```bash
aws cloudformation create-stack \
  --stack-name devops-agent-ec2-test \
  --template-body file://devops-agent-ec2-test.yaml \
  --region <REGION>
```

### Auto-execution and monitoring

After deployment:
1. The EC2 instance launches and waits 2 minutes for stabilization
2. The CPU stress script begins, driving CPU utilization above 80%
3. CloudWatch collects metrics every 60 seconds
4. After 2 consecutive periods above 80%, the alarm transitions to ALARM state
5. AWS DevOps Agent detects the alarm and begins its investigation

Expected timeline: The alarm should trigger approximately 4-5 minutes after stack creation completes.

### Monitor the alarm state

```bash
aws cloudwatch describe-alarms \
  --alarm-names devops-agent-test-high-cpu \
  --region <REGION> \
  --query 'MetricAlarms[0].StateValue'
```

## Lambda error rate test

This test deploys a Lambda function that intentionally throws errors, generating a high error rate that AWS DevOps Agent can detect.

### CloudFormation template for Lambda test

Save the following template as `devops-agent-lambda-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - Lambda error rate test

Resources:
  TestFunctionRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-lambda-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: lambda.amazonaws.com
            Action: sts:AssumeRole
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  TestFunction:
    Type: AWS::Lambda::Function
    Properties:
      FunctionName: devops-agent-test-error-function
      Runtime: python3.12
      Handler: index.handler
      Role: !GetAtt TestFunctionRole.Arn
      Timeout: 10
      Tags:
        - Key: devops-agent-test
          Value: 'true'
      Code:
        ZipFile: |
          import json
          import random

          def handler(event, context):
              # 80% of invocations will fail
              if random.random() < 0.8:
                  raise Exception("Simulated application error: database connection timeout")
              return {
                  'statusCode': 200,
                  'body': json.dumps({'message': 'Success'})
              }

  ErrorRateAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-lambda-errors
      AlarmDescription: Test alarm for AWS DevOps Agent - High Lambda error rate
      MetricName: Errors
      Namespace: AWS/Lambda
      Statistic: Sum
      Period: 60
      EvaluationPeriods: 2
      Threshold: 5
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: FunctionName
          Value: !Ref TestFunction
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeScheduleRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-schedule-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: scheduler.amazonaws.com
            Action: sts:AssumeRole
      Policies:
        - PolicyName: InvokeLambda
          PolicyDocument:
            Version: '2012-10-17'
            Statement:
              - Effect: Allow
                Action: lambda:InvokeFunction
                Resource: !GetAtt TestFunction.Arn
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeSchedule:
    Type: AWS::Scheduler::Schedule
    Properties:
      Name: devops-agent-test-invoke-schedule
      ScheduleExpression: rate(1 minute)
      FlexibleTimeWindow:
        Mode: 'OFF'
      Target:
        Arn: !GetAtt TestFunction.Arn
        RoleArn: !GetAtt InvokeScheduleRole.Arn
        Input: '{"test": true}'

Outputs:
  FunctionName:
    Description: Name of the test Lambda function
    Value: !Ref TestFunction
  FunctionArn:
    Description: ARN of the test Lambda function
    Value: !GetAtt TestFunction.Arn
  AlarmName:
    Description: Name of the error rate alarm
    Value: !Ref ErrorRateAlarm
```

### Deploy the Lambda test

```bash
aws cloudformation create-stack \
  --stack-name devops-agent-lambda-test \
  --template-body file://devops-agent-lambda-test.yaml \
  --capabilities CAPABILITY_NAMED_IAM \
  --region <REGION>
```

### Triggering errors

The EventBridge Scheduler automatically invokes the Lambda function every minute. Since 80% of invocations fail, the error alarm should trigger within a few minutes. You can also manually invoke the function to accelerate testing:

```bash
for i in $(seq 1 20); do
  aws lambda invoke \
    --function-name devops-agent-test-error-function \
    --payload '{"test": true}' \
    --region <REGION> \
    /tmp/lambda-response.json 2>/dev/null
  echo "Invocation $i complete"
done
```

## Validating detection in AWS DevOps Agent

Once the alarms transition to ALARM state:

1. Open the AWS DevOps Agent Web App from your Agent Space
2. Navigate to the **Investigations** tab
3. You should see new investigations created for the triggered alarms
4. Select an investigation to review the agent's findings

### What to expect

For the **EC2 CPU test**, AWS DevOps Agent should:
+ Identify the alarming instance
+ Investigate CPU utilization patterns
+ Check for related metrics (memory, disk, network)
+ Provide a root cause summary indicating sustained high CPU

For the **Lambda error test**, AWS DevOps Agent should:
+ Identify the function with elevated error rates
+ Examine CloudWatch Logs for error messages
+ Identify the "database connection timeout" error pattern
+ Suggest potential remediation steps

## Cleanup

Remove all test resources by deleting the CloudFormation stacks:

```bash
# Delete the EC2 test stack
aws cloudformation delete-stack \
  --stack-name devops-agent-ec2-test \
  --region <REGION>

# Delete the Lambda test stack
aws cloudformation delete-stack \
  --stack-name devops-agent-lambda-test \
  --region <REGION>

# Wait for deletion to complete
aws cloudformation wait stack-delete-complete \
  --stack-name devops-agent-ec2-test \
  --region <REGION>

aws cloudformation wait stack-delete-complete \
  --stack-name devops-agent-lambda-test \
  --region <REGION>
```

Verify all resources have been removed:

```bash
aws cloudformation describe-stacks \
  --stack-name devops-agent-ec2-test \
  --region <REGION> 2>&1 | grep -q "does not exist" && echo "EC2 stack deleted"

aws cloudformation describe-stacks \
  --stack-name devops-agent-lambda-test \
  --region <REGION> 2>&1 | grep -q "does not exist" && echo "Lambda stack deleted"
```

## Troubleshooting

### Alarm does not transition to ALARM state

+ **EC2 test**: Verify the instance is running with `aws ec2 describe-instances --filters "Name=tag:devops-agent-test,Values=true"`. Check that the UserData script executed by reviewing system logs.
+ **Lambda test**: Verify the function exists and the schedule is active. Manually invoke the function to confirm it throws errors.

### AWS DevOps Agent does not create an investigation

+ Verify your Agent Space has the AWS account properly associated using `aws devops-agent list-associations --agent-space-id <AGENT_SPACE_ID>`
+ Confirm the IAM role has CloudWatch permissions by checking the attached policies
+ Allow up to 10 minutes for the agent to detect and begin investigating the alarm
+ Check the Agent Space status in the console to confirm it is active

### Stack creation fails

+ **CAPABILITY_NAMED_IAM error**: Add `--capabilities CAPABILITY_NAMED_IAM` to the create-stack command for the Lambda test
+ **AMI not found**: The EC2 template uses SSM Parameter Store to fetch the latest AMI. Ensure the Region supports Amazon Linux 2023.
+ **Role already exists**: If you previously ran the test without cleanup, delete existing roles manually or use a different stack name

### Instance does not generate high CPU

+ Check the instance state: it should be `running`
+ Verify UserData execution: connect via SSM Session Manager and check `/var/log/cloud-init-output.log`
+ The stress script has a 2-minute delay; wait at least 5 minutes after stack creation


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is creating a test environment?

[Assistant]
# Creating a test environment

This guide helps you create a controlled test environment to validate that AWS DevOps Agent can detect and investigate operational issues. You will deploy sample AWS resources that simulate common failure scenarios, then verify that AWS DevOps Agent detects and investigates these issues.

## Prerequisites

Before you begin, ensure the following:
+ An active Agent Space with at least one AWS account associated
+ AWS CLI version 2 installed and configured
+ Permissions to create CloudFormation stacks, EC2 instances, Lambda functions, and CloudWatch alarms
+ The Agent Space is in a supported Region

## Cost and safety overview

The test environment creates minimal AWS resources designed to generate detectable issues without impacting production workloads:
+ **EC2 test**: Creates a single t3.micro instance with a CPU stress script. Estimated cost: less than $0.02/hour.
+ **Lambda test**: Creates a single Lambda function that intentionally throws errors. Estimated cost: negligible (within free tier for most accounts).
+ All resources are tagged with `devops-agent-test: true` for easy identification and cleanup.
+ Resources are isolated and do not interact with any existing infrastructure.

## EC2 CPU capacity test

This test deploys an EC2 instance that generates high CPU utilization, triggering a CloudWatch alarm that AWS DevOps Agent can detect and investigate.

### CloudFormation template for EC2 test

Save the following template as `devops-agent-ec2-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - EC2 CPU stress test

Parameters:
  InstanceType:
    Type: String
    Default: t3.micro
    AllowedValues:
      - t3.micro
      - t3.small
    Description: EC2 instance type for the test

  LatestAmiId:
    Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
    Default: /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64
    Description: Latest Amazon Linux 2023 AMI

Resources:
  TestSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Security group for DevOps Agent EC2 test instance
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-sg

  TestInstance:
    Type: AWS::EC2::Instance
    Properties:
      InstanceType: !Ref InstanceType
      ImageId: !Ref LatestAmiId
      SecurityGroupIds:
        - !Ref TestSecurityGroup
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-cpu-stress
      UserData:
        Fn::Base64: |
          #!/bin/bash
          # Wait 2 minutes before starting stress to allow instance to stabilize
          sleep 120
          # Generate CPU stress using dd and yes commands
          while true; do
            yes > /dev/null &
          done

  CPUAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-high-cpu
      AlarmDescription: Test alarm for AWS DevOps Agent - High CPU utilization
      MetricName: CPUUtilization
      Namespace: AWS/EC2
      Statistic: Average
      Period: 60
      EvaluationPeriods: 2
      Threshold: 80
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: InstanceId
          Value: !Ref TestInstance
      Tags:
        - Key: devops-agent-test
          Value: 'true'

Outputs:
  InstanceId:
    Description: ID of the test EC2 instance
    Value: !Ref TestInstance
  AlarmName:
    Description: Name of the CloudWatch alarm
    Value: !Ref CPUAlarm
  SecurityGroupId:
    Description: ID of the test security group
    Value: !Ref TestSecurityGroup
```

### Deploy the EC2 test

```bash
aws cloudformation create-stack \
  --stack-name devops-agent-ec2-test \
  --template-body file://devops-agent-ec2-test.yaml \
  --region <REGION>
```

### Auto-execution and monitoring

After deployment:
1. The EC2 instance launches and waits 2 minutes for stabilization
2. The CPU stress script begins, driving CPU utilization above 80%
3. CloudWatch collects metrics every 60 seconds
4. After 2 consecutive periods above 80%, the alarm transitions to ALARM state
5. AWS DevOps Agent detects the alarm and begins its investigation

Expected timeline: The alarm should trigger approximately 4-5 minutes after stack creation completes.

### Monitor the alarm state

```bash
aws cloudwatch describe-alarms \
  --alarm-names devops-agent-test-high-cpu \
  --region <REGION> \
  --query 'MetricAlarms[0].StateValue'
```

## Lambda error rate test

This test deploys a Lambda function that intentionally throws errors, generating a high error rate that AWS DevOps Agent can detect.

### CloudFormation template for Lambda test

Save the following template as `devops-agent-lambda-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - Lambda error rate test

Resources:
  TestFunctionRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-lambda-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: lambda.amazonaws.com
            Action: sts:AssumeRole
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  TestFunction:
    Type: AWS::Lambda::Function
    Properties:
      FunctionName: devops-agent-test-error-function
      Runtime: python3.12
      Handler: index.handler
      Role: !GetAtt TestFunctionRole.Arn
      Timeout: 10
      Tags:
        - Key: devops-agent-test
          Value: 'true'
      Code:
        ZipFile: |
          import json
          import random

          def handler(event, context):
              # 80% of invocations will fail
              if random.random() < 0.8:
                  raise Exception("Simulated application error: database connection timeout")
              return {
                  'statusCode': 200,
                  'body': json.dumps({'message': 'Success'})
              }

  ErrorRateAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-lambda-errors
      AlarmDescription: Test alarm for AWS DevOps Agent - High Lambda error rate
      MetricName: Errors
      Namespace: AWS/Lambda
      Statistic: Sum
      Period: 60
      EvaluationPeriods: 2
      Threshold: 5
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: FunctionName
          Value: !Ref TestFunction
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeScheduleRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-schedule-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: scheduler.amazonaws.com
            Action: sts:AssumeRole
      Policies:
        - PolicyName: InvokeLambda
          PolicyDocument:
            Version: '2012-10-17'
            Statement:
              - Effect: Allow
                Action: lambda:InvokeFunction
                Resource: !GetAtt TestFunction.Arn
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeSchedule:
    Type: AWS::Scheduler::Schedule
    Properties:
      Name: devops-agent-test-invoke-schedule
      ScheduleExpression: rate(1 minute)
      FlexibleTimeWindow:
        Mode: 'OFF'
      Target:
        Arn: !GetAtt TestFunction.Arn
        RoleArn: !GetAtt InvokeScheduleRole.Arn
        Input: '{"test": true}'

Outputs:
  FunctionName:
    Description: Name of the test Lambda function
    Value: !Ref TestFunction
  FunctionArn:
    Description: ARN of the test Lambda function
    Value: !GetAtt TestFunction.Arn
  AlarmName:
    Description: Name of the error rate alarm
    Value: !Ref ErrorRateAlarm
```

### Deploy the Lambda test

```bash
aws cloudformation create-stack \
  --stack-name devops-agent-lambda-test \
  --template-body file://devops-agent-lambda-test.yaml \
  --capabilities CAPABILITY_NAMED_IAM \
  --region <REGION>
```

### Triggering errors

The EventBridge Scheduler automatically invokes the Lambda function every minute. Since 80% of invocations fail, the error alarm should trigger within a few minutes. You can also manually invoke the function to accelerate testing:

```bash
for i in $(seq 1 20); do
  aws lambda invoke \
    --function-name devops-agent-test-error-function \
    --payload '{"test": true}' \
    --region <REGION> \
    /tmp/lambda-response.json 2>/dev/null
  echo "Invocation $i complete"
done
```

## Validating detection in AWS DevOps Agent

Once the alarms transition to ALARM state:

1. Open the AWS DevOps Agent Web App from your Agent Space
2. Navigate to the **Investigations** tab
3. You should see new investigations created for the triggered alarms
4. Select an investigation to review the agent's findings

### What to expect

For the **EC2 CPU test**, AWS DevOps Agent should:
+ Identify the alarming instance
+ Investigate CPU utilization patterns
+ Check for related metrics (memory, disk, network)
+ Provide a root cause summary indicating sustained high CPU

For the **Lambda error test**, AWS DevOps Agent should:
+ Identify the function with elevated error rates
+ Examine CloudWatch Logs for error messages
+ Identify the "database connection timeout" error pattern
+ Suggest potential remediation steps

## Cleanup

Remove all test resources by deleting the CloudFormation stacks:

```bash
# Delete the EC2 test stack
aws cloudformation delete-stack \
  --stack-name devops-agent-ec2-test \
  --region <REGION>

# Delete the Lambda test stack
aws cloudformation delete-stack \
  --stack-name devops-agent-lambda-test \
  --region <REGION>

# Wait for deletion to complete
aws cloudformation wait stack-delete-complete \
  --stack-name devops-agent-ec2-test \
  --region <REGION>

aws cloudformation wait stack-delete-complete \
  --stack-name devops-agent-lambda-test \
  --region <REGION>
```

Verify all resources have been removed:

```bash
aws cloudformation describe-stacks \
  --stack-name devops-agent-ec2-test \
  --region <REGION> 2>&1 | grep -q "does not exist" && echo "EC2 stack deleted"

aws cloudformation describe-stacks \
  --stack-name devops-agent-lambda-test \
  --region <REGION> 2>&1 | grep -q "does not exist" && echo "Lambda stack deleted"
```

## Troubleshooting

### Alarm does not transition to ALARM state

+ **EC2 test**: Verify the instance is running with `aws ec2 describe-instances --filters "Name=tag:devops-agent-test,Values=true"`. Check that the UserData script executed by reviewing system logs.
+ **Lambda test**: Verify the function exists and the schedule is active. Manually invoke the function to confirm it throws errors.

### AWS DevOps Agent does not create an investigation

+ Verify your Agent Space has the AWS account properly associated using `aws devops-agent list-associations --agent-space-id <AGENT_SPACE_ID>`
+ Confirm the IAM role has CloudWatch permissions by checking the attached policies
+ Allow up to 10 minutes for the agent to detect and begin investigating the alarm
+ Check the Agent Space status in the console to confirm it is active

### Stack creation fails

+ **CAPABILITY_NAMED_IAM error**: Add `--capabilities CAPABILITY_NAMED_IAM` to the create-stack command for the Lambda test
+ **AMI not found**: The EC2 template uses SSM Parameter Store to fetch the latest AMI. Ensure the Region supports Amazon Linux 2023.
+ **Role already exists**: If you previously ran the test without cleanup, delete existing roles manually or use a different stack name

### Instance does not generate high CPU

+ Check the instance state: it should be `running`
+ Verify UserData execution: connect via SSM Session Manager and check `/var/log/cloud-init-output.log`
+ The stress script has a 2-minute delay; wait at least 5 minutes after stack creation


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] How do I set up creating a test environment in AWS DevOps Agent?

[Assistant] This guide helps you create a controlled test environment to validate that AWS DevOps Agent can detect and investigate operational issues. You will deploy sample AWS resources that simulate common failure scenarios, then verify that AWS DevOps Agent detects and investigates these issues.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Walk me through creating a test environment for AWS DevOps Agent.

[Assistant] This guide helps you create a controlled test environment to validate that AWS DevOps Agent can detect and investigate operational issues. You will deploy sample AWS resources that simulate common failure scenarios, then verify that AWS DevOps Agent detects and investigates these issues.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Prerequisites in AWS DevOps Agent?

[Assistant]
Before you begin, ensure the following:
+ An active Agent Space with at least one AWS account associated
+ AWS CLI version 2 installed and configured
+ Permissions to create CloudFormation stacks, EC2 instances, Lambda functions, and CloudWatch alarms
+ The Agent Space is in a supported Region


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Prerequisites in AWS DevOps Agent.

[Assistant]
Before you begin, ensure the following:
+ An active Agent Space with at least one AWS account associated
+ AWS CLI version 2 installed and configured
+ Permissions to create CloudFormation stacks, EC2 instances, Lambda functions, and CloudWatch alarms
+ The Agent Space is in a supported Region


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is creating a test environment in AWS DevOps Agent?

[Assistant]
The test environment creates minimal AWS resources designed to generate detectable issues without impacting production workloads:
+ **EC2 test**: Creates a single t3.micro instance with a CPU stress script. Estimated cost: less than $0.02/hour.
+ **Lambda test**: Creates a single Lambda function that intentionally throws errors. Estimated cost: negligible (within free tier for most accounts).
+ All resources are tagged with `devops-agent-test: true` for easy identification and cleanup.
+ Resources are isolated and do not interact with any existing infrastructure.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Explain creating a test environment in AWS DevOps Agent.

[Assistant]
The test environment creates minimal AWS resources designed to generate detectable issues without impacting production workloads:
+ **EC2 test**: Creates a single t3.micro instance with a CPU stress script. Estimated cost: less than $0.02/hour.
+ **Lambda test**: Creates a single Lambda function that intentionally throws errors. Estimated cost: negligible (within free tier for most accounts).
+ All resources are tagged with `devops-agent-test: true` for easy identification and cleanup.
+ Resources are isolated and do not interact with any existing infrastructure.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is EC2 CPU capacity test in AWS DevOps Agent?

[Assistant] This test deploys an EC2 instance that generates high CPU utilization, triggering a CloudWatch alarm that AWS DevOps Agent can detect and investigate.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about EC2 CPU capacity test in AWS DevOps Agent.

[Assistant] This test deploys an EC2 instance that generates high CPU utilization, triggering a CloudWatch alarm that AWS DevOps Agent can detect and investigate.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is CloudFormation template for EC2 test in AWS DevOps Agent?

[Assistant]
Save the following template as `devops-agent-ec2-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - EC2 CPU stress test

Parameters:
  InstanceType:
    Type: String
    Default: t3.micro
    AllowedValues:
      - t3.micro
      - t3.small
    Description: EC2 instance type for the test

  LatestAmiId:
    Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
    Default: /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64
    Description: Latest Amazon Linux 2023 AMI

Resources:
  TestSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Security group for DevOps Agent EC2 test instance
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-sg

  TestInstance:
    Type: AWS::EC2::Instance
    Properties:
      InstanceType: !Ref InstanceType
      ImageId: !Ref LatestAmiId
      SecurityGroupIds:
        - !Ref TestSecurityGroup
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-cpu-stress
      UserData:
        Fn::Base64: |
          #!/bin/bash
          # Wait 2 minutes before starting stress to allow instance to stabilize
          sleep 120
          # Generate CPU stress using dd and yes commands
          while true; do
            yes > /dev/null &
          done

  CPUAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-high-cpu
      AlarmDescription: Test alarm for AWS DevOps Agent - High CPU utilization
      MetricName: CPUUtilization
      Namespace: AWS/EC2
      Statistic: Average
      Period: 60
      EvaluationPeriods: 2
      Threshold: 80
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: InstanceId
          Value: !Ref TestInstance
      Tags:
        - Key: devops-agent-test
          Value: 'true'

Outputs:
  InstanceId:
    Description: ID of the test EC2 instance
    Value: !Ref TestInstance
  AlarmName:
    Description: Name of the CloudWatch alarm
    Value: !Ref CPUAlarm
  SecurityGroupId:
    Description: ID of the test security group
    Value: !Ref TestSecurityGroup
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about CloudFormation template for EC2 test in AWS DevOps Agent.

[Assistant]
Save the following template as `devops-agent-ec2-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - EC2 CPU stress test

Parameters:
  InstanceType:
    Type: String
    Default: t3.micro
    AllowedValues:
      - t3.micro
      - t3.small
    Description: EC2 instance type for the test

  LatestAmiId:
    Type: AWS::SSM::Parameter::Value<AWS::EC2::Image::Id>
    Default: /aws/service/ami-amazon-linux-latest/al2023-ami-kernel-default-x86_64
    Description: Latest Amazon Linux 2023 AMI

Resources:
  TestSecurityGroup:
    Type: AWS::EC2::SecurityGroup
    Properties:
      GroupDescription: Security group for DevOps Agent EC2 test instance
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-sg

  TestInstance:
    Type: AWS::EC2::Instance
    Properties:
      InstanceType: !Ref InstanceType
      ImageId: !Ref LatestAmiId
      SecurityGroupIds:
        - !Ref TestSecurityGroup
      Tags:
        - Key: devops-agent-test
          Value: 'true'
        - Key: Name
          Value: devops-agent-test-cpu-stress
      UserData:
        Fn::Base64: |
          #!/bin/bash
          # Wait 2 minutes before starting stress to allow instance to stabilize
          sleep 120
          # Generate CPU stress using dd and yes commands
          while true; do
            yes > /dev/null &
          done

  CPUAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-high-cpu
      AlarmDescription: Test alarm for AWS DevOps Agent - High CPU utilization
      MetricName: CPUUtilization
      Namespace: AWS/EC2
      Statistic: Average
      Period: 60
      EvaluationPeriods: 2
      Threshold: 80
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: InstanceId
          Value: !Ref TestInstance
      Tags:
        - Key: devops-agent-test
          Value: 'true'

Outputs:
  InstanceId:
    Description: ID of the test EC2 instance
    Value: !Ref TestInstance
  AlarmName:
    Description: Name of the CloudWatch alarm
    Value: !Ref CPUAlarm
  SecurityGroupId:
    Description: ID of the test security group
    Value: !Ref TestSecurityGroup
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Deploy the EC2 test in AWS DevOps Agent?

[Assistant]
```bash
aws cloudformation create-stack \
  --stack-name devops-agent-ec2-test \
  --template-body file://devops-agent-ec2-test.yaml \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Deploy the EC2 test in AWS DevOps Agent.

[Assistant]
```bash
aws cloudformation create-stack \
  --stack-name devops-agent-ec2-test \
  --template-body file://devops-agent-ec2-test.yaml \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Auto-execution and monitoring in AWS DevOps Agent?

[Assistant]
After deployment:
1. The EC2 instance launches and waits 2 minutes for stabilization
2. The CPU stress script begins, driving CPU utilization above 80%
3. CloudWatch collects metrics every 60 seconds
4. After 2 consecutive periods above 80%, the alarm transitions to ALARM state
5. AWS DevOps Agent detects the alarm and begins its investigation

Expected timeline: The alarm should trigger approximately 4-5 minutes after stack creation completes.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Auto-execution and monitoring in AWS DevOps Agent.

[Assistant]
After deployment:
1. The EC2 instance launches and waits 2 minutes for stabilization
2. The CPU stress script begins, driving CPU utilization above 80%
3. CloudWatch collects metrics every 60 seconds
4. After 2 consecutive periods above 80%, the alarm transitions to ALARM state
5. AWS DevOps Agent detects the alarm and begins its investigation

Expected timeline: The alarm should trigger approximately 4-5 minutes after stack creation completes.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Monitor the alarm state in AWS DevOps Agent?

[Assistant]
```bash
aws cloudwatch describe-alarms \
  --alarm-names devops-agent-test-high-cpu \
  --region <REGION> \
  --query 'MetricAlarms[0].StateValue'
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Monitor the alarm state in AWS DevOps Agent.

[Assistant]
```bash
aws cloudwatch describe-alarms \
  --alarm-names devops-agent-test-high-cpu \
  --region <REGION> \
  --query 'MetricAlarms[0].StateValue'
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Lambda error rate test in AWS DevOps Agent?

[Assistant] This test deploys a Lambda function that intentionally throws errors, generating a high error rate that AWS DevOps Agent can detect.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Lambda error rate test in AWS DevOps Agent.

[Assistant] This test deploys a Lambda function that intentionally throws errors, generating a high error rate that AWS DevOps Agent can detect.


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is CloudFormation template for Lambda test in AWS DevOps Agent?

[Assistant]
Save the following template as `devops-agent-lambda-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - Lambda error rate test

Resources:
  TestFunctionRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-lambda-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: lambda.amazonaws.com
            Action: sts:AssumeRole
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  TestFunction:
    Type: AWS::Lambda::Function
    Properties:
      FunctionName: devops-agent-test-error-function
      Runtime: python3.12
      Handler: index.handler
      Role: !GetAtt TestFunctionRole.Arn
      Timeout: 10
      Tags:
        - Key: devops-agent-test
          Value: 'true'
      Code:
        ZipFile: |
          import json
          import random

          def handler(event, context):
              # 80% of invocations will fail
              if random.random() < 0.8:
                  raise Exception("Simulated application error: database connection timeout")
              return {
                  'statusCode': 200,
                  'body': json.dumps({'message': 'Success'})
              }

  ErrorRateAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-lambda-errors
      AlarmDescription: Test alarm for AWS DevOps Agent - High Lambda error rate
      MetricName: Errors
      Namespace: AWS/Lambda
      Statistic: Sum
      Period: 60
      EvaluationPeriods: 2
      Threshold: 5
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: FunctionName
          Value: !Ref TestFunction
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeScheduleRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-schedule-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: scheduler.amazonaws.com
            Action: sts:AssumeRole
      Policies:
        - PolicyName: InvokeLambda
          PolicyDocument:
            Version: '2012-10-17'
            Statement:
              - Effect: Allow
                Action: lambda:InvokeFunction
                Resource: !GetAtt TestFunction.Arn
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeSchedule:
    Type: AWS::Scheduler::Schedule
    Properties:
      Name: devops-agent-test-invoke-schedule
      ScheduleExpression: rate(1 minute)
      FlexibleTimeWindow:
        Mode: 'OFF'
      Target:
        Arn: !GetAtt TestFunction.Arn
        RoleArn: !GetAtt InvokeScheduleRole.Arn
        Input: '{"test": true}'

Outputs:
  FunctionName:
    Description: Name of the test Lambda function
    Value: !Ref TestFunction
  FunctionArn:
    Description: ARN of the test Lambda function
    Value: !GetAtt TestFunction.Arn
  AlarmName:
    Description: Name of the error rate alarm
    Value: !Ref ErrorRateAlarm
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about CloudFormation template for Lambda test in AWS DevOps Agent.

[Assistant]
Save the following template as `devops-agent-lambda-test.yaml`:

```yaml
AWSTemplateFormatVersion: '2010-09-09'
Description: AWS DevOps Agent test environment - Lambda error rate test

Resources:
  TestFunctionRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-lambda-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: lambda.amazonaws.com
            Action: sts:AssumeRole
      ManagedPolicyArns:
        - arn:aws:iam::aws:policy/service-role/AWSLambdaBasicExecutionRole
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  TestFunction:
    Type: AWS::Lambda::Function
    Properties:
      FunctionName: devops-agent-test-error-function
      Runtime: python3.12
      Handler: index.handler
      Role: !GetAtt TestFunctionRole.Arn
      Timeout: 10
      Tags:
        - Key: devops-agent-test
          Value: 'true'
      Code:
        ZipFile: |
          import json
          import random

          def handler(event, context):
              # 80% of invocations will fail
              if random.random() < 0.8:
                  raise Exception("Simulated application error: database connection timeout")
              return {
                  'statusCode': 200,
                  'body': json.dumps({'message': 'Success'})
              }

  ErrorRateAlarm:
    Type: AWS::CloudWatch::Alarm
    Properties:
      AlarmName: devops-agent-test-lambda-errors
      AlarmDescription: Test alarm for AWS DevOps Agent - High Lambda error rate
      MetricName: Errors
      Namespace: AWS/Lambda
      Statistic: Sum
      Period: 60
      EvaluationPeriods: 2
      Threshold: 5
      ComparisonOperator: GreaterThanThreshold
      Dimensions:
        - Name: FunctionName
          Value: !Ref TestFunction
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeScheduleRole:
    Type: AWS::IAM::Role
    Properties:
      RoleName: devops-agent-test-schedule-role
      AssumeRolePolicyDocument:
        Version: '2012-10-17'
        Statement:
          - Effect: Allow
            Principal:
              Service: scheduler.amazonaws.com
            Action: sts:AssumeRole
      Policies:
        - PolicyName: InvokeLambda
          PolicyDocument:
            Version: '2012-10-17'
            Statement:
              - Effect: Allow
                Action: lambda:InvokeFunction
                Resource: !GetAtt TestFunction.Arn
      Tags:
        - Key: devops-agent-test
          Value: 'true'

  InvokeSchedule:
    Type: AWS::Scheduler::Schedule
    Properties:
      Name: devops-agent-test-invoke-schedule
      ScheduleExpression: rate(1 minute)
      FlexibleTimeWindow:
        Mode: 'OFF'
      Target:
        Arn: !GetAtt TestFunction.Arn
        RoleArn: !GetAtt InvokeScheduleRole.Arn
        Input: '{"test": true}'

Outputs:
  FunctionName:
    Description: Name of the test Lambda function
    Value: !Ref TestFunction
  FunctionArn:
    Description: ARN of the test Lambda function
    Value: !GetAtt TestFunction.Arn
  AlarmName:
    Description: Name of the error rate alarm
    Value: !Ref ErrorRateAlarm
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Deploy the Lambda test in AWS DevOps Agent?

[Assistant]
```bash
aws cloudformation create-stack \
  --stack-name devops-agent-lambda-test \
  --template-body file://devops-agent-lambda-test.yaml \
  --capabilities CAPABILITY_NAMED_IAM \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] Tell me about Deploy the Lambda test in AWS DevOps Agent.

[Assistant]
```bash
aws cloudformation create-stack \
  --stack-name devops-agent-lambda-test \
  --template-body file://devops-agent-lambda-test.yaml \
  --capabilities CAPABILITY_NAMED_IAM \
  --region <REGION>
```


[System]
/no_think
You are Tech Advisor, an expert on AWS cloud services with deep knowledge of AWS DevOps Agent.

You have comprehensive knowledge of AWS DevOps Agent including:
- What it is and how it works (Agent Spaces, topology, dual-console architecture)
- Key features: autonomous incident response, proactive prevention, on-demand SRE tasks
- Integrations: CloudWatch, Datadog, Dynatrace, New Relic, Splunk, Grafana, PagerDuty, GitHub, GitLab, Azure DevOps, ServiceNow, Slack
- GA features: Azure/on-prem support, Triage Agent, Learned/Custom Skills, Code Indexing, Private Connections
- Pricing: $0.0083 per agent-second, free trial details, AWS Support credits
- Getting started: Agent Spaces, connecting tools, running investigations
- Security: encryption, customer managed keys, IdP integration, CloudTrail auditing
- Available regions: US East, US West, Frankfurt, Ireland, Sydney, Tokyo

Be concise and structured. Use bullet points where appropriate. Provide accurate, detailed answers.

[User] What is Triggering errors in AWS DevOps Agent?

[Assistant]
The EventBridge Scheduler automatically invokes the Lambda function every minute. Since 80% of invocations fail, the error alarm should trigger within a few minutes. You can also manually invoke the function to accelerate testing:

```bash
for i in $(seq 1 20); do
  aws lambda invoke \
    --function-name devops-agent-test-error-function \
    --payload '{"test": true}' \
    --region <REGION> \
    /tmp/lambda-response.json 2>/dev/null
  echo "Invocation $i complete"
done
```