Repository navigation
Commit 260f4aa
kjjanaki
feat(mcp): EMR Spark Troubleshooting MCP integration for AWS DevOps Agent
Adds mcp/emr-spark-troubleshooting-mcp-connect/ — a single
CloudFormation template that registers the AWS-managed Apache Spark
Troubleshooting MCP server (SageMaker Unified Studio) with AWS DevOps
Agent using SigV4 auth.
What deploys
------------
- IAM role trusted by aidevops.amazonaws.com with SourceAccount /
SourceArn conditions scoped to arn:aws:aidevops:<region>:<account>:
service/* (matches the console-suggested scope).
- Conditional inline policies for MCP invoke, EMR on EC2, EMR
Serverless, Glue, scoped S3 read on caller-supplied Spark artifacts
buckets, and optional CloudWatch Logs KMS decrypt. IAM shape mirrors
the AWS canonical spark-troubleshooting-mcp-setup template, tightened
so S3 access is scoped to caller-supplied bucket names instead of
Resource: '*'.
- AWS::DevOpsAgent::Service (native CFN) with MCPServerSigV4 details —
registers the MCP endpoint as a capability provider.
Attaching the registered Service to an Agent Space is a one-time manual
step performed once via the DevOps Agent console — this is intentional
and out of scope for the template.
No VPC, VPC endpoint, or Private Connection
-------------------------------------------
Earlier drafts of this template deployed a VPC endpoint for
sagemaker-unified-studio-mcp and an AWS::DevOpsAgent::PrivateConnection.
Both were removed after PR review confirmed AWS DevOps Agent reaches
SigV4-authenticated MCPs over the AWS backbone using each MCP's
publicly-resolvable endpoint. The DevOps Agent API also explicitly
rejects PrivateConnectionName on SigV4 Services. Any VPC endpoint /
Private Connection alongside a SigV4 MCP is inert for the DevOps Agent
→ MCP data path.
Region support
--------------
CFN Rules block fail-fasts outside the 11 regions where both AWS DevOps
Agent and the SageMaker Unified Studio MCP service are available.
Tested
------
- cfn-lint clean.
- Stack CREATE_COMPLETE in ~30 seconds, DELETE_COMPLETE in ~20 seconds.
- Verified Service registered with the correct SigV4 details and role
ARN via aws cloudformation describe-stacks.1 parent 3a5dd7f commit 260f4aa
4 files changed
Lines changed: 522 additions & 0 deletions
File tree
- mcp/emr-spark-troubleshooting-mcp-connect
- cloudformation
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
59 | 60 | | |
60 | 61 | | |
61 | 62 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
0 commit comments