Manoharraoutah commented on issue #57356:
URL: https://github.com/apache/airflow/issues/57356#issuecomment-4086272631
i have the same issue with Kubernetes executor
kubectl exec -it airflow-release-api-server-56b49fdb7d-qtr7p -n airflow --
/bin/bash
Defaulted container "api-server" out of: api-server,
wait-for-airflow-migrations (init)
airflow@airflow-release-api-server-56b49fdb7d-qtr7p:/opt/airflow$ python3
<<EOF
import logging
from airflow.providers.amazon.aws.hooks.logs import AwsLogsHook
from datetime import datetime
try:
# 1. Initialize the Hook using your UI connection
hook = AwsLogsHook(aws_conn_id='aws_default')
client = hook.get_conn()
log_group = '/airflow/logs'
log_stream = 'API_SERVER_MANUAL_TEST'
# 2. Try to create the stream (in case it doesn't exist)
try:
client.create_log_stream(logGroupName=log_group,
logStreamName=log_stream)
except client.exceptions.ResourceAlreadyExistsException:
EOF print(f"Error Detail: {str(e)}")loudWatch.") stream '{log_stream}'")
2026-03-18T23:25:30.815447Z [info ] setup plugin
alembic.autogenerate.schemas [alembic.runtime.plugins] loc=plugins.py:37
2026-03-18T23:25:30.815677Z [info ] setup plugin
alembic.autogenerate.tables [alembic.runtime.plugins] loc=plugins.py:37
2026-03-18T23:25:30.815820Z [info ] setup plugin
alembic.autogenerate.types [alembic.runtime.plugins] loc=plugins.py:37
2026-03-18T23:25:30.815945Z [info ] setup plugin
alembic.autogenerate.constraints [alembic.runtime.plugins] loc=plugins.py:37
2026-03-18T23:25:30.816104Z [info ] setup plugin
alembic.autogenerate.defaults [alembic.runtime.plugins] loc=plugins.py:37
2026-03-18T23:25:30.816256Z [info ] setup plugin
alembic.autogenerate.comments [alembic.runtime.plugins] loc=plugins.py:37
2026-03-18T23:25:31.381734Z [info ] Failed parsing the json for key
region_name [airflow.models.connection.Connection] loc=connection.py:248
✅ SUCCESS: API Server successfully wrote to CloudWatch!
🔗 Check Log Group '/airflow/logs' for stream 'API_SERVER_MANUAL_TEST'
airflow@airflow-release-api-server-56b49fdb7d-qtr7p:/opt/airflow$
--
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]