VagrantでMac環境向けにNFSを設定するときの権限設定
例えばVagrantfileに以下のように設定します。 上記の”ENV[‘MAC_CURRENT_USER_ID’]”はMacのユーザーIDを設定します。 ※Macの現在の…
例えばVagrantfileに以下のように設定します。 上記の”ENV[‘MAC_CURRENT_USER_ID’]”はMacのユーザーIDを設定します。 ※Macの現在の…
Ansible公式Docでは、ディレクトリーレイアウトのBest practiceは以下のように定義されている。 Best Practices — Ansible Documentation また、公式Docには明確な記…
Amazon Echo Dotにて弊社ブログの投稿数を取得するAmazon Echo(dot)用のcustom skillを作成します。 開封の義 Amazon Echo Dot初期設定編 Amazon Develope…
Amazon Echo Dotにて弊社ブログの投稿数を取得するAmazon Echo(dot)用のcustom skillを作成します。 開封の義 Amazon Echo Dot初期設定編 Amazon Develope…
Amazon Echo Dotにて弊社ブログの投稿数を取得するAmazon Echo(dot)用のcustom skillを作成します。 開封の義 Amazon Echo Dot初期設定編 Amazon Develope…
LambdaにC#サポートのUpdateがやってきました! 発表された際の歓声はかなり大きく、待ち望んでいた開発者も多いという事でした。 Monoでも使っているのか?と思ったらopen source .NET Core …
Amazon Echo Dotにて弊社ブログの投稿数を取得するAmazon Echo(dot)用のcustom skillを作成します。 開封の義 Amazon Echo Dot初期設定編 <- 今回はこちら Am…
概要 いちいちAWSのマネコンに入って、インスタンスを起動してという流れを膠着したい。 Boto3を使用して、インスタンスの起動をSDKを使用して行うものを作ってみました。 ソースコード [crayon-6632c9a3…
概要 Python SDKのboto3を使って、DynamoDBの操作をしてみました。 テーブルの作成
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 |
# -*- coding: utf-8 -*- import boto3 from boto3.session import Session dynamodb = boto3.resource('dynamodb') def create_table(): table = dynamodb.create_table( TableName = 'customer', KeySchema =[ { 'AttributeName' : 'id', 'KeyType' : 'HASH' }, { 'AttributeName' : 'name', 'KeyType' : 'RANGE' } ], AttributeDefinitions = [ { 'AttributeName' : 'id', 'AttributeType' : 'S' }, { 'AttributeName' : 'name', 'AttributeType' : 'S' } ], ProvisionedThroughput = { 'ReadCapacityUnits' : 1, 'WriteCapacityUnits' : 1 } ) table.meta.client.get_waiter('table_exists').wait(TableName = 'customer') print (table.item_count) create_table() |
https://github.com/handa3…
概要 Gitのコマンドについて簡単ではありますが、良く使うコマンドをまとめました。 GUIよりもCUI派です。 コマンドまとめ ブランチの確認
1 |
git branch -a |
ブランチの…