Skip to content

Commit

Permalink
Add task to revoke ingress rule
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Mar 19, 2024
1 parent cf496ef commit 1d33b50
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions astronomer/providers/apache/hive/example_dags/example_hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,9 @@ def revoke_inbound_rules(task_instance):
GroupId=task_instance.xcom_pull(
key="cluster_response_master_security_group", task_ids=["describe_created_cluster"]
)[0],
IpProtocol="tcp",
)
logging.info("%s", response)


def ssh_and_run_command(task_instance: Any, **kwargs: Any) -> None:
Expand Down
2 changes: 2 additions & 0 deletions astronomer/providers/apache/livy/example_dags/example_livy.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,9 @@ def revoke_inbound_rules(task_instance):
GroupId=task_instance.xcom_pull(
key="cluster_response_master_security_group", task_ids=["describe_created_cluster"]
)[0],
IpProtocol="tcp",
)
logging.info("%s", response)


def ssh_and_run_command(task_instance: Any, **kwargs: Any) -> None:
Expand Down
2 changes: 2 additions & 0 deletions astronomer/providers/sftp/example_dags/example_sftp.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,9 @@ def revoke_inbound_rules(task_instance):
GroupId=task_instance.xcom_pull(
key="cluster_response_master_security_group", task_ids=["describe_created_cluster"]
)[0],
IpProtocol="tcp",
)
logging.info("%s", response)


def ssh_and_run_command(task_instance: Any, **kwargs: Any) -> None:
Expand Down

0 comments on commit 1d33b50

Please sign in to comment.