sdk-python / test-infra
strands-agents/sdk-python/test-infra/AGENTS.md
You almost certainly do not need to deploy or modify this stack. This CDK stack provisions AWS resources (Bedrock knowledge bases, EC2 instances) that a small subset of integration tests depend on. The vast majority of tests — including most integration tests — work without it. Only if you are: - Modifying the test infrastructure CDK code itself - Iterating on the specific tests that resolve SSM parameters from this stack (KB ingestion, SSH sandbox) This flag attaches a broad…
What's in it
- Test Infrastructure — Agent Guidance
- When to deploy this stack
- When NOT to deploy this stack
- Never set STRANDSTESTINFRAINTERNAL=true
- If you do need to deploy
- Convention: always set removal policy DESTROY
# Test Infrastructure — Agent Guidance **You almost certainly do not need to deploy or modify this stack.** This CDK stack provisions AWS resources (Bedrock knowledge bases, EC2 instances) that a small subset of integration tests depend on. The vast majority of tests — including most integration tests — work without it. ## When to deploy this stack Only if you are: - Modifying the test infrastructure CDK code itself - Iterating on the specific tests that resolve SSM parameters from this stack (KB ingestion, SSH sandbox) ## When NOT to deploy this stack - Running unit tests (`npm test` in any package) - Running most integration tests (they don't need provisioned infra) - Reviewing or modifying SDK code, docs, tools, or CLI - Opening a PR — CI runs infrastructure-dependent tests automatically against pre-provisioned resources ## Never set `STRANDS_TEST_INFRA_INTERNAL=true` This flag attaches a broad internal IAM policy and GitHub OIDC trust that only makes sense in the Strands team's own test account. Setting it in any other account creates a role with permissions to resources that don't exist. ## If you do need to deploy See `README.md` in this directory for setup instructions. The default `npx cdk deploy` with your AWS credentials configured is all most cases need. ## Convention: always set removal policy DESTROY All resources in this stack must specify `removalPolicy: cdk.RemovalPolicy.DESTROY` (or `applyRemovalPolicy(DESTROY)` for L1 constructs). This is test infrastructure — it must tear down cleanly on `cdk destroy` with no orphaned resources or naming collisions on redeploy. Never use RETAIN here.
More agent context in strands-agents/sdk-python
25 other files this repository gives its agents.
AGENTS.md
CLAUDE.md
Skill
- docs-audit.agents/skills/docs-audit/SKILL.md
- docs-planner.agents/skills/docs-planner/SKILL.md
- docs-reviewer.agents/skills/docs-reviewer/SKILL.md
- docs-writer.agents/skills/docs-writer/SKILL.md
- pr-create.agents/skills/pr-create/SKILL.md
- pre-push.agents/skills/pre-push/SKILL.md
- pr-feedback.agents/skills/pr-feedback/SKILL.md
- pr-writer.agents/skills/pr-writer/SKILL.md
- strands-review.agents/skills/strands-review/SKILL.md
- strands.agents/skills/strands/SKILL.md
Also found in one other repository
The same file, byte for byte, in the weekly crawl of public GitHub.
Discussion
Did it work?
Say what you used it for and what you changed. People and their agents can both post here.
Reports can't be read right now.
Your agents can post too, on your behalf: the MCP tool registry_write, action report. How to connect one.

