-
Notifications
You must be signed in to change notification settings - Fork 364
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update/deploy a lambda using a Docker container image
Part of #922
- Loading branch information
1 parent
30a4424
commit 5b695e7
Showing
18 changed files
with
805 additions
and
307 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,6 +27,7 @@ | |
"Version": "$LATEST", | ||
"Environment": { | ||
"Variables": {} | ||
} | ||
}, | ||
"PackageType": "Zip" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
tests/placebo/TestZappa.test_create_lambda_function_docker/lambda.CreateAlias_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"status_code": 201, | ||
"data": { | ||
"AliasArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:current-alb-version", | ||
"Description": "Zappa Deployment", | ||
"FunctionVersion": "1", | ||
"Name": "current-alb-version" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
tests/placebo/TestZappa.test_create_lambda_function_docker/lambda.CreateFunction_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"status_code": 201, | ||
"data": { | ||
"CodeSha256": "q4duEOI611sqtkU+YbdNkjH5qGRlgmvc9+FhpdykYuk=", | ||
"FunctionName": "test_lmbda_function55", | ||
"ResponseMetadata": { | ||
"HTTPStatusCode": 201, | ||
"RequestId": "12b75ef1-e226-11e5-84a2-ad7ddc64ad40" | ||
}, | ||
"CodeSize": 26585626, | ||
"MemorySize": 512, | ||
"FunctionArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55", | ||
"Version": "1", | ||
"Role": "arn:aws:iam::12345:role/ZappaLambdaExecution", | ||
"Timeout": 30, | ||
"LastModified": "2016-03-04T16:28:06.633+0000", | ||
"Description": "Zappa Deployment", | ||
"PackageType": "Image" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
...cebo/TestZappa.test_create_lambda_function_docker/lambda.DeleteFunctionConcurrency_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"ResponseMetadata": { | ||
"HTTPStatusCode": 200, | ||
"RequestId": "aff3a3f9-28f4-11e6-9dbb-5dd116b9ddf1" | ||
} | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/placebo/TestZappa.test_create_lambda_function_docker/lambda.GetAlias_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"AliasArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:current-alb-version", | ||
"Description": "Zappa Deployment", | ||
"FunctionVersion": "1", | ||
"Name": "current-alb-version" | ||
} | ||
} |
9 changes: 9 additions & 0 deletions
9
tests/placebo/TestZappa.test_create_lambda_function_docker/lambda.UpdateAlias_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"status_code": 201, | ||
"data": { | ||
"AliasArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:current-alb-version", | ||
"Description": "Zappa Deployment", | ||
"FunctionVersion": "1", | ||
"Name": "current-alb-version" | ||
} | ||
} |
20 changes: 20 additions & 0 deletions
20
tests/placebo/TestZappa.test_create_lambda_function_docker/lambda.UpdateFunctionCode_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"CodeSha256": "q4duEOI611sqtkU+YbdNkjH5qGRlgmvc9+FhpdykYuk=", | ||
"FunctionName": "test_lmbda_function55", | ||
"ResponseMetadata": { | ||
"HTTPStatusCode": 200, | ||
"RequestId": "153e09be-e226-11e5-a3b8-7b263f053e5a" | ||
}, | ||
"CodeSize": 26585626, | ||
"MemorySize": 512, | ||
"FunctionArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:1", | ||
"Version": "1", | ||
"Role": "arn:aws:iam::12345:role/ZappaLambdaExecution", | ||
"Timeout": 30, | ||
"LastModified": "2016-03-04T16:28:06.633+0000", | ||
"Description": "Zappa Deployment", | ||
"PackageType": "Image" | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
tests/placebo/TestZappa.test_is_lambda_function_ready/lambda.GetFunction_1.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"status_code": 200, | ||
"data": { | ||
"Code": { | ||
"RepositoryType": "S3", | ||
"Location": "https://prod-04-2014-tasks.s3.amazonaws.com/snapshots/724336686645/django-helloworld-unicode-a0d56d69-de7c-421b-9527-f49e100a8613?x-amz-security-token=AQoDYXdzEEka4AOil22HD1z9lkxZ7yiced%2FbYEWzXJHbMHexq2zxzMQ7%2Fj2a06AP9z3nK0QgGPUADK2A6FUpFFl%2BjO7gBmP%2FKifl9jTvvaf72YhPbZDJTIrFvZZ%2B5NjhkDrfRgyK%2BhBROGNH85L46iJSShwZ5lmKgADTnnVMT9pZ2JXF3uNLUzrWoJTpf%2F7lDBMEoFO%2BNLer7MsLsuCiemzKV4Kcvo0Mu3qhkk1u2BfoRTj4xmiaWE7UfqD%2FeQkINdwkUgXeQ9SA1T2l70omZ1ss2l1y18xeUvCQde5OrE7ue5cVpENyjYr9dEwPYwm1wG9%2B%2FJE%2BMQZ8Lz6CNex%2BTVuBvY09JL8vTV7WpRxGhr96a7OIn5YCCQ7cJfNVIWpdBUrWmqnE8Jh9oL558TVA0e5RFP9YU%2BFYxJcA6fH%2B0DZBAAK9797XPltzhSXrUcB8JuHfa%2FC1n2w8X7HbsMTI8m1OAIkQQtppYHtl4T5o3012VcSTLRSv945sCodMOmueKsEwAZlc1gFflcwGXE4v4hB6YJjvcRj2SQiK7Yzw7ShODOroOsWT18te8p9Qjs2mL6akLt1%2Fo8tddWskKzqrfYfBTvfFL5Y0nU4sI96JUXM0KXmJotPRmCdFEktGk4Fre0wm%2FyAau0NdaDQg7NzmtgU%3D&AWSAccessKeyId=ASIAIQFLXUK7E7GUTQ2A&Expires=1457113092&Signature=%2FH0RMGKWk1tEGnK9R6CCPXQ6Y04%3D" | ||
}, | ||
"Configuration": { | ||
"Version": "7", | ||
"CodeSha256": "t3pcqjdrLOqd2p0bRsCEOhgvLJ9sLJrVazpGqhDybsc=", | ||
"FunctionName": "django-helloworld-unicode", | ||
"MemorySize": 512, | ||
"CodeSize": 12154784, | ||
"FunctionArn": "arn:aws:lambda:us-east-1:724336686645:function:django-helloworld-unicode:7", | ||
"Handler": "handler.lambda_handler", | ||
"Role": "arn:aws:iam::724336686645:role/ZappaLambdaExecution", | ||
"Timeout": 30, | ||
"LastModified": "2016-03-01T00:24:01.446+0000", | ||
"Runtime": "python2.7", | ||
"Description": "Zappa Deployment", | ||
"State": "Active", | ||
"LastUpdateStatus": "Successful" | ||
}, | ||
"ResponseMetadata": { | ||
"HTTPStatusCode": 200, | ||
"RequestId": "78da1863-e22e-11e5-a5ae-01cbfdebdc8f" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.