Skip to content

Commit

Permalink
Add docs
Browse files Browse the repository at this point in the history
  • Loading branch information
pankajastro committed Mar 19, 2024
1 parent 2b6d4c8 commit bcc7ffa
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions astronomer/providers/apache/hive/example_dags/example_hive.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,11 +222,25 @@ def revoke_inbound_rules(task_instance):
response = client.revoke_security_group_ingress(
CidrIp=ip_range,
FromPort=22,
ToPort=22,
GroupId=task_instance.xcom_pull(
key="cluster_response_master_security_group", task_ids=["describe_created_cluster"]
)[0],
IpProtocol="tcp",
)

logging.info("%s", response)

response = client.revoke_security_group_ingress(
CidrIp=ip_range,
FromPort=HIVE_OPERATOR_INGRESS_PORT,
ToPort=HIVE_OPERATOR_INGRESS_PORT,
GroupId=task_instance.xcom_pull(
key="cluster_response_master_security_group", task_ids=["describe_created_cluster"]
)[0],
IpProtocol="tcp",
)

logging.info("%s", response)


Expand Down

0 comments on commit bcc7ffa

Please sign in to comment.