Jean Guinvarch
Jean Guinvarch

Reputation: 9

Authentication from external source

Issue with MWAA API Access from IICS (Informatica Intelligent Cloud Services)

I'm attempting to call the MWAA REST endpoint (/events/datasets) from IICS (Informatica Intelligent Cloud Services).

MWAA (Managed Workflows for Apache Airflow) is hosted inside an AWS VPC.

The MWAA Web UI is publicly accessible (hosted in a public subnet), but the web server itself is inside a private subnet, making it inaccessible for direct API communication. IICS runtime environment is also hosted on AWS but not within the same instance or VPC as MWAA.

I've set up the integration as follows:

Issue Encountered

When running the task, I receive a 200 response, but instead of the expected API response, I get redirected to the Microsoft authentication page.

My organization uses Microsoft authentication (SSO) to access the MWAA Web UI. This suggests that the API request is being redirected to the authentication page instead of processing the request.

Potential Solutions I'm considering:

  1. Whitelist the IICS Runner IP & Configure Access to MWAA

Since the API call is made from outside the AWS VPC, the standard InvokeRestApi action (which usually works when calling APIs inside AWS) may not be useful. AWS suggests configuring the aws:SourceVpc key to allow external access to the private VPC, but I am unsure where and how to configure this.

Would whitelisting the IICS runner's IP address help establish a connection to MWAA?

  1. Use a Web Server Access Token for Authentication

AWS allows generating a web server access token to authenticate API requests. IICS has a component to execute AWS CLI commands, which might be used to generate this token. Once authenticated via the web server token, subsequent API requests might work.

Any insights or alternative solutions would be greatly appreciated!

Upvotes: -1

Views: 16

Answers (0)

Related Questions