id
stringlengths
15
25
source
stringclasses
1 value
chunk_index
int64
0
393k
token_count
int32
449
512
content
stringlengths
203
7.95k
combine_chunk_1600
combine.txt
1,600
512
========= AWS Batch ========= `AWS Batch <https://aws.amazon.com/batch/>`__ enables you to run batch computing workloads on the AWS Cloud. Batch computing is a common way for developers, scientists, and engineers to access large amounts of compute resources. AWS Batch removes the undifferentiated heavy lifting of conf...
combine_chunk_1601
combine.txt
1,601
512
will also need the triggerer component to be available in your Airflow deployment. .. _howto/sensor:BatchComputeEnvironmentSensor: Wait on an AWS Batch compute environment status =============================================== To wait on the status of an AWS Batch compute environment until it reaches a terminal sta...
combine_chunk_1602
combine.txt
1,602
512
a managed service that makes it easy for you to run Kubernetes on AWS without needing to stand up or maintain your own Kubernetes control plane. Kubernetes is an open-source system for automating the deployment, scaling, and management of containerized applications. Airflow provides operators to create and interact w...
combine_chunk_1603
combine.txt
1,603
512
you can use :class:`~airflow.providers.amazon.aws.operators.eks.EksCreateClusterOperator`. You can also run this operator in deferrable mode by setting ``deferrable`` param to ``True``. Note: An AWS IAM role with the following permissions is required: ``ec2.amazon.aws.com`` must be in the Trusted Relationships ``...
combine_chunk_1604
combine.txt
1,604
512
.aws.operators.eks.EksCreateNodegroupOperator`. You can also run this operator in deferrable mode by setting ``deferrable`` param to ``True``. Note: An AWS IAM role with the following permissions is required: ``ec2.amazon.aws.com`` must be in the Trusted Relationships ``AmazonEC2ContainerRegistryReadOnly`` IAM Po...
combine_chunk_1605
combine.txt
1,605
512
Fargate Profile ============================= To delete an existing AWS Fargate Profile you can use :class:`~airflow.providers.amazon.aws.operators.eks.EksDeleteFargateProfileOperator`. .. exampleinclude:: /../../amazon/tests/system/amazon/aws/example_eks_with_fargate_profile.py :language: python :dedent: 4 ...
combine_chunk_1606
combine.txt
1,606
512
ExecOperator` for command, output, XCom, and retry behavior. .. exampleinclude:: /../../amazon/tests/system/amazon/aws/example_eks_with_nodegroups.py :language: python :dedent: 4 :start-after: [START howto_operator_eks_pod_exec] :end-before: [END howto_operator_eks_pod_exec] Sensors ------- .. _howto...
combine_chunk_1607
combine.txt
1,607
512
/api/latest/reference/services/eks.html>`__ <|file|>airflow/providers/amazon/docs/operators/step_functions.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyrigh...
combine_chunk_1608
combine.txt
1,608
512
output. When the execution has an error instead, it returns the error string unchanged if it is not valid JSON. JSON-formatted errors continue to be decoded to their corresponding Python values. Fetching an error does not by itself fail the Airflow task. This operator does not wait for completion or check that the ex...
combine_chunk_1609
combine.txt
1,609
512
KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. ================= Amazon S3 Vectors ================= Amazon S3 Vectors provides native vector storage in Amazon S3 for AI/ML applications. Use the operators below to manage S3...
combine_chunk_1610
combine.txt
1,610
512
:start-after: [START howto_operator_s3vectors_delete_vector_bucket] :end-before: [END howto_operator_s3vectors_delete_vector_bucket] .. _howto/operator:S3VectorsPutVectorsOperator: Put Vectors ----------- To insert vectors into an Amazon S3 Vectors index, use :class:`~airflow.providers.amazon.aws.operators.s...
combine_chunk_1611
combine.txt
1,611
512
ITTEN! .. IF YOU WANT TO MODIFY THIS FILE, YOU SHOULD MODIFY THE TEMPLATE `PROVIDER_COMMITS_TEMPLATE.rst.jinja2` IN the `dev/breeze/src/airflow_breeze/templates` DIRECTORY .. THE REMAINDER OF THE FILE IS AUTOMATICALLY GENERATED. IT WILL BE OVERWRITTEN! Package apache-airflow-providers-amazon ------------------...
combine_chunk_1612
combine.txt
1,612
512
ag_id }} failed", target_arn="arn:aws:sns:us-west-2:123456789098:TopicName", ) task_failure_sns_notification = send_sns_notification( aws_conn_id="aws_default", region_name="eu-west-2", message="The task {{ ti.task_id }} failed", target_arn="arn:aws:sns:us-west-2:12345678...
combine_chunk_1613
combine.txt
1,613
512
www.apache.org/licenses/LICENSE-2.0 .. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing per...
combine_chunk_1614
combine.txt
1,614
512
qsNotifier: How-to Guide for Amazon Simple Queue Service (Amazon SQS) notifications ======================================================================= Introduction ------------ `Amazon SQS <https://aws.amazon.com/sqs/>`__ notifier :class:`~airflow.providers.amazon.aws.notifications.sqs.SqsNotifier` allows users ...
combine_chunk_1615
combine.txt
1,615
512
implied. See the License for the specific language governing permissions and limitations under the License. .. include:: /../../../devel-common/src/sphinx_exts/includes/installing-providers-from-sources.rst <|file|>airflow/providers/amazon/docs/transfer/glacier_to_gcs.rst .. Licensed to the Apache Software...
combine_chunk_1616
combine.txt
1,616
512
/glacier.html>`__ * `Google Cloud Storage client library <https://googleapis.dev/python/storage/latest/client.html>`__ <|file|>airflow/providers/amazon/docs/transfer/index.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed...
combine_chunk_1617
combine.txt
1,617
512
Amazon S3 transfer operator =================================== This operator loads data from a SFTP server to an Amazon S3 file. To get more information about this operator visit: :class:`~airflow.providers.amazon.aws.transfers.sftp_to_s3.SFTPToS3Operator` Example usage: .. exampleinclude:: /../../amazon/tests/sy...
combine_chunk_1618
combine.txt
1,618
512
/../../amazon/tests/system/amazon/aws/example_mongo_to_s3.py :language: python :dedent: 4 :start-after: [START howto_transfer_mongo_to_s3] :end-before: [END howto_transfer_mongo_to_s3] You can find more information about ``PyMongo`` used by Airflow to communicate with MongoDB `here <https://pymongo.re...
combine_chunk_1619
combine.txt
1,619
512
: [START howto_transfer_http_to_s3] :end-before: [END howto_transfer_http_to_s3] Reference --------- * `AWS boto3 library documentation for Amazon S3 <https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html>`__ <|file|>airflow/providers/amazon/docs/transfer/redshift_to_s3.rst .. Licen...
combine_chunk_1620
combine.txt
1,620
512
documentation <https://docs.aws.amazon.com/redshift/latest/dg/r_UNLOAD.html>`__ * `AWS boto3 library documentation for Amazon Redshift <https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/redshift.html>`__ * `AWS boto3 library documentation for Amazon S3 <https://boto3.amazonaws.com/v1/documenta...
combine_chunk_1621
combine.txt
1,621
512
>`__ <|file|>airflow/providers/amazon/docs/transfer/local_to_s3.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file ...
combine_chunk_1622
combine.txt
1,622
512
.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at .. http://www.apache.org/licenses/LICENSE-2.0 .. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS ...
combine_chunk_1623
combine.txt
1,623
512
<|file|>airflow/providers/amazon/docs/transfer/s3_to_redshift.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file t...
combine_chunk_1624
combine.txt
1,624
512
parameters-data-source-s3.html>`__. Reference --------- * `AWS COPY from Amazon S3 documentation <https://docs.aws.amazon.com/us_en/redshift/latest/dg/copy-parameters-data-source-s3.html>`__ * `AWS boto3 library documentation for Amazon S3 <https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3...
combine_chunk_1625
combine.txt
1,625
512
: [START howto_transfer_hive_to_dynamodb] :end-before: [END howto_transfer_hive_to_dynamodb] Reference --------- * `Apache Hive language manual <https://cwiki.apache.org/confluence/display/Hive/LanguageManual+Commands>`__ * `AWS boto3 library documentation for Amazon DynamoDB <https://boto3.amazonaws.com/v1/docum...
combine_chunk_1626
combine.txt
1,626
512
an Amazon S3 file. To get more information about this operator visit: :class:`~airflow.providers.amazon.aws.transfers.sql_to_s3.SqlToS3Operator` Example usage: .. exampleinclude:: /../../amazon/tests/system/amazon/aws/example_sql_to_s3.py :language: python :dedent: 4 :start-after: [START howto_transfer_...
combine_chunk_1627
combine.txt
1,627
512
.com/v1/documentation/api/latest/reference/services/s3.html>`__ <|file|>airflow/providers/amazon/docs/transfer/s3_to_sftp.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information reg...
combine_chunk_1628
combine.txt
1,628
512
_ftp.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "Lic...
combine_chunk_1629
combine.txt
1,629
512
License. You may obtain a copy of the License at .. http://www.apache.org/licenses/LICENSE-2.0 .. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or impl...
combine_chunk_1630
combine.txt
1,630
512
3Operator`` to recover data from a point in time. Full export example usage: .. exampleinclude:: /../../amazon/tests/system/amazon/aws/example_dynamodb_to_s3.py :language: python :dedent: 4 :start-after: [START howto_transfer_dynamodb_to_s3_in_some_point_in_time_full_export] :end-before: [END howto_tr...
combine_chunk_1631
combine.txt
1,631
512
to/operator:GoogleApiToS3Operator: Google Sheets to Amazon S3 transfer operator ============================================ This example loads data from Google Sheets and save it to an Amazon S3 file. .. exampleinclude:: /../../amazon/tests/system/amazon/aws/example_google_api_sheets_to_s3.py :language: python ...
combine_chunk_1632
combine.txt
1,632
512
.google.com/youtube/v3/docs>`__ * `AWS boto3 library documentation for Amazon S3 <https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html>`__ <|file|>airflow/providers/amazon/docs/transfer/imap_attachment_to_s3.rst .. Licensed to the Apache Software Foundation (ASF) under one or more co...
combine_chunk_1633
combine.txt
1,633
512
.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License...
combine_chunk_1634
combine.txt
1,634
512
a copy of the License at .. http://www.apache.org/licenses/LICENSE-2.0 .. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for...
combine_chunk_1635
combine.txt
1,635
512
may obtain a copy of the License at .. http://www.apache.org/licenses/LICENSE-2.0 .. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the ...
combine_chunk_1636
combine.txt
1,636
512
the License for the specific language governing permissions and limitations under the License. =================================================== Azure Blob Storage to Amazon S3 transfer operator =================================================== Use the ``AzureBlobStorageToS3Operator`` transfer to copy th...
combine_chunk_1637
combine.txt
1,637
512
Service (S3) bucket to an existing or new Amazon DynamoDB table. Prerequisite Tasks ------------------ .. include:: ../_partials/prerequisite_tasks.rst Operators --------- .. _howto/transfer:S3ToDynamoDBOperator: Amazon S3 To DynamoDB transfer operator ============================================== This operator...
combine_chunk_1638
combine.txt
1,638
512
you may not use this file except in compliance with the License. You may obtain a copy of the License at .. http://www.apache.org/licenses/LICENSE-2.0 .. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARR...
combine_chunk_1639
combine.txt
1,639
512
-east-1"}`` on install. This means that by default the ``aws_default`` connection used the ``us-east-1`` region. This is no longer the case and the region needs to be set manually, either in the connection screens in Airflow, or via the ``AWS_DEFAULT_REGION`` environment variable. .. caution:: If you do no...
combine_chunk_1640
combine.txt
1,640
512
file settings <https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html#cli-configure-files-settings>`__. The following extra parameters are used for `assume role <https://docs.aws.amazon.com/STS/latest/APIReference/API_AssumeRole.html>`__: * ``role_arn``: If specified, then assume this role...
combine_chunk_1641
combine.txt
1,641
512
* ``endpoint_url``: Global Endpoint URL for the connection. You could specify endpoint url per AWS service by utilize ``service_config``, for more details please refer to :ref:`howto/connection:aws:per-service-endpoint-configuration` * ``verify``: Whether or not to verify SSL certificates. * ``Fals...
combine_chunk_1642
combine.txt
1,642
512
profile ^^^^^^^^^^^^^^^^^^^^^^ This will use boto's default credential look-up chain (the profile named "default" from the ~/.boto/ config files, and instance profile when running inside AWS) **URI format example** .. code-block:: bash export AIRFLOW_CONN_AWS_DEFAULT=aws:// **JSON format example** ...
combine_chunk_1643
combine.txt
1,643
512
-block:: json { "role_arn": "arn:aws:iam::112223334444:role/my_role", "assume_role_method": "assume_role_with_web_identity", "assume_role_with_web_identity_federation": "file", "assume_role_with_web_identity_token_file": "/path/to/access_token" } 5. Using AssumeRoleWithSAML .. code-bl...
combine_chunk_1644
combine.txt
1,644
512
on PyPI. * ``idp_request_kwargs``: Additional ``kwargs`` passed to ``requests`` when requesting from the IDP (over HTTP/S). * ``idp_request_retry_kwargs``: Additional ``kwargs`` to construct a `urllib3.util.Retry <https://urllib3.readthedocs.io/en/stable/reference/urllib3.util.html#urllib3.util.Retry>`_ ...
combine_chunk_1645
combine.txt
1,645
512
^^^^^ .. _howto/connection:aws:per-service-endpoint-configuration: AWS Service Endpoint URL configuration """""""""""""""""""""""""""""""""""""" To use ``endpoint_url`` per specific AWS service in the single connection you might setup it in service config. For enforce to default ``botocore``/``boto3`` behaviour you ...
combine_chunk_1646
combine.txt
1,646
512
Avoid Throttling exceptions --------------------------- Amazon Web Services have quota limits for simultaneous API call as result with frequent calls ``apache-airflow-providers-amazon`` components might fail during execution with a throttling exception, e.g. *ThrottlingException*, *ProvisionedThroughputExceededExcepti...
combine_chunk_1647
combine.txt
1,647
512
_session`` method depending on your needs. You will also need to add configuration for ``AwsBaseHook`` to use the custom implementation by their full path. Example ^^^^^^^ **Configuration**: .. code-block:: ini [aws] session_factory = my_company.aws.MyCustomSessionFactory **Connection extra field**: .....
combine_chunk_1648
combine.txt
1,648
512
"] expiry_time = credentials["Expiration"] self.log.info( f"New federated AWS credentials received with aws_access_key_id={access_key_id} and " f"expiry_time={expiry_time} for connection {self.conn.conn_id}" ) return { "acce...
combine_chunk_1649
combine.txt
1,649
512
and then choose **Next: Permissions**. 7. Select the policy to use for the permissions policy or choose **Create policy** to open a new browser tab and create a new policy from scratch. For more information, see `Creating IAM Policy <https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_create-console.html#...
combine_chunk_1650
combine.txt
1,650
512
should configure the connection in Airflow. Terraform """"""""" In order to quickly configure a new role, you can use the following Terraform script, which configures AWS roles along with the assigned policy. Before using it, you need correct the variables in the ``locals`` section to suit your environment: * ``goo...
combine_chunk_1651
combine.txt
1,651
512
.assume_role_policy.json } # terraform import aws_iam_role.role_web_identity "WebIdentity-Role" data "aws_iam_policy_document" "web_identity_bucket_policy_document" { statement { effect = "Allow" actions = [ "s3:ListAllMyBuckets" ] resources = ["*"] } ...
combine_chunk_1652
combine.txt
1,652
512
FLOW_CONN_{CONN_ID}`. .. code-block:: bash export AIRFLOW_CONN_AWS_DEFAULT="aws://\ ?role_arn=arn%3Aaws%3Aiam%3A%3A240057002457%3Arole%2FWebIdentity-Role&\ assume_role_method=assume_role_with_web_identity&\ assume_role_with_web_identity_federation=google&\ assume_role_with_web_identity_federation_...
combine_chunk_1653
combine.txt
1,653
512
eksctl.io/>`_ is a simple CLI tool for creating and managing clusters on EKS. Follow the steps to create IRSA for Airflow. 1. `Install eksctl <https://docs.aws.amazon.com/eks/latest/userguide/eksctl.html>`_ in your local machine. 2. Setup AWS credentials in your terminal to run ``eksctl`` commands. 3. The IAM OIDC Pro...
combine_chunk_1654
combine.txt
1,654
512
{ source = "github.com/aws-ia/terraform-aws-eks-blueprints//modules/irsa" eks_cluster_id = "<EKS_CLUSTER_ID>" eks_oidc_provider_arn = "<EKS_CLUSTER_OIDC_PROVIDER_ARN>" irsa_iam_policies = ["<IAM_POLICY_ARN>"] kubernetes_namespace = "<NAMESPACE>" kube...
combine_chunk_1655
combine.txt
1,655
512
specific language governing permissions and limitations under the License. .. _howto/connection:chime: Amazon Chime Connection ========================== `Amazon Chime <https://aws.amazon.com/chime/>`__ connection works with `Chime Incoming Webhooks <https://docs.aws.amazon.com/chime/latest/ag/webhooks.html>...
combine_chunk_1656
combine.txt
1,656
512
r: Amazon Elastic MapReduce (EMR) Connection ========================================= .. note:: This connection type is only used to store parameters to Start EMR Cluster (`run_job_flow` boto3 EMR client method). This connection not intend to store any credentials for ``boto3`` client, if you try to pass any ...
combine_chunk_1657
combine.txt
1,657
512
, or using an Identity Provider (IdP) plugin. Default Connection IDs ---------------------- The default connection ID is ``redshift_default``. Configuring the Connection -------------------------- Host (optional) Specify the Amazon Redshift cluster endpoint. Schema (optional) Specify the Amazon Redshift databa...
combine_chunk_1658
combine.txt
1,658
512
"awsuser", "database": "dev", "profile": "default" } If you want to use IAM with Amazon Redshift Serverless, you need to set **is_serverless** to true and provide **serverless_work_group**. You can also set **serverless_token_duration_seconds** to specify the number of seconds until the returned tempo...
combine_chunk_1659
combine.txt
1,659
512
class:`~airflow.providers.duckdb.operators.duckdb.DuckDBExecuteQueryOperator` as ``conn_id``, and its type is also what selects :class:`~airflow.providers.amazon.aws.hooks.duckdb.AwsDuckDBHook`. * An :ref:`AWS connection <howto/connection:aws>` gives the region and endpoint, and also the credentials (keys, a ``role...
combine_chunk_1660
combine.txt
1,660
512
connection. The secret then gets a region and endpoint only from this connection's own keys, such as ``region_name`` and ``s3_endpoint_url``, and ``config`` takes credentials from boto3's default chain. ``credential_chain`` takes credentials from the environment either way. * ``region_name``: reg...
combine_chunk_1661
combine.txt
1,661
512
/docs/connections/athena.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Versi...
combine_chunk_1662
combine.txt
1,662
512
to that for additional information about configuring the connection. <|file|>airflow/providers/amazon/docs/bundles/index.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information reg...
combine_chunk_1663
combine.txt
1,663
512
(ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance ...
combine_chunk_1664
combine.txt
1,664
512
you instead want to send an email as a Dag task, use the :ref:`SesEmailOperator <howto/operator:SesEmailOperator>` documented in :doc:`operators/ses`. Follow the steps below to enable it: 1. Install the ``amazon`` provider as part of your Airflow installation: .. code-block:: bash pip install 'apache-a...
combine_chunk_1665
combine.txt
1,665
512
ockerfile>`__ .. |configKwargs| replace:: SUBMIT_JOB_KWARGS ================== AWS Batch Executor ================== This is an Airflow executor powered by Amazon Batch. Each task scheduled by Airflow is run inside a separate container, scheduled by Batch. Some benefits of an executor like this include: 1. Scalabili...
combine_chunk_1666
combine.txt
1,666
512
: .. END CONFIG_OPTIONS_PRECEDENCE .. note:: ``executor_config`` is an optional parameter that can be provided to operators. It is a dictionary type and in the context of the Batch Executor it represents a ``submit_job_kwargs`` configuration which is then updated over-top of the ``submit_job_kwargs`` specified in A...
combine_chunk_1667
combine.txt
1,667
512
able to select a Job Role and an Execution Role. The Execution Role is the role that is used by the container agent to make AWS API requests on your behalf. Depending on what compute is being used by the Batch Executor, the appropriate policy needs to be attached to the Execution Role. Additionally, the role also need...
combine_chunk_1668
combine.txt
1,668
512
LOADING_DAGS_FROM_LOCAL :end-before: .. END LOADING_DAGS_FROM_LOCAL .. include:: general.rst :start-after: .. BEGIN DEPENDENCIES :end-before: .. END DEPENDENCIES Building Image for AWS Batch Executor ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Detailed instructions on how to use the Docker image, that you have crea...
combine_chunk_1669
combine.txt
1,669
512
preferred method). Airflow will then use these credentials *specifically* for interacting with your chosen remote logging destination. .. note:: Configuration options must be consistent across all the hosts/environments running the Airflow components (Scheduler, Webserver, Executor managed resources, e...
combine_chunk_1670
combine.txt
1,670
512
Environment ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1. Choose a name for the compute environment, tags and any appropriate instance configuration. Here, you may select the minimum, maximum and desired number of vCPU's, as well as the type of EC2 instances you would like to use. 2. For Instance Role, choose to create a ne...
combine_chunk_1671
combine.txt
1,671
512
, click Create Resources. Allow Containers to Access RDS Database ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ As a final step, access to the database must be configured for the containers managed by Batch. Many different networking configurations are possible, but one possible approach is: 1. Log in to your AWS Manageme...
combine_chunk_1672
combine.txt
1,672
512
under the License. Amazon Executors ================ You can run more than one Amazon executor side by side, see :ref:`apache-airflow:using-multiple-executors-concurrently`. .. toctree:: :maxdepth: 1 ECS Executor <ecs-executor> Batch Executor <batch-executor> EKS Executor <eks-executor> L...
combine_chunk_1673
combine.txt
1,673
512
Cost effective: Compute resources only exist for the lifetime of the Airflow task itself. This saves costs by not requiring persistent/long lived workers ready at all times, which also need maintenance and patching. For a quick start guide please see :ref:`here <setup_guide>`, it will get you up and running ...
combine_chunk_1674
combine.txt
1,674
512
in the ECS Task Definition. Required. - REGION_NAME - The name of the AWS Region where Amazon ECS is configured. Required. Optional config options: ~~~~~~~~~~~~~~~~~~~~~~~~ - ASSIGN_PUBLIC_IP - Whether to assign a public IP address to the containers launched by the ECS executor. Defaults to "False". - AWS_C...
combine_chunk_1675
combine.txt
1,675
512
which essentially applies Python update to each nested dictionary in the configuration. Loosely approximated as: ``run_task_kwargs.update(exec_config)`` .. _dockerfile_for_ecs_executor: .. include:: general.rst :start-after: .. BEGIN DOCKERFILE :end-before: .. END DOCKERFILE The most secure method is to use IA...
combine_chunk_1676
combine.txt
1,676
512
:: general.rst :start-after: .. BEGIN BASE_IMAGE :end-before: .. END BASE_IMAGE .. include:: general.rst :start-after: .. BEGIN LOADING_DAGS_OVERVIEW :end-before: .. END LOADING_DAGS_OVERVIEW .. include:: general.rst :start-after: .. BEGIN LOADING_DAGS_FROM_S3 :end-before: .. END LOADING_DAGS_FROM_S3 .. ...
combine_chunk_1677
combine.txt
1,677
512
Files <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html>`__ - You must have credentials configured within the container to be able to interact with the remote service for your logs (e.g. S3, CloudWatch Logs, etc). This can be done in many ways. Some examples include, bu...
combine_chunk_1678
combine.txt
1,678
512
with `ECS Service Quotas <https://docs.aws.amazon.com/AmazonECS/latest/developerguide/service-quotas.html>`__. When running this executor, and Airflow generally, at a large scale there are some configuration options to take into consideration. Many of the below configurations will either limit how many tasks can run ...
combine_chunk_1679
combine.txt
1,679
512
create a Task Definition for the ECS Cluster that will work with Apache Airflow, you will need a Docker image that is properly configured. See the :ref:`Dockerfile <dockerfile_for_ecs_executor>` section for instructions on how to do that. Once the image is built, it needs to be put in a repository where it can be pul...
combine_chunk_1680
combine.txt
1,680
512
see `here <https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html>`__), the ECS executor (see :ref:`here <config-options>`) or for remote logging (see :ref:`here <logging>`). Note that any configuration changes should be made across the entire Airflow environment to keep configuration consistent....
combine_chunk_1681
combine.txt
1,681
512
TASK_INSTANCE_IDENTITY <|file|>airflow/providers/amazon/docs/executors/lambda-executor.rst .. Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The AS...
combine_chunk_1682
combine.txt
1,682
512
ing. For a quick start guide please see :ref:`here <lambda_setup_guide>`, it will get you up and running with a basic configuration. Both an example Dockerfile (found |dockerfileLink|) and Lambda invocation handler (found |appHandlerLink|) are provided. The below sections provide more generic details about configurati...
combine_chunk_1683
combine.txt
1,683
512
`here <https://airflow.apache.org/docs/apache-airflow/stable/configurations-ref.html>`__ for more details on setting configurations. In the case of conflicts, the order of precedence from lowest to highest is: 1. Load default values for options which have defaults. 2. Load any values explicitly provided through airf...
combine_chunk_1684
combine.txt
1,684
512
publish messages to the SQS queues and to write to CloudWatchLogs or S3 if using AWS remote logging and/or using S3 to synchronize Dags (e.g. ``CloudWatchLogsFullAccess`` or ``CloudWatchLogsFullAccessV2``). The AWS credentials used on the Scheduler need permissions to describe and invoke Lambda functions as well as to...
combine_chunk_1685
combine.txt
1,685
512
has to write under ``/tmp``. A Lambda function also starts with no ``HOME`` set. Airflow itself does not need one, but third party libraries commonly write caches, credentials or downloaded components under the user's home directory and fail outright when it is missing. DuckDB is one example: installing an extension ...
combine_chunk_1686
combine.txt
1,686
512
_guide>`. .. _lamba_logging: .. include:: general.rst :start-after: .. BEGIN LOGGING :end-before: .. END LOGGING - The configuration options for Airflow remote logging should be configured on all hosts and containers running Airflow. For example the Webserver requires this config so that it can fetch logs...
combine_chunk_1687
combine.txt
1,687
512
.apache.org/docs/apache-airflow/stable/configurations-ref.html>`__ for more details on setting configurations. .. _lambda_logging: Lambda Logging ~~~~~~~~~~~~~~~~ Lambda will send logging information to CloudWatch Logs for the Function invocations themselves. These logs will include the Airflow Task Operator logging...
combine_chunk_1688
combine.txt
1,688
512
Service. 2. Click "Create queue". 3. Select "Standard" as the queue type. 4. Provide a name for the queue, and select the defaults that work for your use case. 2. Click Create. Create Function ~~~~~~~~~~~~~~~ Finally create the function: 1. Log in to your AWS Management Console and navigate to the AWS Lambda Se...
combine_chunk_1689
combine.txt
1,689
512
SQL_ALCHEMY_CONN=<postgres-connection-string> export AIRFLOW__AWS_LAMBDA_EXECUTOR__FUNCTION_NAME=<lambda-function-name> export AIRFLOW__AWS_LAMBDA_EXECUTOR__QUEUE_URL=<sqs_queue_url> export AIRFLOW__AWS_LAMBDA_EXECUTOR__DEAD_LETTER_QUEUE_URL=<sqs_dlq_queue_url> .. include:: general.rst :start-after: .. ...
combine_chunk_1690
combine.txt
1,690
512
DOCKERFILE Dockerfile for AWS |executorName| Executor ------------------------------------------ An example Dockerfile can be found |dockerfileLink|, it creates an image that can be used by AWS |executorName| to run Airflow tasks using the AWS |executorName| Executor in Apache Airflow. The image supports AWS CLI/API...
combine_chunk_1691
combine.txt
1,691
512
_secret_access_key=YOUR_SECRET_KEY \ --build-arg aws_default_region=YOUR_DEFAULT_REGION \ --build-arg aws_session_token=YOUR_SESSION_TOKEN . Replace ``YOUR_ACCESS_KEY``, ``YOUR_SECRET_KEY``, ``YOUR_SESSION_TOKEN``, and ``YOUR_DEFAULT_REGION`` with valid AWS credentials. .. END DOCKERFILE_AUTH_SECOND_METHOD ....
combine_chunk_1692
combine.txt
1,692
512
container_dag_path`` as a build argument if you want to store the Dags in a directory other than ``/opt/airflow/dags``. Add ``--build-arg s3_uri=YOUR_S3_URI`` in the docker build command. Replace ``YOUR_S3_URI`` with the URI of your S3 bucket. Make sure you have the appropriate permissions to read from the bucket. No...
combine_chunk_1693
combine.txt
1,693
512
install`` to install the dependencies on the container. .. END DEPENDENCIES .. BEGIN LOGGING Logging ------- Airflow tasks executed via this executor run within the configured VPC. This means that logs are not directly accessible to the Airflow UI, after task completion, the logs would be permanently lost. Remote...
combine_chunk_1694
combine.txt
1,694
512
" tab of the RDS instance, find the link to the VPC security group for your new RDS DB instance. 2. Create an inbound rule that allows traffic from your IP address(es) on TCP port 5432 (PostgreSQL). 3. Confirm that you can connect to the DB after modifying the security group. This will require having ``psql`` install...
combine_chunk_1695
combine.txt
1,695
512
script should be run on the host(s) running the Airflow Scheduler and Webserver, before those processes are started. The script sets environment variables that configure Airflow to use the |executorName| Executor and provide necessary information for task execution. Any other configuration changes made (such as for r...
combine_chunk_1696
combine.txt
1,696
512
Amazon EKS cluster. It extends the Kubernetes executor from the ``cncf.kubernetes`` provider, so pod scheduling, pod templates, per-task pod overrides, log handling and requirements such as a database backend other than SQLite are all as described in :doc:`apache-airflow-providers-cncf-kubernetes:kubernetes_executor`...
combine_chunk_1697
combine.txt
1,697
512
credentials file or a secrets backend that stores them in the connection, the executor picks up the new keys without a restart. When the old keys stop working, the scheduler may log a warning that the cluster rejected the token, and the request is retried once with the new keys. Before it accepts any tasks, the execu...
combine_chunk_1698
combine.txt
1,698
512
ubernetes:config:kubernetes_executor__pod_template_file`, :ref:`apache-airflow-providers-cncf-kubernetes:config:kubernetes_executor__worker_container_repository`, :ref:`apache-airflow-providers-cncf-kubernetes:config:kubernetes_executor__worker_container_tag`, and :ref:`apache-airflow-providers-cncf-kubernetes:config:k...
combine_chunk_1699
combine.txt
1,699
512
the worker pods need an IAM role, for example through EKS Pod Identity, that can write to the log destination. .. _eks_setup_guide: Setting up an EKS Executor for Apache Airflow --------------------------------------------- .. _eks_grant_access: Grant access to the cluster ~~~~~~~~~~~~~~~~~~~~~~~~~~~ Create an...