AWS Security ChangesHomeSearch

AWS emr: Spark agents troubleshooting: heading edits; IAM scoping section removed

Service: emr · 2026-11-19 · Documentation medium

File: emr/latest/ReleaseGuide/spark-troubleshooting-agent-troubleshooting.md · Type: iam

Summary

Mostly editorial restructuring of the Apache Spark agents troubleshooting page: heading levels changed (### to ####), "FAQs" renamed to "Q&A", agent names lowercased, and wording changed from "turned on" to "enabled". Substantively, the entire "How can I get more fine-grained control over the agents' permissions?" section was deleted, including guidance on using MCP server condition keys to scope down agent access, creating a dedicated least-privilege IAM role, and the sample CloudFormation template/CLI commands for that role.

Security assessment

The diff contains no reference to a specific vulnerability, CVE, or incident, so it is not security_issue_related. However, the removed block was least-privilege guidance: it explained that the agents run as your IAM identity, described MCP condition keys to scope down agent access, and provided a dedicated-role CloudFormation template. Deleting it reduces available hardening documentation for a tool that operates with the caller's permissions, which is security-adjacent rather than a fix.

Evidence

-### How can I get more fine-grained control over the agents' permissions?

Diff

diff --git a/emr/latest/ReleaseGuide/spark-troubleshooting-agent-troubleshooting.md b/emr/latest/ReleaseGuide/spark-troubleshooting-agent-troubleshooting.md
index 35b2360..d1443e0 100644
--- a//emr/latest/ReleaseGuide/spark-troubleshooting-agent-troubleshooting.md
+++ b//emr/latest/ReleaseGuide/spark-troubleshooting-agent-troubleshooting.md
@@ -7 +7 @@
-Common errorsFAQs
+Common errorsQ&A
@@ -32 +32 @@ The error message from the Apache Spark agents is available in different ways fo
-**Troubleshooting Agent errors**
+**Troubleshooting agent errors**
@@ -39 +39 @@ The error message from the Apache Spark agents is available in different ways fo
-**Optimization Agent errors**
+**Optimization agent errors**
@@ -52 +52,3 @@ The error message from the Apache Spark agents is available in different ways fo
-### Error: MCP server failed to load
+### General errors
+
+#### Error: MCP server failed to load
@@ -69 +71 @@ The error message from the Apache Spark agents is available in different ways fo
-### Observation: Slow tool loading
+#### Observation: Slow tool loading
@@ -82 +84 @@ The error message from the Apache Spark agents is available in different ways fo
-### Error: Tool invocation failed with throttling error
+#### Error: Tool invocation failed with throttling error
@@ -89 +91 @@ The error message from the Apache Spark agents is available in different ways fo
-### Error: Tool responds with user error
+#### Error: Tool responds with user error
@@ -100 +102 @@ The error message from the Apache Spark agents is available in different ways fo
-### Error: The agent can't access your job
+#### Error: The agent can't access your job
@@ -116 +118 @@ EMR on EKS| `emr-containers:DescribeVirtualCluster`, `emr-containers:DescribeJob
-### Error: Tool responds with internal error
+#### Error: Tool responds with internal error
@@ -125 +127,3 @@ EMR on EKS| `emr-containers:DescribeVirtualCluster`, `emr-containers:DescribeJob
-### Observation: Degraded tool response quality
+### Troubleshooting agent errors
+
+#### Observation: Degraded tool response quality
@@ -127 +131 @@ EMR on EKS| `emr-containers:DescribeVirtualCluster`, `emr-containers:DescribeJob
-The Troubleshooting Agent is designed to fail gracefully when certain signals are unavailable. If the agent can't read one of your job's signals (for example, execution logs, Spark event logs, or Spark History Server data), it still returns an analysis based on what it could read. A missing permission therefore usually appears as a less complete or lower-quality analysis rather than a hard error.
+The troubleshooting agent is designed to fail gracefully when certain signals are unavailable. If the agent can't read one of your job's signals (for example, execution logs, Spark event logs, or Spark History Server data), it still returns an analysis based on what it could read. A missing permission therefore usually appears as a less complete or lower-quality analysis rather than a hard error.
@@ -139 +143 @@ Artifacts and the permissions required to analyze them Artifact (`artifacts_anal
-`spark_history_server` | Connection to your platform's Spark UI. Appears with `analyzed: false` when the agent can't reach the Spark UI, or can't read any Spark UI data. |  EMR on EC2 and EMR on EKS: `elasticmapreduce:CreatePersistentAppUI`, `elasticmapreduce:DescribePersistentAppUI`, `elasticmapreduce:GetPersistentAppUIPresignedURL`. EMR Serverless: `emr-serverless:GetDashboardForJobRun`. AWS Glue: the Spark UI permissions in the `spark_events` and `spark_query_plan` rows, plus `iam:PassRole`. Also confirm that the job run has the Spark UI turned on.  
+`spark_history_server` | Connection to your platform's Spark UI. Appears with `analyzed: false` when the agent can't reach the Spark UI, or can't read any Spark UI data. |  EMR on EC2 and EMR on EKS: `elasticmapreduce:CreatePersistentAppUI`, `elasticmapreduce:DescribePersistentAppUI`, `elasticmapreduce:GetPersistentAppUIPresignedURL`. EMR Serverless: `emr-serverless:GetDashboardForJobRun`. AWS Glue: the Spark UI permissions in the `spark_events` and `spark_query_plan` rows, plus `iam:PassRole`. Also confirm that the job run has the Spark UI enabled.  
@@ -141 +145 @@ Artifacts and the permissions required to analyze them Artifact (`artifacts_anal
-### Error: Optimization fails because Spark event data can't be read
+### Optimization agent errors
@@ -143 +147,3 @@ Artifacts and the permissions required to analyze them Artifact (`artifacts_anal
-The Optimization Agent requires the run's Spark event data. If it can't read that data, it stops and returns an error.
+#### Error: Optimization fails because Spark event data can't be read
+
+The optimization agent requires the run's Spark event data. If it can't read that data, it stops and returns an error.
@@ -147 +153 @@ The Optimization Agent requires the run's Spark event data. If it can't read tha
-The Optimization Agent reads Spark event data from the EMR Serverless Spark History Server, which relies on managed log storage. The analysis fails if managed log storage is turned off for the run, or if the run's logs are past the 30-day retention period. The agent returns a message similar to the following:
+The optimization agent reads Spark event data from the EMR Serverless Spark History Server, which relies on managed log storage. The analysis fails if managed log storage is turned off for the run, or if the run's logs are past the 30-day retention period. The agent returns a message similar to the following:
@@ -156 +162 @@ The same message also appears right after a run finishes, before its logs are av
-The Optimization Agent reads the Spark event logs that an AWS Glue run wrote to Amazon S3 through the Glue Studio Spark UI. The run must have the Spark UI turned on: set `--enable-spark-ui` to `true` and set `--spark-event-logs-path`. The maximum supported Spark event log size is 512 MB, and 1 GB for rolling logs. Runs that wrote event logs only to the legacy path (`--enable-spark-ui-legacy-path`) aren't supported.
+The optimization agent reads the Spark event logs that an AWS Glue run wrote to Amazon S3 through the Glue Studio Spark UI. The run must have the Spark UI enabled: set `--enable-spark-ui` to `true` and set `--spark-event-logs-path`. The maximum supported Spark event log size is 512 MB, and 1 GB for rolling logs. Runs that wrote event logs only to the legacy path (`--enable-spark-ui-legacy-path`) aren't supported.
@@ -158 +164 @@ The Optimization Agent reads the Spark event logs that an AWS Glue run wrote to
-If the run didn't have the Spark UI turned on, or didn't write event logs to a supported path, the agent returns a message similar to the following:
+If the run didn't have the Spark UI enabled, or didn't write event logs to a supported path, the agent returns a message similar to the following:
@@ -168 +174 @@ If the run wrote only legacy-format event logs, the agent returns a message simi
-To fix either case, run the job again with the Spark UI turned on, and then analyze the new run.
+To fix either case, run the job again with the Spark UI enabled, and then analyze the new run.
@@ -183 +189 @@ For more information, see [IAM permissions for the Apache Spark agents](./spark-
-### Error: Optimization isn't supported for the platform, version, or run state
+#### Error: Optimization isn't supported for the platform, version, or run state
@@ -185 +191 @@ For more information, see [IAM permissions for the Apache Spark agents](./spark-
-The Optimization Agent refuses a run that it can't optimize and returns the reason.
+The optimization agent refuses a run that it can't optimize and returns the reason.
@@ -199 +205 @@ The Optimization Agent refuses a run that it can't optimize and returns the reas
-  * **Run state** – The Optimization Agent analyzes successful runs only. A run that was stopped, canceled, or timed out returns a message similar to the following, where `STATE` is the run's state:
+  * **Run state** – The optimization agent analyzes successful runs only. A run that was stopped, canceled, or timed out returns a message similar to the following, where `STATE` is the run's state:
@@ -210 +216 @@ A run in any other state, such as a run that's still in progress, returns a mess
-### Observation: Optimization recommendations on EMR Serverless miss application-level settings
+#### Observation: Optimization recommendations on EMR Serverless miss application-level settings
@@ -212 +218 @@ A run in any other state, such as a run that's still in progress, returns a mess
-If the Optimization Agent's recommendations don't account for your EMR Serverless application's settings, the role might lack `emr-serverless:GetApplication`. The agent completes the analysis without those settings and doesn't indicate that they were missing. For recommendations that account for your application's settings, grant `emr-serverless:GetApplication` to the role. For more information, see [IAM permissions for the Apache Spark agents](./spark-troubleshooting-agent-iam-setup.html).
+If the optimization agent's recommendations don't account for your EMR Serverless application's settings, the role might lack `emr-serverless:GetApplication`. The optimization agent completes the analysis without those settings and doesn't indicate that they were missing. For recommendations that account for your application's settings, grant `emr-serverless:GetApplication` to the role. For more information, see [IAM permissions for the Apache Spark agents](./spark-troubleshooting-agent-iam-setup.html).
@@ -214 +220 @@ If the Optimization Agent's recommendations don't account for your EMR Serverles
-### Observation: Baseline comparison falls back to single-run analysis
+#### Observation: Baseline comparison falls back to single-run analysis
@@ -216 +222 @@ If the Optimization Agent's recommendations don't account for your EMR Serverles
-You can name one baseline run per request. If you request a baseline comparison but the Optimization Agent can't use the baseline that you named, the analysis still completes as a single-run analysis.
+You can name one baseline run per request. If you request a baseline comparison but the optimization agent can't use the baseline that you named, the analysis still completes as a single-run analysis.
@@ -243 +249 @@ For more information, see [Optimization features and capabilities](./spark-optim
-## FAQs
+## Q&A
@@ -245 +251 @@ For more information, see [Optimization features and capabilities](./spark-optim
-### Should I turn on the "trust" setting for the tools by default?
+### Should I enable the "trust" setting for the tools by default?
@@ -247 +253 @@ For more information, see [Optimization features and capabilities](./spark-optim
-Don't turn on the "trust" setting by default for all tool calls initially, and work in a git-versioned build environment when you accept code recommendations. Review each tool execution to understand what changes are being made.
+Don't turn on the "trust" setting by default for all tool calls initially, and operate on a git-versioned build environment when you accept code recommendations. Review each tool execution to understand what changes are being made.
@@ -253 +259 @@ No. Neither agent modifies, starts, or stops your jobs. They also don't change y
-  * **Troubleshooting Agent** – Returns the root cause and recommended fixes. For a code issue, it might call the code recommendation tool, which suggests a code change for you to review and apply.
+  * **Troubleshooting agent** – Returns the root cause and recommended fixes. For a code issue, it might call the code recommendation tool, which suggests a code change for you to review and apply.
@@ -255 +261 @@ No. Neither agent modifies, starts, or stops your jobs. They also don't change y
-  * **Optimization Agent** – Recommends configuration, infrastructure, and data changes. You apply the changes to your job or application, and then run the job again.
+  * **Optimization agent** – Recommends configuration, infrastructure, and data changes. You apply the changes to your job or application, and then run the job again.
@@ -270,151 +275,0 @@ Customer data and files remain within your chosen AWS Region and aren't transmit
-### How can I get more fine-grained control over the agents' permissions?
-
-Because the agents run as your IAM identity, you control what they can reach. You choose which identity they use and what that identity can do. There are two ways to tighten this access.
-
-**Option 1: Restrict your existing role with condition keys**
-
-If you keep using your own identity, you can limit what the agents can do compared with what you can do yourself, without creating a new role. This is the quickest option. The SMUS MCP server adds two condition keys to every request, which you can reference in your IAM policies to scope down the agents' access. For more information, see [Condition keys for MCP server requests](./spark-troubleshooting-agent-iam-setup.html#spark-troubleshooting-agent-mcp-permissions-change).
-
-**Option 2: Give the agents a dedicated role**
-
-For the tightest control, create a dedicated IAM role that's scoped to only the access that you want the agents to have, and point the MCP client at a profile that assumes it. For the complete set of permissions that the agents need at full capability, see [IAM permissions for the Apache Spark agents](./spark-troubleshooting-agent-iam-setup.html).
-
-The following AWS CloudFormation template is a quick way to create the role and its assume-role profile. The template is a sample. Modify it to meet your requirements.
-
-Note
-
-The template doesn't grant `iam:PassRole` on the AWS Glue job execution role, which both agents need for AWS Glue. Add `iam:PassRole` to the role as described in [Option B: AWS Glue](./spark-troubleshooting-agent-iam-setup.html#spark-troubleshooting-agent-iam-glue).
-
-The template creates an IAM role that has permissions to call the MCP server and the permissions required for the selected platform.
-
-Choose one of the **Launch Stack** buttons in the following table. This launches the stack on the AWS CloudFormation console in the respective Region.
-
-Region | Launch  
----|---  
-US East (Ohio) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=us-east-2#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-us-east-2.s3.us-east-2.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-US East (N. Virginia) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=us-east-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-us-east-1.s3.us-east-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-US West (Oregon) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=us-west-2#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-us-west-2.s3.us-west-2.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Asia Pacific (Tokyo) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-ap-northeast-1.s3.ap-northeast-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Europe (Ireland) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=eu-west-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-eu-west-1.s3.eu-west-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Asia Pacific (Singapore) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-ap-southeast-1.s3.ap-southeast-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Asia Pacific (Sydney) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=ap-southeast-2#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-ap-southeast-2.s3.ap-southeast-2.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Canada (Central) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=ca-central-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-ca-central-1.s3.ca-central-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-South America (São Paulo) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=sa-east-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-sa-east-1.s3.sa-east-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Europe (Frankfurt) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=eu-central-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-eu-central-1.s3.eu-central-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Europe (Stockholm) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=eu-north-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-eu-north-1.s3.eu-north-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Europe (London) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=eu-west-2#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-eu-west-2.s3.eu-west-2.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Europe (Paris) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=eu-west-3#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-eu-west-3.s3.eu-west-3.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Asia Pacific (Seoul) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=ap-northeast-2#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-ap-northeast-2.s3.ap-northeast-2.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-Asia Pacific (Mumbai) |  [ ![Launch Stack button with information icon.](/images/emr/latest/ReleaseGuide/images/cloudformation-launch-stack-button.png) ](https://console.aws.amazon.com/cloudformation/home?region=ap-south-1#/stacks/new?templateURL=https%3A%2F%2Fsmus-mcp-cfn-template-prod-ap-south-1.s3.ap-south-1.amazonaws.com%2Fcloudformation%2Fspark-troubleshooting-mcp-setup.yaml&stackName=spark-troubleshooting-mcp-setup)  
-  
-Proceed to the **Specify stack details** page and enter the **Stack name**. Enter additional information under **Parameters**. Provide the following information, and then create the stack.
-
-  * **TroubleshootingRoleName** – Name of the agent IAM role to create.
-
-  * **EnableEMREC2** – Enable EMR on EC2 permissions (default: true).
-
-  * **EnableEMRServerless** – Enable EMR Serverless permissions (default: true).
-
-  * **EnableEMREKS** – Enable EMR on EKS permissions (default: true).
-
-  * **EnableGlue** – Enable AWS Glue permissions (default: true).
-
-  * **CloudWatchKmsKeyArn** – (Optional) ARN of an existing KMS key for CloudWatch Logs encryption (EMR Serverless only; leave empty for default encryption).
-
-
-
-
-You can also download and review [the CloudFormation template](https://github.com/aws-samples/aws-emr-utilities/blob/03c20fece616de23ec0ea5389f0113a5bc65fc3a/utilities/apache-spark-agents/spark-troubleshooting-agent-cloudformation/spark-troubleshooting-mcp-setup.yaml), specify the preceding options, and launch the template yourself with AWS CloudFormation CLI commands. The following is an example:
-    
-    
-    # deploy the stack with CloudFormation CLI commands
-    aws cloudformation deploy \
-      --template-file spark-troubleshooting-mcp-setup.yaml \
-      --stack-name spark-troubleshooting-mcp-setup \
-      --region <your Spark MCP server launch region> \
-      --capabilities CAPABILITY_NAMED_IAM \
-      --parameter-overrides \
-        TroubleshootingRoleName=spark-troubleshooting-role
-    
-    
-    # retrieve the 1-line instruction to set the local environment variables, which will be used for the following MCP server configuration
-    aws cloudformation describe-stacks \
-      --stack-name spark-troubleshooting-mcp-setup \
-      --region <your Spark MCP server launch region> \
-      --query "Stacks[0].Outputs[?OutputKey=='ExportCommand'].OutputValue" \
-      --output text
-
-Open the **Outputs** tab (or retrieve the value from the preceding `describe-stacks` command) and copy the one-line instruction from the CloudFormation output to set your environment variables. Then run it in your local environment. The following is an example one-line instruction:
-    
-    
-    export SMUS_MCP_REGION=<your mcp server launch region> && export IAM_ROLE=arn:aws:iam::111122223333:role/spark-troubleshooting-role-xxxxxx
-
-Then run the following commands locally to set up the IAM profile and MCP server configuration. This creates a profile (`smus-mcp-profile`) that assumes the dedicated role:
-    
-    
-    # Step 1: Configure AWS CLI Profile
-    aws configure set profile.smus-mcp-profile.role_arn ${IAM_ROLE}
-    aws configure set profile.smus-mcp-profile.source_profile <AWS CLI Profile to assume the IAM role - ex: default>
-    aws configure set profile.smus-mcp-profile.region ${SMUS_MCP_REGION}
-    
-    # Step 2: if you are using kiro CLI, use the following command to add the MCP configuration
-    # Add Spark Troubleshooting MCP Server
-    kiro-cli-chat mcp add \
-        --name "sagemaker-unified-studio-mcp-troubleshooting" \
-        --command "uvx" \
-        --args "[\"mcp-proxy-for-aws@latest\",\"https://sagemaker-unified-studio-mcp.${SMUS_MCP_REGION}.api.aws/spark-troubleshooting/mcp\", \"--service\", \"sagemaker-unified-studio-mcp\", \"--profile\", \"smus-mcp-profile\", \"--region\", \"${SMUS_MCP_REGION}\", \"--read-timeout\", \"180\"]" \
-        --timeout 180000 \
-        --scope global
-