-
Notifications
You must be signed in to change notification settings - Fork 26
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
Nuke EKS clusters #1407
Conversation
@@ -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", |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
Codecov ReportAll modified and coverable lines are covered by tests ✅
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. |
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}", |
There was a problem hiding this comment.
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}
?
There was a problem hiding this 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
This PR addresses the deletion of an EKS cluster from the nuke DAG.