Loading...
Loading...
Authors and deploys MWAA workflow artifacts: Python Airflow DAGs for provisioned environments or YAML workflow files for Serverless. Covers operator selection, timeout design, retry strategy, scheduling, failure notifications, idempotency, and MWAA Serverless schema compliance. Deploys the artifact (S3 DAG upload or Serverless CreateWorkflow/UpdateWorkflow), creates an environment inline when approved, and redeploys fixes, then optionally hands off to testing-mwaa-workflow. Triggers on: create a DAG, write a pipeline, build a workflow, orchestrate tasks, Airflow DAG, data pipeline, schedule a job, deploy a DAG, deploy a workflow, YAML workflow. Not applicable to converting or migrating existing DAGs between provisioned and serverless (conversion is out of scope), running or smoke-testing a deployed workflow (handled by testing-mwaa-workflow) or diagnosing a failed run (handled by debugging-mwaa-workflow).
npx skill4agent add aws/agent-toolkit-for-aws authoring-mwaa-workflowAWS MCP server (optional but recommended): running the AWS CLI commands in this skill through the AWS MCP server gives sandboxed execution and audit logging. Every command here also works with the plain AWS CLI, so the skill does not require the MCP server or any MCP-only tools.
Execution note — poll in discrete steps: whenever you wait for an AWS operation to reach a terminal or ready state, issue one status check per call and decide in your own loop whether to check again. Never block a single command or script on the wait (no+whileuntil done), regardless of the operation or how long it takes.sleep
retrieve_skillretrieve_skillfilefile="references/authoring-provisioned-dag.md"file_read.kiro/skills/authoring-mwaa-workflow/~/.claude/skills/authoring-mwaa-workflow/retrieve_skillarn:aws:airflow:<region>:<account>:environment/<name>aws mwaa get-environmentarn:aws:airflow-serverless:<region>:<account>:workflow/<name>PythonOperatorpythonPythonOperatorpython_callableyamlserverlessPython DAGprovisionedprovisionedPython DAG.pyyamlserverlessSourceBucketArnDagS3PathCREATINGAVAILABLECreateWorkflowUpdateWorkflowPythonOperatorBashOperator--codeUpdateWorkflowdag_idHARD GATE: If testing is requested — whether upfront ("deploy and test") or later in the conversation ("test it", "run it", "try it") — you MUST invoke testing-mwaa-workflow. Do NOT trigger, monitor, or verify DAG runs manually. "Deploy and unpause" is NOT a test request — it is a deploy-only action.
create-environmentupdate-environmentcreate-workflowupdate-workflow| Error | Cause | Fix |
|---|---|---|
| dagrun_timeout kills DAG early | < timeout set in service called | Raise dagrun_timeout or lower service timeout |
| YAML validation rejects workflow | Wrong type or param | Use timedelta format; check allowlist |
| Operator not found in Serverless | Not allowlisted | Use a supported operator, PythonOperator/BashOperator, or Lambda |
| Serverless run: cannot extract code / corrupt env | Bad code package | Files at zip root, no |
| Serverless Python task ImportError | Missing dep or wrong-platform wheel | Bundle as |
| Template variable undefined | Version mismatch | Check vars for exact Airflow version |
createupdate-environmentcreateupdate-workflowActionResource*FullAccessservice:*