﻿﻿

"""
https://stackoverflow.com/questions/30161700/how-to-move-files-between-two-amazon-s3-buckets-using-boto

import boto3
s3 = boto3.resource('s3')
copy_source = {
    'Bucket': 'mybucket',
    'Key': 'mykey'
}
s3.meta.client.copy(copy_source, 'otherbucket', 'otherkey')
"""



filename='navneteng-YMDef2.yml'

import boto3
import botocore
s3 = boto3.resource('s3')
copy_source = {
    'Bucket': 'ymbucketkira',
    'Key': filename
}
s3.meta.client.copy(copy_source, 'yukikiraarch', filename)