chore(cli-integ): cc-hotswap tests fail because Bedrock Agents is in maintenance mode - #1793
Merged
aws-cdk-automation merged 1 commit intoJul 31, 2026
Conversation
Contributor
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.Scanned FilesNone |
aws-cdk-automation
enabled auto-merge
July 31, 2026 15:05
iankhou
approved these changes
Jul 31, 2026
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #1793 +/- ##
==========================================
+ Coverage 90.03% 90.06% +0.03%
==========================================
Files 80 80
Lines 12119 12119
Branches 1699 1701 +2
==========================================
+ Hits 10911 10915 +4
+ Misses 1179 1175 -4
Partials 29 29
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
1 task
aws-cdk-automation
deleted the
mrgrain/test/cli-integ/bedrock-agent-maintenance-mode
branch
July 31, 2026 15:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The two Cloud Control hotswap integration tests started failing everywhere on 2026-07-31. Amazon Bedrock Agents (now "Bedrock Agents Classic") entered maintenance mode on 2026-07-30: accounts without prior service usage in the last 12 months get an
AccessDeniedExceptionfromCreateAgentwith the message "Bedrock Agents is in Maintenance Mode. New agent creation is not available for accounts without prior service usage." (see https://docs.aws.amazon.com/bedrock/latest/userguide/agents-classic-maintenance-mode.html). Fresh or recycled Atmosphere environments never have that usage history, allowlisting is automatic, and there is no exception process — soAWS::Bedrock::Agentcan never be created again in our test accounts.The
AWS::Bedrock::Agentin thecc-hotswaptest app is therefore replaced with anAWS::CloudWatch::Dashboard, which is also routed through the Cloud Control hotswap path and keeps the coverage that mattered here: a CCAPI resource whose hotswapped property is built from a reference to another resource in the stack, so attribute resolution during hotswap is still exercised. The dashboard markdown carries the DynamoDB table name plus both dynamic values, mirroring what the agent instruction did, which keeps the "cache is used, only one resource is hotswapped" assertion meaningful.With that gone, no test needs to be pinned to regions where Bedrock Agents is available, so the
BEDROCK_AGENT_REGIONSlist is removed and both tests now run in all Atmosphere regions. Hotswap support forAWS::Bedrock::Agentintoolkit-libis deliberately left in place: existing customers with prior usage can still deploy those agents, they just cannot be created in new accounts.Checklist
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license