Skip to content

Commit 1cdbd7f

Browse files
authored
Merge pull request #967 from ian-whitestone/add-docker-support
Update/deploy a lambda using a Docker container image
2 parents d66ed94 + 16d0ed6 commit 1cdbd7f

18 files changed

+809
-305
lines changed

tests/placebo/TestZappa.test_cli_aws/lambda.GetFunctionConfiguration_1.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"Version": "$LATEST",
2828
"Environment": {
2929
"Variables": {}
30-
}
30+
},
31+
"PackageType": "Zip"
3132
}
3233
}

tests/placebo/TestZappa.test_cli_aws/lambda.ListVersionsByFunction_2.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"Timeout": 30,
1919
"LastModified": "2016-06-02T19:24:32.878+0000",
2020
"Runtime": "python2.7",
21-
"Description": "Zappa Deployment"
21+
"Description": "Zappa Deployment",
22+
"PackageType": "Zip"
2223
},
2324
{
2425
"Version": "1",
@@ -32,7 +33,8 @@
3233
"Timeout": 30,
3334
"LastModified": "2016-06-02T19:23:48.902+0000",
3435
"Runtime": "python2.7",
35-
"Description": "Zappa Deployment"
36+
"Description": "Zappa Deployment",
37+
"PackageType": "Zip"
3638
},
3739
{
3840
"Version": "2",
@@ -46,7 +48,8 @@
4648
"Timeout": 30,
4749
"LastModified": "2016-06-02T19:24:32.878+0000",
4850
"Runtime": "python2.7",
49-
"Description": "Zappa Deployment"
51+
"Description": "Zappa Deployment",
52+
"PackageType": "Zip"
5053
}
5154
]
5255
}

tests/placebo/TestZappa.test_cli_aws/lambda.ListVersionsByFunction_4.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
"Timeout": 30,
2626
"LastModified": "2016-08-25T03:31:23.343+0000",
2727
"Runtime": "python2.7",
28-
"Description": "Zappa Deployment"
28+
"Description": "Zappa Deployment",
29+
"PackageType": "Zip"
2930
},
3031
{
3132
"Version": "4",
@@ -39,7 +40,8 @@
3940
"Timeout": 30,
4041
"LastModified": "2016-08-25T03:29:40.612+0000",
4142
"Runtime": "python2.7",
42-
"Description": "Zappa Deployment"
43+
"Description": "Zappa Deployment",
44+
"PackageType": "Zip"
4345
},
4446
{
4547
"Version": "5",
@@ -53,7 +55,8 @@
5355
"Timeout": 30,
5456
"LastModified": "2016-08-25T03:31:18.572+0000",
5557
"Runtime": "python2.7",
56-
"Description": "Zappa Deployment"
58+
"Description": "Zappa Deployment",
59+
"PackageType": "Zip"
5760
}
5861
]
5962
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"status_code": 201,
3+
"data": {
4+
"AliasArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:current-alb-version",
5+
"Description": "Zappa Deployment",
6+
"FunctionVersion": "1",
7+
"Name": "current-alb-version"
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"status_code": 201,
3+
"data": {
4+
"CodeSha256": "q4duEOI611sqtkU+YbdNkjH5qGRlgmvc9+FhpdykYuk=",
5+
"FunctionName": "test_lmbda_function55",
6+
"ResponseMetadata": {
7+
"HTTPStatusCode": 201,
8+
"RequestId": "12b75ef1-e226-11e5-84a2-ad7ddc64ad40"
9+
},
10+
"CodeSize": 26585626,
11+
"MemorySize": 512,
12+
"FunctionArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55",
13+
"Version": "1",
14+
"Role": "arn:aws:iam::12345:role/ZappaLambdaExecution",
15+
"Timeout": 30,
16+
"LastModified": "2016-03-04T16:28:06.633+0000",
17+
"Description": "Zappa Deployment",
18+
"PackageType": "Image"
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"status_code": 200,
3+
"data": {
4+
"ResponseMetadata": {
5+
"HTTPStatusCode": 200,
6+
"RequestId": "aff3a3f9-28f4-11e6-9dbb-5dd116b9ddf1"
7+
}
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"status_code": 200,
3+
"data": {
4+
"AliasArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:current-alb-version",
5+
"Description": "Zappa Deployment",
6+
"FunctionVersion": "1",
7+
"Name": "current-alb-version"
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"status_code": 201,
3+
"data": {
4+
"AliasArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:current-alb-version",
5+
"Description": "Zappa Deployment",
6+
"FunctionVersion": "1",
7+
"Name": "current-alb-version"
8+
}
9+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"status_code": 200,
3+
"data": {
4+
"CodeSha256": "q4duEOI611sqtkU+YbdNkjH5qGRlgmvc9+FhpdykYuk=",
5+
"FunctionName": "test_lmbda_function55",
6+
"ResponseMetadata": {
7+
"HTTPStatusCode": 200,
8+
"RequestId": "153e09be-e226-11e5-a3b8-7b263f053e5a"
9+
},
10+
"CodeSize": 26585626,
11+
"MemorySize": 512,
12+
"FunctionArn": "arn:aws:lambda:us-east-1:12345:function:test_lmbda_function55:1",
13+
"Version": "1",
14+
"Role": "arn:aws:iam::12345:role/ZappaLambdaExecution",
15+
"Timeout": 30,
16+
"LastModified": "2016-03-04T16:28:06.633+0000",
17+
"Description": "Zappa Deployment",
18+
"PackageType": "Image"
19+
}
20+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{
2+
"status_code": 200,
3+
"data": {
4+
"Code": {
5+
"RepositoryType": "S3",
6+
"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"
7+
},
8+
"Configuration": {
9+
"Version": "7",
10+
"CodeSha256": "t3pcqjdrLOqd2p0bRsCEOhgvLJ9sLJrVazpGqhDybsc=",
11+
"FunctionName": "django-helloworld-unicode",
12+
"MemorySize": 512,
13+
"CodeSize": 12154784,
14+
"FunctionArn": "arn:aws:lambda:us-east-1:724336686645:function:django-helloworld-unicode:7",
15+
"Handler": "handler.lambda_handler",
16+
"Role": "arn:aws:iam::724336686645:role/ZappaLambdaExecution",
17+
"Timeout": 30,
18+
"LastModified": "2016-03-01T00:24:01.446+0000",
19+
"Runtime": "python2.7",
20+
"Description": "Zappa Deployment",
21+
"State": "Active",
22+
"LastUpdateStatus": "Successful"
23+
},
24+
"ResponseMetadata": {
25+
"HTTPStatusCode": 200,
26+
"RequestId": "78da1863-e22e-11e5-a5ae-01cbfdebdc8f"
27+
}
28+
}
29+
}

tests/placebo/TestZappa.test_rollback_lambda_function_version/lambda.ListVersionsByFunction_1.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"Timeout": 30,
1919
"LastModified": "2016-03-01T00:55:35.845+0000",
2020
"Runtime": "python2.7",
21-
"Description": "Zappa Deployment"
21+
"Description": "Zappa Deployment",
22+
"PackageType": "Zip"
2223
},
2324
{
2425
"Version": "1",
@@ -32,7 +33,8 @@
3233
"Timeout": 30,
3334
"LastModified": "2016-02-29T14:39:31.557+0000",
3435
"Runtime": "python2.7",
35-
"Description": "Zappa Deployment"
36+
"Description": "Zappa Deployment",
37+
"PackageType": "Zip"
3638
},
3739
{
3840
"Version": "2",
@@ -46,7 +48,8 @@
4648
"Timeout": 30,
4749
"LastModified": "2016-02-29T14:47:04.499+0000",
4850
"Runtime": "python2.7",
49-
"Description": "Zappa Deployment"
51+
"Description": "Zappa Deployment",
52+
"PackageType": "Zip"
5053
},
5154
{
5255
"Version": "3",
@@ -60,7 +63,8 @@
6063
"Timeout": 30,
6164
"LastModified": "2016-02-29T14:58:08.443+0000",
6265
"Runtime": "python2.7",
63-
"Description": "Zappa Deployment"
66+
"Description": "Zappa Deployment",
67+
"PackageType": "Zip"
6468
},
6569
{
6670
"Version": "4",
@@ -74,7 +78,8 @@
7478
"Timeout": 30,
7579
"LastModified": "2016-02-29T16:25:49.425+0000",
7680
"Runtime": "python2.7",
77-
"Description": "Zappa Deployment"
81+
"Description": "Zappa Deployment",
82+
"PackageType": "Zip"
7883
},
7984
{
8085
"Version": "5",
@@ -88,7 +93,8 @@
8893
"Timeout": 30,
8994
"LastModified": "2016-02-29T16:34:47.988+0000",
9095
"Runtime": "python2.7",
91-
"Description": "Zappa Deployment"
96+
"Description": "Zappa Deployment",
97+
"PackageType": "Zip"
9298
},
9399
{
94100
"Version": "6",
@@ -102,7 +108,8 @@
102108
"Timeout": 30,
103109
"LastModified": "2016-03-01T00:12:28.708+0000",
104110
"Runtime": "python2.7",
105-
"Description": "Zappa Deployment"
111+
"Description": "Zappa Deployment",
112+
"PackageType": "Zip"
106113
},
107114
{
108115
"Version": "7",
@@ -116,7 +123,8 @@
116123
"Timeout": 30,
117124
"LastModified": "2016-03-01T00:24:01.446+0000",
118125
"Runtime": "python2.7",
119-
"Description": "Zappa Deployment"
126+
"Description": "Zappa Deployment",
127+
"PackageType": "Zip"
120128
},
121129
{
122130
"Version": "8",
@@ -130,7 +138,8 @@
130138
"Timeout": 30,
131139
"LastModified": "2016-03-01T00:55:35.845+0000",
132140
"Runtime": "python2.7",
133-
"Description": "Zappa Deployment"
141+
"Description": "Zappa Deployment",
142+
"PackageType": "Zip"
134143
}
135144
]
136145
}

tests/placebo/TestZappa.test_rollback_lambda_function_version/lambda.ListVersionsByFunction_2.json

+18-9
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
"Timeout": 30,
1919
"LastModified": "2016-03-01T00:55:35.845+0000",
2020
"Runtime": "python2.7",
21-
"Description": "Zappa Deployment"
21+
"Description": "Zappa Deployment",
22+
"PackageType": "Zip"
2223
},
2324
{
2425
"Version": "1",
@@ -32,7 +33,8 @@
3233
"Timeout": 30,
3334
"LastModified": "2016-02-29T14:39:31.557+0000",
3435
"Runtime": "python2.7",
35-
"Description": "Zappa Deployment"
36+
"Description": "Zappa Deployment",
37+
"PackageType": "Zip"
3638
},
3739
{
3840
"Version": "2",
@@ -46,7 +48,8 @@
4648
"Timeout": 30,
4749
"LastModified": "2016-02-29T14:47:04.499+0000",
4850
"Runtime": "python2.7",
49-
"Description": "Zappa Deployment"
51+
"Description": "Zappa Deployment",
52+
"PackageType": "Zip"
5053
},
5154
{
5255
"Version": "3",
@@ -60,7 +63,8 @@
6063
"Timeout": 30,
6164
"LastModified": "2016-02-29T14:58:08.443+0000",
6265
"Runtime": "python2.7",
63-
"Description": "Zappa Deployment"
66+
"Description": "Zappa Deployment",
67+
"PackageType": "Zip"
6468
},
6569
{
6670
"Version": "4",
@@ -74,7 +78,8 @@
7478
"Timeout": 30,
7579
"LastModified": "2016-02-29T16:25:49.425+0000",
7680
"Runtime": "python2.7",
77-
"Description": "Zappa Deployment"
81+
"Description": "Zappa Deployment",
82+
"PackageType": "Zip"
7883
},
7984
{
8085
"Version": "5",
@@ -88,7 +93,8 @@
8893
"Timeout": 30,
8994
"LastModified": "2016-02-29T16:34:47.988+0000",
9095
"Runtime": "python2.7",
91-
"Description": "Zappa Deployment"
96+
"Description": "Zappa Deployment",
97+
"PackageType": "Zip"
9298
},
9399
{
94100
"Version": "6",
@@ -102,7 +108,8 @@
102108
"Timeout": 30,
103109
"LastModified": "2016-03-01T00:12:28.708+0000",
104110
"Runtime": "python2.7",
105-
"Description": "Zappa Deployment"
111+
"Description": "Zappa Deployment",
112+
"PackageType": "Zip"
106113
},
107114
{
108115
"Version": "7",
@@ -116,7 +123,8 @@
116123
"Timeout": 30,
117124
"LastModified": "2016-03-01T00:24:01.446+0000",
118125
"Runtime": "python2.7",
119-
"Description": "Zappa Deployment"
126+
"Description": "Zappa Deployment",
127+
"PackageType": "Zip"
120128
},
121129
{
122130
"Version": "8",
@@ -130,7 +138,8 @@
130138
"Timeout": 30,
131139
"LastModified": "2016-03-01T00:55:35.845+0000",
132140
"Runtime": "python2.7",
133-
"Description": "Zappa Deployment"
141+
"Description": "Zappa Deployment",
142+
"PackageType": "Zip"
134143
}
135144
]
136145
}

0 commit comments

Comments
 (0)