Last active
August 29, 2015 14:28
-
-
Save do9iigane/9c4b4b72b0c83399c3d7 to your computer and use it in GitHub Desktop.
dynamoDBへのデータアクセス
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;awscliのインストール | |
$ brew install awscli | |
;dynamodb-localのインストール | |
$ brew install dynamodb-local | |
;awsのcredentialを設定 | |
$ aws configure | |
;以下調整する | |
AWS Access Key ID [****************C5WQ]: ] | |
AWS Secret Access Key [****************jD0i]: | |
Default region name [ap-northeast-1]: | |
Default output format [json]: | |
;dynamodb-localを使ってport 8809でlistenする | |
$ dynamodb-local -port 8809 & | |
[1] 48606 | |
do9mac:~ do9iigane$ Initializing DynamoDB Local with the following configuration: | |
Port: 8809 | |
InMemory: false | |
DbPath: null | |
SharedDb: false | |
shouldDelayTransientStatuses: false | |
CorsParams: * | |
;awsコマンドでlocalのport8809でlistenしたdynamoに接続する | |
$ aws dynamodb list-tables | |
{ | |
"TableNames": [ | |
"pra_crawl", | |
"pra_crawl_dev", | |
"pra_crawl_dev2", | |
"pra_raw_log", | |
"session" | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment