Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Align Glue component with Iberia deployment #25

Merged
merged 13 commits into from
Oct 14, 2024

Conversation

callarelli93
Copy link
Contributor

  • Configure Glue component like the Iberia deployment
  • Choose sensible defaults

@callarelli93 callarelli93 changed the title DRAFT: Align Glue component with Iberia deployment Align Glue component with Iberia deployment Sep 20, 2024
else f"s3://{self.code_repository_bucket}/{job.name}.py"

@staticmethod
def __get_default_arguments(job: GlueJobDefinition) -> dict[str, str]:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@callarelli93 same as __create_glue_trigger

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, why are you defining it as a staticmethod?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because it's not depending on any other method or properties

Comment on lines 74 to 126
"""
Glue job definitions and infrastructure dependencies such as IAM roles, external connections, code and data storage.

:param jobs: the list of GlueJobDefinition to deploy
:param execution_role: the IAM role attached to the Glue jobs if it exists, if not one will be createdw
:param database_name: name of the Glue database if it exists, if not one will be created
:param code_repository_bucket_name: name of the s3 code repository database if it exists, if not one will be created
:param data_bucket_name: name of the s3 bucket to store data, if it exists, if not one will be created
:param kafka_checkpoints_bucket_name: name of the s3 bucket to store checkpoints if it exists, if not one will be created
"""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@callarelli93 we should also decide on the docstring standards and use one standard everywhere. The only important thing in choosing the standard is how well the standard is supported with MKDocs.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kkiani In Inception, we agreed to continue with Google Style. I fixed all of the comments to be Google Style compatible.

@kkiani kkiani linked an issue Sep 24, 2024 that may be closed by this pull request
6 tasks
@kkiani kkiani force-pushed the main branch 2 times, most recently from 82eeb76 to da63efe Compare September 24, 2024 20:31
@farbodahm farbodahm force-pushed the feat/aws-spark-app-on-glue branch from 5fa9c6d to a20022f Compare October 4, 2024 09:09
@farbodahm farbodahm force-pushed the feat/aws-spark-app-on-glue branch from ffa6826 to e5730f8 Compare October 11, 2024 08:07
src/damavand/cloud/aws/controllers/spark.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
src/damavand/cloud/aws/resources/glue_component.py Outdated Show resolved Hide resolved
@farbodahm farbodahm merged commit 925f9d3 into main Oct 14, 2024
2 checks passed
@farbodahm farbodahm deleted the feat/aws-spark-app-on-glue branch October 14, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Sparkle support for AWS deployment
3 participants