Installation

  1. Install the FirstAlexaSkills package and its dependencies

    $ pip install firstalexaskills
    
  2. Create an Amazon developer account

  3. Create an AWS account (the first million AWS Lambda calls are free)

  4. Create an IAM user called ‘lambdaUser’ for running and updating the AWS Lambda functions. The user will require the ‘AWSLambdaFullAccess’ permissions. Make sure to check “Programmatic access” when creating the user. The AWS website will generate an access key for you, which you can download in .csv file. We will use the credentials in the next step.

  5. Configure the AWS CLI to use credentials of your new IAM user

    $ aws configure --profile lambdaUser
    

    Paste the information from credentials.csv into your command line:

    • Access key ID
    • Secret access key
    • an aws region of your choice - example: eu-west-1
    • format: json
  6. Create an execution role for AWS Lambda functions.

    Preferably use ‘basic_lambda_execute’ as name for the role, since the package uses it as default. Unless you expect your function to require special privileges, like access to S3, use the official policy ‘AWSLambdaExecute’.

  7. Verify that the IAM user is setup correctly:

    $ aws lambda list-functions --profile lambdaUser
    {
        "Functions": []
    }