Skip to content

Commit

Permalink
docs: Suggest python3 template over python2 (#9773)
Browse files Browse the repository at this point in the history
python2 is [no longer a supported runtime](https://aws.amazon.com/blogs/compute/announcing-end-of-support-for-python-2-7-in-aws-lambda/) for AWS.

When I ran this example as it currently is in the docs it created a python2 project. Interestingly selecting `AWS - Python - Starter` from the CLI did create a python3 project, although the code seems to suggest this should be calling the `aws-python` template, but I probably missed a link there.
  • Loading branch information
dnx-seek committed Jul 22, 2021
1 parent 4d56be5 commit 32de9bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/providers/aws/examples/hello-world/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Commands
## 1. Create a service

```
sls create --template aws-python --path myService
sls create --template aws-python3 --path myService
```

Using the `create` command we can specify one of the available [templates](https://serverless.com/framework/docs/providers/aws/cli-reference/create#available-templates). For this example use aws-python with the `--template` or shorthand `-t` flag.
Expand Down

0 comments on commit 32de9bf

Please sign in to comment.