aws-codestar

Installing Python dependencies in AWS Codestar with Lambda

余生颓废 提交于 2019-12-23 22:23:18
问题 I'm trying out AWS Codestar. My objective is to deploy a non-trivial lambda endpoint, that is, where the handler has dependencies. Ideally, I'd like to be able to specify them in a requirements.txt file somewhere but this seems not to be so straightforward. Specifically, I would like to deploy a lambda handler that depends on nltk and where the files for the nltk tokenizer "punkt" are downloaded as part of the Codebuild process and packaged up for Lambda. How can this be done through

Installing NLTK/WORDNET on AWS Lambda via CodeBuild

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-11 02:21:27
问题 I'm trying to get NLTK and Wordnet working on a lambda via CodeBuild. It looks like it installs fine in CloudFormation, but I get the following error in the Lambda: START RequestId: c660c446-e1c4-11e8-8047-15f59f1e002c Version: $LATEST Unable to import module 'index': No module named 'nltk' END RequestId: c660c446-e1c4-11e8-8047-15f59f1e002c REPORT RequestId: c660c446-e1c4-11e8-8047-15f59f1e002c Duration: 2.10 ms Billed Duration: 100 ms Memory Size: 128 MB Max Memory Used: 21 MB However when

Change IAM Role for a Lambda in a CloudFormation template in a CodeStar project?

纵饮孤独 提交于 2019-12-07 13:23:24
问题 How can I change the IAM Role for a Lambda function in an CloudFormation template of an AWS CodeStar project? I have created a AWS CodeStar project (web service, Lambda based, Node.js). By default, AWS CodeStar generates the following CloudFormation: AWSTemplateFormatVersion: 2010-09-09 Transform: - AWS::Serverless-2016-10-31 - AWS::CodeStar Parameters: ProjectId: Type: String Description: AWS CodeStar projectID used to associate new resources to team members Resources: HelloWorld: Type: AWS:

Change IAM Role for a Lambda in a CloudFormation template in a CodeStar project?

99封情书 提交于 2019-12-05 21:19:43
How can I change the IAM Role for a Lambda function in an CloudFormation template of an AWS CodeStar project? I have created a AWS CodeStar project (web service, Lambda based, Node.js). By default, AWS CodeStar generates the following CloudFormation: AWSTemplateFormatVersion: 2010-09-09 Transform: - AWS::Serverless-2016-10-31 - AWS::CodeStar Parameters: ProjectId: Type: String Description: AWS CodeStar projectID used to associate new resources to team members Resources: HelloWorld: Type: AWS::Serverless::Function Properties: Handler: index.handler Runtime: nodejs4.3 Role: Fn::ImportValue: