using the google cloud -for developers- part four

22
Using Google’s Cloud – for Developers Part 4 of 6 Using command line tools with the Google Cloud Lynn Langit

Upload: lynn-langit

Post on 14-May-2015

2.318 views

Category:

Technology


1 download

DESCRIPTION

Part 4 of 6 - YouTube screencast series - 'Intro to the Google Cloud for Developers' - using command line tools

TRANSCRIPT

Page 1: Using the Google Cloud -for Developers- part four

Using Google’s Cloud – for Developers

Part 4 of 6 Using command line tools with the Google

Cloud

Lynn Langit

Page 2: Using the Google Cloud -for Developers- part four

About Lynn Langit

Practicing Architect

• Cloud Deployments• Azure• AWS• Google• Rackspac

e

Google

• Google Cloud Developer Expert

AWS & Others

• AWS Insider• MongoDB

Master• Cloudera

certified trainer

Microsoft

• FTE for 4 years

• SQL Server MVP

Page 3: Using the Google Cloud -for Developers- part four

About This Series

Is a series of screencasts including demos and code samples• Designed for Java developers

• Shows how to work with Google Cloud Services

Delivered in Six Parts• Part One – What is the Google Cloud?

• Part Two – Using the web consoles

• Part Three – Understanding billing

• Part Four – Using command line

• Part Five – Programming APIs with Java

• Part Six – Learning More / Next steps

Page 4: Using the Google Cloud -for Developers- part four

Using the command line with the Google Cloud

Part Four

Page 5: Using the Google Cloud -for Developers- part four

Using the Google Cloud Command Line Tools

Download the tools

Configure the tools

Select acomman

d

Run a comman

d

Establish OAuth

Run the comman

ds

Page 6: Using the Google Cloud -for Developers- part four

Getting Started – download the Google Cloud SDK

NOTE: “The Cloud SDK is currently a developer preview, and is under active development.”

Page 7: Using the Google Cloud -for Developers- part four

What are the command line tools?

gcloud - provides authentication, configuration, and component management (future) “more cloud developer workflow utilities” for various Google Cloud Services, also has an interactive mode (Python scripting)

gcd – to manage the Google Cloud datastore gcloud sql – to manage Google Cloud SQL instances gcutil – to manage Google Compute Engine gsutil – to manage Google Cloud storage appcfg – to deploy to Google App Engine bq – to manage Google BigQuery

Page 8: Using the Google Cloud -for Developers- part four

Authentication

Page 9: Using the Google Cloud -for Developers- part four

A bit more about OAuth 2.0

via a service accountvia an installed application

Page 10: Using the Google Cloud -for Developers- part four

Viewing Credentials

DEMO

Page 11: Using the Google Cloud -for Developers- part four

Using gcloud

DEMO

Page 12: Using the Google Cloud -for Developers- part four

gcloud command line examples

$ gcloud auth login

$ gcloud config set project <new-project-id>

$ gcloud config unset project

$ gcloud config list

$ gcloud components list

Page 13: Using the Google Cloud -for Developers- part four

Using gcutil with GCE

DEMO

Page 14: Using the Google Cloud -for Developers- part four

Using gcutil with GCE

Page 15: Using the Google Cloud -for Developers- part four

Using gsutil with Google Cloud Storage

DEMO

Page 16: Using the Google Cloud -for Developers- part four

Using gsutil with Google Cloud Storage

Page 17: Using the Google Cloud -for Developers- part four

Using bq with Google BigQuery

DEMO

Page 18: Using the Google Cloud -for Developers- part four

Using bq with Google Big Query

Page 19: Using the Google Cloud -for Developers- part four

Command line examples

$ gcutil addinstance my-first-instance --wait_until_running

$ gcloud sql instances create your-instance-name

$ bq query "SELECT name,count FROM mydataset.babynames WHERE gender = 'M' ORDER BY count DESC LIMIT 6"

Page 20: Using the Google Cloud -for Developers- part four

About This Series

Is a series of screencasts including demos and code samples• Designed for Java

developers• Shows how to

work with Google Cloud Services

Delivered in Six Parts• Part One – What is

the Google Cloud?• Part Two – Using

the web consoles• Part Three –

Understanding billing

• Part Four – Using command line

• Part Five – Programming APIs with Java

• Part Six – Learning More / Next steps

Page 21: Using the Google Cloud -for Developers- part four

www.TeachingKidsProgramming.org• Free Courseware (Java, Small Basic or C# [on Pluralsight])• Do a Recipe Teach a Kid (Ages 10 ++)

• recipes)

Page 22: Using the Google Cloud -for Developers- part four

Keep Learning

Twitter: @LynnLangit YouTube:

http://www.youtube.com/user/SoCalDevGal

Hire me To help build your BI/Big Data solution To teach your team next gen BI To learn more about using NoSQL

solutions