mirror of https://github.com/OpenVidu/openvidu.git
deployment: Avoid aws-marketplace amis getting the latest ubuntu AMI in external turn CF
parent
91fd7c09ef
commit
898d12e695
|
@ -150,7 +150,8 @@ Resources:
|
|||
def handler(event, context):
|
||||
try:
|
||||
response = boto3.client('ec2').describe_images(Filters=[
|
||||
{'Name': 'name', 'Values': [event['ResourceProperties']['Name']]}
|
||||
{'Name': 'name', 'Values': [event['ResourceProperties']['Name']]},
|
||||
{'Name': 'owner-alias', 'Values': ['amazon']}
|
||||
])
|
||||
amis = sorted(response['Images'], key=lambda x: x['CreationDate'], reverse=True)
|
||||
id = amis[0]['ImageId']
|
||||
|
|
Loading…
Reference in New Issue