vincbeck commented on code in PR #29443:
URL: https://github.com/apache/airflow/pull/29443#discussion_r1101801403


##########
tests/system/providers/amazon/aws/example_emr.py:
##########
@@ -90,6 +90,16 @@
 # [END howto_operator_emr_steps_config]
 
 
+@task
+def get_ami_id():
+    """
+    Returns an AL2 AMI compatible with EMR
+    """
+    return boto3.client("ssm").get_parameter(
+        Name="/aws/service/ami-amazon-linux-latest/amzn2-ami-hvm-x86_64-ebs",
+    )["Parameter"]["Value"]

Review Comment:
   I like that. Thanks!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to