How engineering teams inspect EC2, ECS, S3, and CloudWatch Logs by chatting — without handing out long-lived AWS keys
| Product | Role |
|---|---|
| oshaani.com | AI agent that reasons, asks follow-ups, and calls Marketplace tools |
| market.oshaani.com | Hosted AWS MCP (market.oshaani.com/aws) — assumes your IAM role, runs read-only DevOps tools, bills per call |
1. The problem
AWS DevOps work is often a browser marathon:
- Jump into the EC2 console to see which instances are running
- Open ECS to check desired vs running counts after a deploy
- Hunt CloudWatch log groups and paste Logs Insights queries
- List S3 prefixes to confirm an artifact landed
That context-switching burns on-call time. Sharing static access keys with a chatbot is worse — keys leak, rotate slowly, and usually grant far more than needed.
What teams want instead:
- Ask in natural language: “What’s failing in prod ECS?”
- Let an agent query their AWS account safely
- Keep credentials as a cross-account role + external ID, not pasted secrets
- Pay only when tools actually run
That is the oshaani.com + market.oshaani.com AWS path.
2. The solution in one sentence
Create a least-privilege IAM role that trusts Marketplace → connect it on market.oshaani.com/aws → attach that MCP to an agent on oshaani.com → chat about infrastructure. The agent calls read-only AWS tools (EC2, S3, CloudWatch Logs, ECS); Marketplace assumes the role with STS and an external ID; no long-lived keys are stored.
Engineer (chat on oshaani.com)
│
▼
Oshaani agent decides which AWS tool to call
│
▼
market.oshaani.com/aws (MCP + STS AssumeRole + ExternalId)
│
▼
Customer AWS account (IAM role OshaaniMarketplaceAccess)
│
▼
Tool result (instances, logs, ECS services, S3 listing)
│
▼
Agent summarizes for the engineer in chat
3. Who each product is for
oshaani.com — the DevOps brain
- Hosts the agent that understands “why is api-prod stuck?”
- Attaches Marketplace MCP connections to an agent (or hired digital employee)
- Signs short-lived tokens so the agent can call
market.oshaani.comas that user - Keeps conversation memory across a triage session
- Charges oshaani credits for model use; Marketplace charges per tool call
market.oshaani.com — the AWS tool gateway
- Publishes the AWS MCP server at
https://market.oshaani.com/aws - Stores role ARN + external ID + default region (never static access keys)
- Assumes the customer role via STS for each tool session
- Exposes read-only tools used in real on-call workflows
- Default 2 credits per tool call (pay as you go)
- Optional SaaS or on-prem Marketplace deployment
Together: Marketplace opens a safe door into AWS → oshaani.com walks through it with an agent.
4. What the AWS MCP can do today
All tools are read-only and scoped by the IAM permissions you attach to the role.
| Tool | What the agent can ask |
|---|---|
ec2_describe_instances |
List instances by state, IDs, type, IPs, Name tag |
s3_list_buckets |
List buckets in the account |
s3_list_objects |
List objects/prefixes in a bucket |
logs_list_groups |
List CloudWatch log groups (optional prefix) |
logs_query |
Run Logs Insights and wait for rows (errors, latency spikes) |
ecs_list_clusters |
List clusters with running/pending task counts |
ecs_list_services |
Per-service desired/running/pending and deployment rollout |
Suggested IAM actions (from the Marketplace setup guide):
ec2:DescribeInstances, s3:ListAllMyBuckets, s3:ListBucket, logs:DescribeLogGroups, logs:StartQuery, logs:GetQueryResults, logs:StopQuery, ecs:ListClusters, ecs:DescribeClusters, ecs:ListServices, ecs:DescribeServices.
Narrow ARNs further for production. Do not reuse an instance-profile role your apps already run as — create a dedicated OshaaniMarketplaceAccess role.
5. Case narrative: “Northline Commerce” (illustrative)
Team: Mid-size e-commerce platform on ECS Fargate + CloudWatch + S3 artifacts.
Pain: After each release, on-call spent 20–40 minutes clicking consoles to confirm services rolled out and to find ERROR lines.
Goal: Ask the agent in chat; get a structured status in under a minute, without AWS keys in Slack or agent config.
What they set up
-
AWS IAM
- RoleOshaaniMarketplaceAccess
- Trust: Marketplace principal ARN + Require external ID
- Permissions: the read-only policy from market.oshaani.com/docs/aws/ -
market.oshaani.com
- Sign in with oshaani.com
- Open AWS in the catalog → add connection: role ARN, external ID, default regionap-south-1
- Test configuration until it reports the assumed role/account -
oshaani.com
- Open (or hire) a DevOps-oriented agent
- Attach the Marketplace AWS MCP connection to that agent
- Instruct the agent: “Prefer ECS + Logs Insights for prod incidents. Never invent ARNs. Summarize next actions.”
What a typical triage looks like
| Step | Actor | Outcome |
|---|---|---|
| 1 | Engineer: “Did api-prod finish deploying in ECS?” |
Agent calls ecs_list_services on the prod cluster |
| 2 | Marketplace | STS AssumeRole with external ID → describe services |
| 3 | Agent | Reports desired vs running and rollout state |
| 4 | Engineer: “Any ERROR in /ecs/api-prod last 30 minutes?” |
Agent runs logs_query with a Logs Insights filter |
| 5 | Agent | Returns matching rows + a plain-language summary |
| 6 | Engineer: “List running EC2 bastions in ap-south-1” | ec2_describe_instances with state=running |
No console hopping. No shared admin keys. Credits only when tools run.
6. Setup checklist (production)
A. AWS account
- [ ] Create IAM role (suggested name:
OshaaniMarketplaceAccess) - [ ] Trust Marketplace principal + external ID (generate with
openssl rand -hex 24) - [ ] Attach least-privilege read-only policy covering the tools you need
- [ ] Copy the role ARN (
arn:aws:iam::ACCOUNT:role/...)
Full click-path and JSON policies: market.oshaani.com/docs/aws/#setup-guide
B. Marketplace connection
- [ ] Sign in at market.oshaani.com with oshaani.com
- [ ] Catalog → AWS → enter role ARN, external ID, default region
- [ ] Session duration: leave 900s unless you raise the role max session
- [ ] Click Test configuration — must show the assumed identity
C. Agent on oshaani.com
- [ ] Create or open a DevOps / SRE agent
- [ ] Attach the AWS Marketplace MCP connection to the agent
- [ ] Add persona rules: regions to prefer, prod cluster names, “never guess account IDs”
- [ ] Confirm oshaani credits for chat + Marketplace credits for tool calls
D. Operations
- [ ] Rotate external ID if it may have leaked; update trust policy + connection together
- [ ] Review CloudTrail for
AssumeRoleby the Marketplace principal - [ ] Keep permissions read-only until you deliberately expand the product surface
- [ ] Use a separate AWS connection per environment (dev / staging / prod) if you want hard isolation
7. Architecture details (for technical readers)
| Layer | Responsibility |
|---|---|
| oshaani.com agent | Plans which MCP tool to call; summarizes results |
| OIDC access token | Short-lived RS256 token (audience = Marketplace) minted per request |
market.oshaani.com/aws |
MCP Streamable HTTP endpoint for the AWS provider |
| Connection config | role_arn, external_id, region, session_duration |
| STS AssumeRole | Temporary credentials cached briefly in-process on Marketplace |
| Customer IAM role | Enforces what the agent is allowed to see |
| Credits | Marketplace default_price_per_call (AWS default: 2) + oshaani model usage |
Security properties that matter:
- No static keys stored on Marketplace
- External ID stops confused-deputy role assumption
- Read-only tools match the guide’s action list
- Dedicated role — not the same role your ECS tasks use
8. Results teams typically care about
| Metric | Without agent + MCP | With oshaani + Marketplace AWS |
|---|---|---|
| Time to “is deploy healthy?” | 15–40 min of console clicks | Seconds to a couple of minutes in chat |
| Credential risk | Shared keys / broad SSO sessions | Role + external ID, temporary STS |
| On-call cognitive load | Context switch across 4 consoles | One conversation with tool traces |
| Cost model | Seat licenses for extra tools | Pay per tool call + agent usage |
| Auditability | Mixed console history | CloudTrail AssumeRole + agent chat log |
9. Best practices
- Start with the guide’s read-only policy; expand only when a tool returns
AccessDeniedfor a needed call. - Put prod cluster names and log group prefixes in the agent persona so queries stay narrow.
- Prefer Logs Insights with a short lookback (e.g. 30–60 minutes) to avoid timeouts.
- Use one Marketplace connection per AWS account (or per env).
- Teach the agent to cite instance IDs / service names from tool output — never invent ARNs.
- Review CloudTrail monthly for unexpected AssumeRole activity.
- Pair with other Marketplace MCPs (GitHub, Jenkins, Grafana) when the incident spans code → build → runtime.
10. When not to automate this way (yet)
- Destructive changes (terminate instances, scale services, delete buckets) — current AWS MCP is read-only
- Break-glass root / Organization management
- Compliance environments that forbid any cross-account assume until legal reviews the Marketplace principal
For those, keep humans in the AWS console; use the agent for visibility and triage first.
11. Call to action
- Follow the AWS setup guide: market.oshaani.com/docs/aws/
- Connect the role on market.oshaani.com and test it
- Attach the AWS MCP to your agent on oshaani.com and ask:
“List ECS services in my prod cluster and any ERROR logs from the last hour.”
Questions: WhatsApp +91 72910 59787 · email info@oshaani.com
Case study based on the AWS MCP provider shipping on market.oshaani.com (cross-account IAM role + external ID, tools for EC2 / S3 / CloudWatch Logs / ECS) and agent MCP attach on oshaani.com.
Comments 0
Leave a Comment
No comments yet. Be the first to comment!