LoginSignup
0

More than 3 years have passed since last update.

AWS Glue jobのpython shellをCloudFormationからpython3で指定して作成する方法

Posted at

経緯

公式ドキュメントみてもなかなかみつけられなかったのでメモです。
※CLIのほうのドキュメントから推定しました。

ソースサンプル

  GlueJob:
    Type: AWS::Glue::Job
    Properties:
      Command:
        Name: pythonshell
        ScriptLocation:  !Sub 's3://<ソースファイル置いてるバケット名>/xxx.py'
        PythonVersion: 3  # ←これで設定ができます。これを記載しないと現在(2019-09-06)はデフォルトがpython2
      # その他の設定は公式を参照 

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0