awslabs / awslabs/agentcore-samples
06-workshops - [Bug] 07-Tool Access with Policy: No resume/idempotency — re-running deploy hits 'already exists' errors
Open
06-workshops
bug
- Dominant language
- Python
- Stars
- 3.4k
- Forks
- 1.3k
- Avg merge
- 1d 22h
- Merged PRs (30d)
- 30
Description
**In which component is this bug present?**
- [ ] 01-AgentCore-runtime
- [x] 02-AgentCore-gateway
- [ ] 03-AgentCore-identity
- [ ] 04-AgentCore-memory
- [ ] 05-AgentCore-tools
- [ ] 06-AgentCore-observability
- [ ] 07-AgentCore-E2E
**Bug Description**
If the deploy script fails mid-deploy, re-running hits "already exists" errors with no way to continue. There is no idempotency or resume capability.
**Suggested Fix**
Add idempotent checks (skip existing resources, resume from last step). For example, check if a resource already exists before attempting to create it, and skip creation if it does.
Contributor guide
Assessment
This issue has not been assessed yet.