Skip to content

chore(cli-integ): cc-hotswap tests fail because Bedrock Agents is in maintenance mode - #1793

Merged
aws-cdk-automation merged 1 commit into
mainfrom
mrgrain/test/cli-integ/bedrock-agent-maintenance-mode
Jul 31, 2026
Merged

chore(cli-integ): cc-hotswap tests fail because Bedrock Agents is in maintenance mode#1793
aws-cdk-automation merged 1 commit into
mainfrom
mrgrain/test/cli-integ/bedrock-agent-maintenance-mode

Conversation

@mrgrain

@mrgrain mrgrain commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

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 AccessDeniedException from CreateAgent with 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 — so AWS::Bedrock::Agent can never be created again in our test accounts.

The AWS::Bedrock::Agent in the cc-hotswap test app is therefore replaced with an AWS::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_REGIONS list is removed and both tests now run in all Atmosphere regions. Hotswap support for AWS::Bedrock::Agent in toolkit-lib is deliberately left in place: existing customers with prior usage can still deploy those agents, they just cannot be created in new accounts.

Checklist

  • This change contains a major version upgrade for a dependency and I confirm all breaking changes are addressed
    • Release notes for the new version:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@mrgrain mrgrain changed the title test(cli-integ): cc-hotswap tests fail because Bedrock Agents is in maintenance mode chore(cli-integ): cc-hotswap tests fail because Bedrock Agents is in maintenance mode Jul 31, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 90.06%. Comparing base (8c37fc4) to head (8b25828).

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              
Flag Coverage Δ
suite.unit 90.06% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aws-cdk-automation
aws-cdk-automation added this pull request to the merge queue Jul 31, 2026
Merged via the queue into main with commit ac78680 Jul 31, 2026
51 checks passed
@aws-cdk-automation
aws-cdk-automation deleted the mrgrain/test/cli-integ/bedrock-agent-maintenance-mode branch July 31, 2026 15:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants