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

Nuke EKS clusters #1407

Merged
merged 5 commits into from
Dec 29, 2023
Merged

Nuke EKS clusters #1407

merged 5 commits into from
Dec 29, 2023

Conversation

vatsrahul1001
Copy link
Contributor

This PR addresses the deletion of an EKS cluster from the nuke DAG.

@@ -125,6 +131,15 @@ def check_dag_status(**kwargs: Any) -> None:
f"aws emr-containers list-virtual-clusters --state RUNNING --region {AWS_DEFAULT_REGION} | jq -r '.virtualClusters[].id' | xargs -I % aws emr-containers delete-virtual-cluster --id % --region {AWS_DEFAULT_REGION}; ",
)

terminate_regression_clusters = BashOperator(
task_id="terminate_regression_clusters",
Copy link
Collaborator

Choose a reason for hiding this comment

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

let's mention here that these are from Astro SDK
e.g. terminate_astro_sdk_regression_clusters or terminate_dag_authoring_regression_clusters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

terminate_dag_authoring_regression_clusters would be better

Copy link

codecov bot commented Dec 29, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (f1887ee) 98.54% compared to head (ec75c80) 98.54%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1407   +/-   ##
=======================================
  Coverage   98.54%   98.54%           
=======================================
  Files          91       91           
  Lines        5364     5364           
=======================================
  Hits         5286     5286           
  Misses         78       78           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

f"aws configure set aws_access_key_id {REGRESSION_CLUSTER_AWS_ACCESS_KEY}; "
f"aws configure set aws_secret_access_key {REGRESSION_CLUSTER_AWS_SECRET_ACCESS_KEY}; "
f"aws configure set default.region {REGRESSION_CLUSTER_AWS_DEFAULT_REGION}; "
f"sh $AIRFLOW_HOME/dags/delete_eks_cluster_and_nodes.sh {REGRESSION_CLUSTER_AWS_DEFAULT_REGION}",
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need to pass REGRESSION_CLUSTER_AWS_DEFAULT_REGION as a parameter can't we access it in the bash file directly with something like ${REGRESSION_CLUSTER_AWS_DEFAULT_REGION}?

Copy link
Contributor

@pankajastro pankajastro left a comment

Choose a reason for hiding this comment

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

LGTM, just a small comment but that should not be a blocker

@vatsrahul1001 vatsrahul1001 merged commit ad9dbb7 into main Dec 29, 2023
15 checks passed
@vatsrahul1001 vatsrahul1001 deleted the nuke-regression-cluster branch December 29, 2023 13:00
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.

4 participants