Skip to content

Instantly share code, notes, and snippets.

@Akira-Taniguchi
Created August 20, 2016 01:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Akira-Taniguchi/00c7e4eec71e8a1a3875adc2568e98f0 to your computer and use it in GitHub Desktop.
Save Akira-Taniguchi/00c7e4eec71e8a1a3875adc2568e98f0 to your computer and use it in GitHub Desktop.
[AWS][GCP]Pythonで簡単にクラウドサービスが利用できるようにしてみた ref: http://qiita.com/Akira-Taniguchi/items/76e6b893c75324050fdc
#EC2インスタンス起動
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テーブル削除
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment