import boto3
def lambda_handler(event, context):

    volumes = {
        "jenkins" : "vol-02085c8c7e3a46b85"
    }
    
    Client = boto3.client('ec2')
    
    for volume in volumes:
        snapshot = Client.create_snapshot(
          Description='volume %s' % volume,
          VolumeId=volumes[volume],
          DryRun=False
        )
    
        if not snapshot:
            return 'Something happened'    

    return True

66cb4c264e724d90e5ad60e29f06ecc3b70c03b1
<mask token>

<mask token>


def lambda_handler(event, context):
    volumes = {'jenkins': 'vol-02085c8c7e3a46b85'}
    Client = boto3.client('ec2')
    for volume in volumes:
        snapshot = Client.create_snapshot(Description='volume %s' % volume,
            VolumeId=volumes[volume], DryRun=False)
        if not snapshot:
            return 'Something happened'
    return True

import boto3


def lambda_handler(event, context):
    volumes = {'jenkins': 'vol-02085c8c7e3a46b85'}
    Client = boto3.client('ec2')
    for volume in volumes:
        snapshot = Client.create_snapshot(Description='volume %s' % volume,
            VolumeId=volumes[volume], DryRun=False)
        if not snapshot:
            return 'Something happened'
    return True

import boto3
def lambda_handler(event, context):

    volumes = {
        "jenkins" : "vol-02085c8c7e3a46b85"
    }
    
    Client = boto3.client('ec2')
    
    for volume in volumes:
        snapshot = Client.create_snapshot(
          Description='volume %s' % volume,
          VolumeId=volumes[volume],
          DryRun=False
        )
    
        if not snapshot:
            return 'Something happened'    

    return True
