Skip to content

Instantly share code, notes, and snippets.

@sakama
Created March 18, 2015 02:14
Show Gist options
  • Save sakama/62a0446976abaa5e5894 to your computer and use it in GitHub Desktop.
Save sakama/62a0446976abaa5e5894 to your computer and use it in GitHub Desktop.
embulk-input-gcsを使うためのymlのexample
in:
type: gcs
bucket: my-bucket
path_prefix: sample
service_account_email: ABCXYZ123ABCXYZ123.gserviceaccount.com
application_name: MyAppName
p12_keyfile_fullpath: /path/to/gcskey.p12
decoders:
- {type: gzip}
parser:
charset: UTF-8
newline: CRLF
type: csv
delimiter: ','
quote: '"'
header_line: true
columns:
- {name: id, type: long}
- {name: account, type: long}
- {name: time, type: timestamp, format: '%Y-%m-%d %H:%M:%S'}
- {name: purchase, type: timestamp, format: '%Y%m%d'}
- {name: comment, type: string}
out: {type: stdout}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment