# Mwaa Setup

> Configure an environment profile for the `datus mwaa` plugin (AWS region + credentials, optional default MWAA environment name)

- Skill: `datus-ai/mwaa-setup` (Agent Skill)
- Install (CLI): `npx skillmds@latest add datus-ai/mwaa-setup`
- Raw SKILL.md: https://api.skillmd.com/api/skills/datus-ai/mwaa-setup/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- Author: datus-ai (https://skillmd.com/u/datus-ai)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/datus-ai/mwaa-setup

---


# MWAA Setup

Use this skill when `datus mwaa` is installed but has no configured environment.

## Config structure

Profiles live under `agent.plugins.mwaa.<profile>` in the config file named by
the `## Plugins` section of the system prompt:

```yaml
agent:
  plugins:
    mwaa:
      prod:
        default: true
        region: us-east-1
        environment: prod-airflow        # optional default MWAA environment name

        # credentials — omit to use the standard AWS chain, otherwise any of:
        profile: my-aws-profile
        role_arn: arn:aws:iam::123456789012:role/datus-mwaa
        # access_key_id / secret_access_key — use ${VAR} refs
```

## Steps

1. Ask for `region` and optionally a default `environment` name.
2. The principal needs `airflow:ListEnvironments`, `airflow:GetEnvironment`,
   `airflow:CreateWebLoginToken`, and `airflow:CreateCliToken`.
3. Write the profile into the config file named in the `## Plugins` preamble;
   mark the first profile `default: true`.
4. Verify with `datus mwaa environments list`.

## Related

For day-to-day DAG operations (list/trigger/monitor with per-command
permissions), configure the **`datus airflow`** plugin against this MWAA
environment (use `datus mwaa token cli` for the hostname/token, or the web
login URL from `datus mwaa token web-login`).

## Troubleshooting

- `no environment` — pass the environment name or set `environment` in the
  profile.
- `cli run` returns an error for some commands — MWAA's REST CLI does not
  support every Airflow subcommand; use `datus airflow` instead.

