0

In AWS Console, I did the following:

  1. Created an S3 bucket & key: s3://my-airflow and s3://my-airflow/dags
  2. Setup an Airflow Environment.
  3. Created and attached a Service role as described here: https://docs.aws.amazon.com/mwaa/latest/userguide/mwaa-create-role.html
  4. Attached a Policy to allow my user to generate a token like this:
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "airflow:CreateWebLoginToken",
            "Resource": [
                "arn::airflow:us-west-2:<accountID>:role/myAirflowEnv/Admin"
            ]
        }
    ]
}
  1. Then using the cli I requested the token like this:
aws mwaa create-web-login-token --name myAirflowEnv --region us-west-2

It worked and returned a webToken 6. I then piece-mealed together the ui link as suggested (within 60 sec):

https://{generated0-uuid}-vpce.c0.us-west-2.airflow.amazonaws.com/aws_mwaa/aws-console-sso?login=true#{webToken}

and pasted it in my browser.

ISSUE: The page just spins, timesout, nothing.

AWS, what is the secret?

cosbor11
  • 14,709
  • 10
  • 54
  • 69

1 Answers1

0

I figured out what the issue is... In my case, the Webserver is not in the in a Public Subnet Group.

Note: There is no need to call the CLI tool, there is a popout link in the AWS console to go to the UI.

cosbor11
  • 14,709
  • 10
  • 54
  • 69