--I checked the operation with Python2 system, but I think it will work with 3, maybe. Dunno. ――Please use at your own risk. --If you have any problems, please pull request.
――I liked boto3, so I wanted to make something and publish it. ――Since googleapiclient has to do a lot of mess, I thought that creating a wrapper class would make everyone happy.
It is also written on github page, but also here
#EC2 instance launch
from cloud_lib.amazon_services import Ec2
ec2_service = Ec2(aws_access_key_id, aws_secret_access_key, region_name)
ec2_service.start_instance('instance_id')
#BigQuery table delete
from cloud_lib.google_services import BigQuery
bq_service = BigQuery(project_id, client_id, client_secret, refresh_token)
bq_service.delete_table(data_set_id, table_id)
Other --You can put a message in SQS and put it out in reverse. --Stop EC2 --Upload files to S3 or Google Storage, or download them in reverse --Table copy, import from storage, data acquisition for DynamoDB and BigQuery And so on. Please check the readme for details.
--I was surprised that the mundane name cloud_lib was still open. ――There are still some features that are missing, but we plan to add them in the future. And the schedule is undecided. --The source of google_services.py tends to be long because there is no boto3
I don't think it's a problem to make this kind of thing without permission, but if it doesn't work, I'll erase it, so please contact me. I'm sorry.
Recommended Posts