|
4 | 4 | [](https://hub.docker.com/r/kilna/python-lambda/)
|
5 | 5 | [](https://hub.docker.com/r/kilna/python-lambda/)
|
6 | 6 | [](https://cloud.docker.com/swarm/kilna/repository/docker/kilna/python-lambda/builds)
|
7 |
| -[](https://github.com/kilna/python-lambda-docker/) |
| 7 | +[](https://github.com/kilna/python-lambda-docker/) |
8 | 8 |
|
9 |
| -Lightweight docker image for running and packaging python-based AWS lambda code |
| 9 | +Lightweight docker image for running, testing, packaging and deploying python-based AWS lambda functions |
10 | 10 |
|
11 | 11 | ## Links
|
12 | 12 |
|
@@ -37,7 +37,7 @@ Any time you make changes to the example project, you'll need to re-run the `doc
|
37 | 37 |
|
38 | 38 | #### Switching Python Versions
|
39 | 39 |
|
40 |
| -The example [Dockerfile](./example/Dockerfile) uses a _:latest_ docker tag in the FROM line, which is currently the same as _:3.6_, but if you wish to use a different Python version you can change this. Supported Python versions are 2.7, 3.3, 3.4, 3.5, 3.6. To use Python version 2.7 change the first line of the example [Dockerfile](./example/Dockerfile) to: |
| 40 | +The example [Dockerfile](./example/Dockerfile) uses a _:latest_ docker tag in the FROM line, which is currently the same as _:3.6_, but if you wish to use a different Python version you can change this. Supported Python versions are 2.7 and 3.6. To use Python version 2.7 change the first line of the example [Dockerfile](./example/Dockerfile) to: |
41 | 41 |
|
42 | 42 | ```
|
43 | 43 | FROM kilna/python-lambda:2.7
|
@@ -92,7 +92,7 @@ Behind the scenes, what this does is:
|
92 | 92 |
|
93 | 93 | ### Deploying the Lambda Function
|
94 | 94 |
|
95 |
| -You can deploy your lambda function to Amazon's infrastructure... you'll need to add AWS credentials into the [config.yaml](./example/config.yaml) file. Alternately you can credentials into your container by configuring them through the Dockerfile, for example by adding a `COPY .aws /root/.aws` line, where example/.aws/ is a copy of your ~/.aws/ directory. Once AWS is working within your container, you can then run the following to deploy your function to Amazon: |
| 95 | +You can deploy your lambda function to Amazon's infrastructure... you'll need to add AWS credentials into the [config.yaml](./example/config.yaml) file. Alternately, if your local AWS CLI environment is working, you can add a _.aws/_ directory (you can `cp ~/.aws`) into the _example/_ directory), then re-build your image. Once AWS is working within your container, you can then run the following to deploy your function to Amazon: |
96 | 96 |
|
97 | 97 | ```
|
98 | 98 | $ docker run example-lambda-image lambda deploy
|
|
0 commit comments