diff --git a/README.md b/README.md index fdba782..db440ae 100644 --- a/README.md +++ b/README.md @@ -85,7 +85,7 @@ pip3 install invokust --target=python-packages Or if running on a Mac (python packages need to be compiled for 64 bit Linux) you can use docker: ``` -docker run -it --volume=$PWD:/temp python:3.6 bash -c "pip install /temp --target=/temp/python-packages" +docker run -it --volume=$PWD:/temp python:3.7 bash -c "pip install /temp --target=/temp/python-packages" ``` Create the zip file: @@ -97,7 +97,7 @@ zip -q -r lambda_locust.zip lambda_locust.py locustfile_example.py python-packag Then create the Lambda function using using the AWS CLI: ``` -aws lambda create-function --function-name lambda_locust --timeout 300 --runtime python3.6 --role arn:aws:iam::9999999999:role/lambda_basic_execution --handler lambda_locust.handler --zip-file fileb://lambda_locust.zip +aws lambda create-function --function-name lambda_locust --timeout 300 --runtime python3.7 --role arn:aws:iam::9999999999:role/lambda_basic_execution --handler lambda_locust.handler --zip-file fileb://lambda_locust.zip ``` Or [Terraform](https://www.terraform.io/) and the example [main.tf](main.tf) file: @@ -252,7 +252,7 @@ Scratch [2020-06-28 19:58:54,144] pudli/INFO/root: Exiting... ``` -### Occasional errors +### Occasional errors * ERROR : `xxxxx-3f19-11e7-a1d1-xxxxxxx Process exited before completing request"` - - SOLUTION: Double the size of the memory for the function. \ No newline at end of file + - SOLUTION: Double the size of the memory for the function. diff --git a/main.tf b/main.tf index 3ca3bf9..bf4c9d2 100644 --- a/main.tf +++ b/main.tf @@ -50,7 +50,7 @@ resource "aws_lambda_function" "lambda_locust" { function_name = "lambda_locust" role = "${aws_iam_role.lambda_basic_execution.arn}" handler = "lambda_locust.handler" - runtime = "python3.6" + runtime = "python3.7" timeout = 300 description = "A function that runs a locust load test" environment { diff --git a/package_lambda_code.sh b/package_lambda_code.sh index 042bda6..ef44335 100755 --- a/package_lambda_code.sh +++ b/package_lambda_code.sh @@ -4,6 +4,6 @@ rm -rf python-packages python3 setup.py bdist_wheel -docker run -it -v $PWD/python-packages:/python-packages -v $PWD/dist:/dist python:3.6 bash -c "pip install dist/invokust-*.whl --target=/python-packages" +docker run -it -v $PWD/python-packages:/python-packages -v $PWD/dist:/dist python:3.7 bash -c "pip install dist/invokust-*.whl --target=/python-packages" zip -q -r lambda_locust.zip lambda_locust.py locustfile_example.py python-packages diff --git a/setup.py b/setup.py index 7f2eb6e..143b3dd 100644 --- a/setup.py +++ b/setup.py @@ -5,14 +5,14 @@ setup( name="invokust", - version="0.76", + version="0.77", author="Max Williams", author_email="futuresharks@gmail.com", description="A small wrapper for locust to allow running load tests from within Python or on AWS Lambda", long_description=long_description, long_description_content_type="text/markdown", url="https://github.com/FutureSharks/invokust", - download_url="https://github.com/FutureSharks/invokust/archive/0.76.tar.gz", + download_url="https://github.com/FutureSharks/invokust/archive/0.77.tar.gz", license="MIT", scripts=["invokr.py"], packages=[ @@ -25,6 +25,6 @@ "Topic :: Software Development :: Quality Assurance", "Topic :: Software Development :: Testing", "Topic :: Software Development :: Testing :: Traffic Generation", - "Programming Language :: Python :: 3.6", + "Programming Language :: Python :: 3.7", ], )