def change_asset_destination()

in build/transform.py [0:0]


def change_asset_destination(doc, bucket):
    """
    changes the destination to the bucket, without role assumption
    """

    for asset in doc["files"].values():
        del asset["destinations"]["current_account-current_region"]["assumeRoleArn"]
        asset["destinations"]["current_account-current_region"]["bucketName"] = bucket