Тёмный

PYTHON & AWS - Create EC2 Snapshots by AWS Lambda 

Ava Tech
Подписаться 225
Просмотров 1,5 тыс.
50% 1

Source code:
1drv.ms/f/s!Am...
Amazon Boto3 library reference:
boto3.amazonaw...

Опубликовано:

 

5 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 3   
@pareshmarathe334
@pareshmarathe334 2 года назад
Thank you so much Buddy.. This tutorial is very helpful..
@arunmathuria321
@arunmathuria321 3 года назад
Thanks for sharing . I need your help to fix this code import boto3 ec = boto3.client('ec2', 'ap-south-1') ec2 = boto3.resource('ec2', 'ap-south-1') def lambda_handler(event, context): instance_ids = [] reservations = ec.describe_instances().get('Reservations', []) for reservation in reservations: for instance in reservation['Instances']: Tags = {} for Tag in instance['Tags']: Tags[Tag['Key']] = Tag['Value'] if not 'Patch Group' in Tags: print(instance['InstanceId'] + " does not have patch group tag") elif Tags['Patch Group'] in ['Prod', 'Dev', 'QA']: print(instance['InstanceId'] + " has not correct Patch Group Tag")
@arunmathuria321
@arunmathuria321 3 года назад
how can we make it multi region