You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge branch 'master' of github.com:nficano/python-lambda
* 'master' of github.com:nficano/python-lambda:
updating README and changing md5 to hashlib
removing print statement
adding various changes based on review feedback
Update README.rst
include subdirectories when building for deploy
making reference to bucket_name consistent
forgot to add refs to upload func
adding function to upload to s3
Push environment variables from the config file into the actual environment when calling invoke
Copy file name to clipboardExpand all lines: README.rst
+25-8Lines changed: 25 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -165,11 +165,22 @@ value for the environment variable at the time of deployment (instead of hard co
165
165
166
166
This would create environment variables in the lambda instance upon deploy. If your functions don't need environment variables, simply leave this section out of your config.
167
167
168
+
Uploading to S3
169
+
===============
170
+
You may find that you do not need the toolkit to fully deploy your Lambda or that your code bundle is too large to upload via the API. You can use the `upload` command to send the bundle to an S3 bucket of your choosing.
171
+
Before doing this, you will need to set the following variables in `config.yaml`:
172
+
```
173
+
role: basic_s3_upload
174
+
bucket_name: 'example-bucket'
175
+
s3_key_prefix: 'path/to/file/'
176
+
```
177
+
Your role must have `s3:PutObject` permission on the bucket/key that you specify for the upload to work properly. Once you have that set, you can execute `lambda upload` to initiate the transfer.
168
178
169
179
Development
170
180
===========
171
181
172
-
Development of this happens on GitHub, patches including tests, documentation are very welcome, as well as bug reports and feature contributions are welcome! Also please open an issue if this tool does not function as you'd expect.
182
+
Development of "python-lambda" is facilitated exclusively on GitHub. Contributions in the form of patches, tests and feature creation and/or requests are very welcome and highly encouraged. Please open an issue if this tool does not function as you'd expect.
183
+
173
184
174
185
How to release updates
175
186
----------------------
@@ -180,10 +191,16 @@ Once complete, execute the following commands:
180
191
181
192
.. code:: bash
182
193
183
-
$ git checkout master
184
-
$ bumpversion [major|minor|patch]
185
-
$
186
-
$ python setup.py sdist bdist_wheel upload
187
-
$
188
-
$ bumpversion --no-tag patch
189
-
$ git push origin master --tags
194
+
git checkout master
195
+
196
+
# Increment the version number and tag the release.
197
+
bumpversion [major|minor|patch]
198
+
199
+
# Upload the distribution to PyPi
200
+
python setup.py sdist bdist_wheel upload
201
+
202
+
# Since master often contains work-in-progress changes, increment the version
203
+
# to a patch release to prevent inaccurate attribution.
0 commit comments