Created
November 4, 2022 09:33
-
-
Save barograf/892ea84b883695b65aaaed975b890e8d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import pulumi | |
| import pulumi_aws as aws | |
| aws.glue.Job( | |
| "rdsToS3GlueJob", | |
| name=job_name, | |
| role_arn=role.arn, | |
| command=aws.glue.JobCommandArgs( | |
| script_location=f"s3://{script_bucket}/{rds_to_s3_job_file_name}", | |
| python_version="3", | |
| ), | |
| connections=[connection.name], | |
| glue_version="2.0", | |
| default_arguments={ | |
| "--job-bookmark-option": "job-bookmark-enable", | |
| "--TempDir": f"s3://{script_bucket}/temp", | |
| "--CRAWLER": crawler_name, | |
| "--DEST_TABLE_PREFIX": "dl_", | |
| "--DEST": f”{data_lake_bkt}/{crawler_name}/tables", | |
| "--REGION": region, | |
| "--CATALOG": glue_catalog_database_name, | |
| }, | |
| number_of_workers=10, | |
| worker_type="G.1X", | |
| ) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment