vincbeck commented on code in PR #69576:
URL: https://github.com/apache/airflow/pull/69576#discussion_r3545099660
##########
providers/amazon/tests/system/amazon/aws/example_bedrock_agentcore.py:
##########
@@ -58,20 +83,52 @@
test_context = sys_test_context_task()
env_id = test_context["ENV_ID"]
- runtime_name = f"airflow-agentcore-{env_id}"
+ runtime_name = f"airflow_agentcore_{env_id}"
+ bucket_name = f"airflow-agentcore-code-{env_id}"
+ s3_key = "code.zip"
+
+ # [START howto_setup_bedrock_agentcore]
+ create_bucket = S3CreateBucketOperator(
+ task_id="create_bucket",
+ bucket_name=bucket_name,
+ )
+
+ @dag.task
+ def upload_code(bucket: str, key: str):
+ """Create a zip with the agent code and upload it to S3."""
+ import io
+ import zipfile
+
+ import boto3
Review Comment:
Nop, moving them at the top
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]