Skip to content

Update example_bedrock_agentcore system test to use codeConfiguration instead of ECR image#69576

Open
vincbeck wants to merge 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/sys_test_bedrock
Open

Update example_bedrock_agentcore system test to use codeConfiguration instead of ECR image#69576
vincbeck wants to merge 1 commit into
apache:mainfrom
aws-mwaa:vincbeck/sys_test_bedrock

Conversation

@vincbeck

@vincbeck vincbeck commented Jul 7, 2026

Copy link
Copy Markdown
Contributor
  • Replace containerConfiguration (ECR image) with codeConfiguration (S3 code zip) for the Bedrock AgentCore runtime, avoiding the need to manage a container image
  • The test is now fully self-contained: it creates an S3 bucket, uploads a zipped Python HTTP server as the agent code, and cleans up after itself
  • Remove CONTAINER_URI external variable dependency — only ROLE_ARN is needed from CDK

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Claude


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@vincbeck vincbeck requested a review from o-nikolas as a code owner July 7, 2026 21:51
@boring-cyborg boring-cyborg Bot added area:providers provider:amazon AWS/Amazon - related issues labels Jul 7, 2026

@o-nikolas o-nikolas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Small nit and test are failing, otherwise looks good

Comment on lines +99 to +102
import io
import zipfile

import boto3

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for local imports?

},
role_arn=test_context[ROLE_ARN_KEY],
network_configuration={"networkMode": "PUBLIC"},
deferrable=True,

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:amazon AWS/Amazon - related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants