This topic describes the resources required to configure an Airflow instance and how to enable Internet access for it.
Required resources and their purposes
Object Storage Service (OSS): Stores Airflow logs, dependent Python libraries, and data output from tasks.
-
All resources must be in the same region as your Airflow instance.
-
For more information about the regions where Airflow is supported, see Supported regions and availability zones.
Create an OSS bucket
-
Go to the Buckets page and click Create Bucket.
-
When you configure the bucket, enter a bucket name and select the same region as your other instances.
-
Scroll to the bottom of the page and click Create. Follow the on-screen instructions to complete the creation process. For more information, see Console Quick Start.
-
In the bucket, create files to store Airflow data.
You do not need to manually add the OSS instance to Data Management Service (DMS). DMS can automatically retrieve instance information from the OSS console.
Enable Internet access for Airflow on DMS
If your Airflow instance requires Internet access, you must configure Internet access for its VPC.
Obtain the VPC ID of your workspace
Log in to DMS 5.0.
-
Go to the workspace page.
DMS provides two methods to access the workspace page. You can choose either method.
Method 1
In the upper-left corner of the console, click the
icon and choose .NoteIf you are not using the simplified console, choose from the top menu bar.
Method 2
ImportantThis method is in beta testing and is available only to some users.
In the navigation pane on the left, click the Data Factory
icon, and then click workspace.NoteIf you are not using the simplified console, choose from the top menu bar.
-
Click the name of the target workspace.
-
In the lower-left corner, click the Settings
icon, select workspace management, and find the VPC ID.
Create an internet NAT gateway
-
Log on to the VPC console.
-
In the navigation pane on the left, choose > Internet NAT Gateway.
-
On the Internet NAT Gateway page, click Create Internet NAT Gateway.
-
On the purchase page, set the parameters and click Buy Now in the lower-right corner.
The following table describes some of the parameters.
Parameter
Description
Instance Name
Enter a name for the internet NAT gateway instance.
Region
The internet NAT gateway and the workspace must be in the same region.
Network and zone
The selected network must be the VPC associated with your workspace.
Network Type
Select Internet NAT Gateway.
EIP
If you have an existing Elastic IP Address (EIP) in the same region as the workspace, select Select EIP. Otherwise, click Purchase EIP.
-
On the Parameters page, verify the parameters and click Activate Now.
-
Wait for the purchase to complete.
The Congratulations, the purchase is successful! message confirms that the internet NAT gateway has been created.