Skip to content

Commit

Permalink
Merge pull request #17 from csanchiz/master
Browse files Browse the repository at this point in the history
Minor fixes
  • Loading branch information
leopd committed Oct 10, 2017
2 parents 3350857 + 2632189 commit 025bd6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions social-media/README.md
Expand Up @@ -58,6 +58,7 @@ on how to get AWS credentials. The AWS user that you choose, needs
access to a subset of the following policy to run the scripts:

{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
Expand Down Expand Up @@ -85,7 +86,7 @@ To gather the training data, run the following command:
Substitute your company's twitter handle instead of @awscloud and
configure your Twitter API credentials in config.py. Learn how to
obtain your credentials
[https://dev.twitter.com/oauth/overview/application-owner-access-tokens](here).
[here](https://dev.twitter.com/oauth/overview/application-owner-access-tokens).

This will produce a file called `line_separated_tweets_json.txt` that
other scripts will read later.
Expand Down Expand Up @@ -213,9 +214,9 @@ function, the machine learning realtime endpoint, and the SNS Topic.

python create-lambda-function.py

This script requires that `create-lambda-function.config` is present and contains
This script requires that `config.py` is present and contains
appropriate values. Description of the configuration required in
`create-lambda-function.config` is as follows:
`config.py` is as follows:

* *awsAccountId* : The AWS Account Id corresponding to the credentials being used
with boto. See [docs](http://docs.aws.amazon.com/general/latest/gr/acct-identifiers.html)
Expand Down
2 changes: 1 addition & 1 deletion social-media/create-lambda-function.py
Expand Up @@ -111,7 +111,7 @@ def upload_lambda_function(zip_file_name):
aws_lambda.upload_function(
lambda_function_name,
zip_blob.read(),
"nodejs",
"nodejs6.10",
lambda_execution_role_arn,
"index.handler",
"event",
Expand Down

0 comments on commit 025bd6d

Please sign in to comment.