1.
2.
: 컴퓨팅 > Lambda 클릭
3.
: 함수 만들기 버튼 클릭
4.
: 함수 생성에서 새로 작성을 클릭 후 다음과 같은 예시로 작성, 작성 후 함수 생성 버튼 클릭
> 이름 -> todo
> 런타임 -> Python 3.6
> 역할 -> 1개 이상의 템플릿에서 새로운 역할을 생성합니다.
> 역할 이름 -> myRoleDefault
5.
: 생성한 Lambda 함수 화면
6.
: Designer에서 API 게이트웨이를 클릭하여 트리거 추가 후 추가된 API 게이트웨이 항목 클릭
7.
: 트리거 구성에서 다음과 같은 예시로 작성 후 추가 버튼 클릭
> API -> 새 API 생성
> 보안 -> 열기
* 추가 세팅 이하가 보이지 않는다면 추가 세팅을 클릭하여 하위 목록 활성화
> 배포 단계 -> v1
8.
: 트리거 구성 후 저장되지 않은 변경 사항이 있으므로 상단의 저장 버튼을 클릭
9.
10.
11.
: 프로젝트를 생성할 경로로 이동, 여기서는 "c:\workspace\python"으로 지정
1 2 3 4 | C:\Users\Admin>cd c:\workspace\python c:\workspace\python> | cs |
12.
: 작업할 프로젝트 폴더를 생성
1 2 3 4 | c:\workspace\python>mkdir todo c:\workspace\python> | cs |
13.
: 생성한 프로젝트 폴더로 이동
1 2 3 4 | c:\workspace\python>cd todo c:\workspace\python\todo> | cs |
14.
: 파이썬 패키지 관리 명령어를 통해서 pymysql 패키지를 설치
: -t 옵션은 설치를 진행할 타겟을 지정한다는 의미이며, 앞에 .은 현재 경로를 의미하므로 현재 경로가 프로젝트 폴더 내에 있는지 확인 필요!!
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 | c:\workspace\python\todo>pip install pymysql -t . Collecting pymysql Downloading https://files.pythonhosted.org/packages/a7/7d/682c4a7da195a678047c8f1c51bb7682aaedee1dca7547883c3993ca9282/PyMySQL-0.9.2-py2.py3-none-any.whl (47kB) 100% |████████████████████████████████| 51kB 97kB/s Collecting cryptography (from pymysql) Downloading https://files.pythonhosted.org/packages/da/f6/6b9f031611697cb61d25c884237a8762725df7373a0accd49b39fbbb23cd/cryptography-2.3.1-cp37-cp37m-win32.whl (1.1MB) 100% |████████████████████████████████| 1.1MB 462kB/s Collecting six>=1.4.1 (from cryptography->pymysql) Downloading https://files.pythonhosted.org/packages/67/4b/141a581104b1f6397bfa78ac9d43d8ad29a7ca43ea90a2d863fe3056e86a/six-1.11.0-py2.py3-none-any.whl Collecting cffi!=1.11.3,>=1.7 (from cryptography->pymysql) Downloading https://files.pythonhosted.org/packages/2d/9e/9d84a78d4ea3d0fa94f6d0e4bcd88406709312949f48f3853f26f8f52ebe/cffi-1.11.5-cp37-cp37m-win32.whl (154kB) 100% |████████████████████████████████| 163kB 468kB/s Collecting idna>=2.1 (from cryptography->pymysql) Using cached https://files.pythonhosted.org/packages/4b/2a/0276479a4b3caeb8a8c1af2f8e4355746a97fab05a372e4a2c6a6b876165/idna-2.7-py2.py3-none-any.whl Collecting asn1crypto>=0.21.0 (from cryptography->pymysql) Downloading https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl (101kB) 100% |████████████████████████████████| 102kB 561kB/s Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography->pymysql) Downloading https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz (158kB) 100% |████████████████████████████████| 163kB 482kB/s Installing collected packages: six, pycparser, cffi, idna, asn1crypto, cryptography, pymysql Running setup.py install for pycparser ... done Successfully installed asn1crypto-0.24.0 cffi-1.11.5 cryptography-2.3.1 idna-2.7 pycparser-2.19 pymysql-0.9.2 six-1.11.0 You are using pip version 10.0.1, however version 18.1 is available. You should consider upgrading via the 'python -m pip install --upgrade pip' command. c:\workspace\python\todo> | cs |
15.
1 2 3 4 | c:\workspace\python\todo>type NUL > todo.py c:\workspace\python\todo> | cs |
16.
17.
: VS Code 실행
18.
: 생성한 todo.py 파일 열기
19.
: todo.py 파일 내에 다음과 같이 코드 작성
* pymysql.connect 부분은 자신의 환경에 맞는 데이터베이스 정보를 기입, 여기서는 _로 표현
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 | import json import pymysql connection = pymysql.connect(host='____________________________________________________', user='_____', password='___________', db='____', charset='utf8mb4', cursorclass=pymysql.cursors.DictCursor) def todo_handler(event, context): result = None method = event["httpMethod"] body = json.loads(event["body"]) if event["body"] else {} try: if method == "GET" : with connection.cursor() as cursor: sql = "SELECT id, title, isDone FROM todos" cursor.execute(sql) result = cursor.fetchall() elif method == "POST" : with connection.cursor() as cursor: sql = "INSERT INTO todos(title, isDone) VALUES(%s, %s)" cursor.execute(sql, (body["title"], bool(body["isDone"]))) result = {"rowcount":cursor.rowcount, "insertedId":cursor.lastrowid} connection.commit() elif method == "PUT" : with connection.cursor() as cursor: sql = "UPDATE todos SET isDone = %s WHERE id = %s" cursor.execute(sql, (bool(body["isDone"]), int(body["id"]))) result = {"rowcount":cursor.rowcount} connection.commit() elif method == "DELETE" : with connection.cursor() as cursor: sql = "DELETE FROM todos WHERE id = %s" cursor.execute(sql, (int(body["id"]))) result = {"rowcount":cursor.rowcount} connection.commit() except Exception as e: result = e connection.close() finally: return { "statusCode": 200, "headers": { "Access-Control-Allow-Origin" : "*", "Access-Control-Allow-Methods" : "POST, GET, OPTIONS, PUT, DELETE", "Access-Control-Allow-Headers" : "Origin, X-Requested-With, Content-Type, Accept, Authorization", "Content-Type" : "application/json" }, "body": json.dumps(result) } | cs |
20.
: 작성한 todo.py 파일을 압축하여 배포할 것이기 때문에 GnuWin32 미설치인 경우 하기의 링크 참고
21.
22.
: 해당 프로젝트 경로로 이동, 여기서는 "c:\workspace\python\todo"로 지정
1 2 3 4 | C:\Users\Admin>cd c:\workspace\python\todo c:\workspace\python\todo> | cs |
23.
: zip 명령을 통해 배포할 압축 파일 생성
: 여기서 -r 옵션은 하위 폴더 및 파일을 포함한다는 의미이며,현재 경로에 해당 폴더 및 파일을 todo.zip 파일로 압축한다는 의미
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 | c:\workspace\python\todo>zip -r todo.zip . adding: asn1crypto/ (164 bytes security) (stored 0%) adding: asn1crypto/algos.py (164 bytes security) (deflated 81%) adding: asn1crypto/cms.py (164 bytes security) (deflated 82%) adding: asn1crypto/core.py (164 bytes security) (deflated 84%) adding: asn1crypto/crl.py (164 bytes security) (deflated 79%) adding: asn1crypto/csr.py (164 bytes security) (deflated 63%) adding: asn1crypto/keys.py (164 bytes security) (deflated 82%) adding: asn1crypto/ocsp.py (164 bytes security) (deflated 83%) adding: asn1crypto/parser.py (164 bytes security) (deflated 74%) adding: asn1crypto/pdf.py (164 bytes security) (deflated 66%) adding: asn1crypto/pem.py (164 bytes security) (deflated 71%) adding: asn1crypto/pkcs12.py (164 bytes security) (deflated 67%) adding: asn1crypto/tsp.py (164 bytes security) (deflated 76%) adding: asn1crypto/util.py (164 bytes security) (deflated 81%) adding: asn1crypto/version.py (164 bytes security) (deflated 21%) adding: asn1crypto/x509.py (164 bytes security) (deflated 80%) adding: asn1crypto/_elliptic_curve.py (164 bytes security) (deflated 61%) adding: asn1crypto/_errors.py (164 bytes security) (deflated 49%) adding: asn1crypto/_ffi.py (164 bytes security) (deflated 54%) adding: asn1crypto/_inet.py (164 bytes security) (deflated 74%) adding: asn1crypto/_int.py (164 bytes security) (deflated 59%) adding: asn1crypto/_iri.py (164 bytes security) (deflated 70%) adding: asn1crypto/_ordereddict.py (164 bytes security) (deflated 64%) adding: asn1crypto/_perf/ (164 bytes security) (stored 0%) adding: asn1crypto/_perf/_big_num_ctypes.py (164 bytes security) (deflated 66%) adding: asn1crypto/_perf/__init__.py (164 bytes security) (stored 0%) adding: asn1crypto/_perf/__pycache__/ (164 bytes security) (stored 0%) adding: asn1crypto/_perf/__pycache__/_big_num_ctypes.cpython-37.pyc (164 bytes security) (deflated 41%) adding: asn1crypto/_perf/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 22%) adding: asn1crypto/_teletex_codec.py (164 bytes security) (deflated 77%) adding: asn1crypto/_types.py (164 bytes security) (deflated 55%) adding: asn1crypto/__init__.py (164 bytes security) (deflated 37%) adding: asn1crypto/__pycache__/ (164 bytes security) (stored 0%) adding: asn1crypto/__pycache__/algos.cpython-37.pyc (164 bytes security) (deflated 67%) adding: asn1crypto/__pycache__/cms.cpython-37.pyc (164 bytes security) (deflated 67%) adding: asn1crypto/__pycache__/core.cpython-37.pyc (164 bytes security) (deflated 70%) adding: asn1crypto/__pycache__/crl.cpython-37.pyc (164 bytes security) (deflated 64%) adding: asn1crypto/__pycache__/csr.cpython-37.pyc (164 bytes security) (deflated 52%) adding: asn1crypto/__pycache__/keys.cpython-37.pyc (164 bytes security) (deflated 66%) adding: asn1crypto/__pycache__/ocsp.cpython-37.pyc (164 bytes security) (deflated 69%) adding: asn1crypto/__pycache__/parser.cpython-37.pyc (164 bytes security) (deflated 58%) adding: asn1crypto/__pycache__/pdf.cpython-37.pyc (164 bytes security) (deflated 50%) adding: asn1crypto/__pycache__/pem.cpython-37.pyc (164 bytes security) (deflated 54%) adding: asn1crypto/__pycache__/pkcs12.cpython-37.pyc (164 bytes security) (deflated 56%) adding: asn1crypto/__pycache__/tsp.cpython-37.pyc (164 bytes security) (deflated 62%) adding: asn1crypto/__pycache__/util.cpython-37.pyc (164 bytes security) (deflated 67%) adding: asn1crypto/__pycache__/version.cpython-37.pyc (164 bytes security) (deflated 23%) adding: asn1crypto/__pycache__/x509.cpython-37.pyc (164 bytes security) (deflated 67%) adding: asn1crypto/__pycache__/_elliptic_curve.cpython-37.pyc (164 bytes security) (deflated 48%) adding: asn1crypto/__pycache__/_errors.cpython-37.pyc (164 bytes security) (deflated 35%) adding: asn1crypto/__pycache__/_ffi.cpython-37.pyc (164 bytes security) (deflated 45%) adding: asn1crypto/__pycache__/_inet.cpython-37.pyc (164 bytes security) (deflated 51%) adding: asn1crypto/__pycache__/_int.cpython-37.pyc (164 bytes security) (deflated 43%) adding: asn1crypto/__pycache__/_iri.cpython-37.pyc (164 bytes security) (deflated 47%) adding: asn1crypto/__pycache__/_ordereddict.cpython-37.pyc (164 bytes security) (deflated 50%) adding: asn1crypto/__pycache__/_teletex_codec.cpython-37.pyc (164 bytes security) (deflated 49%) adding: asn1crypto/__pycache__/_types.cpython-37.pyc (164 bytes security) (deflated 38%) adding: asn1crypto/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 26%) adding: asn1crypto-0.24.0.dist-info/ (164 bytes security) (stored 0%) adding: asn1crypto-0.24.0.dist-info/DESCRIPTION.rst (164 bytes security) (deflated 8%) adding: asn1crypto-0.24.0.dist-info/INSTALLER (164 bytes security) (stored 0%) adding: asn1crypto-0.24.0.dist-info/METADATA (164 bytes security) (deflated 57%) adding: asn1crypto-0.24.0.dist-info/metadata.json (164 bytes security) (deflated 52%) adding: asn1crypto-0.24.0.dist-info/RECORD (164 bytes security) (deflated 58%) adding: asn1crypto-0.24.0.dist-info/top_level.txt (164 bytes security) (stored 0%) adding: asn1crypto-0.24.0.dist-info/WHEEL (164 bytes security) (deflated 14%) adding: cffi/ (164 bytes security) (stored 0%) adding: cffi/api.py (164 bytes security) (deflated 73%) adding: cffi/backend_ctypes.py (164 bytes security) (deflated 81%) adding: cffi/cffi_opcode.py (164 bytes security) (deflated 70%) adding: cffi/commontypes.py (164 bytes security) (deflated 64%) adding: cffi/cparser.py (164 bytes security) (deflated 75%) adding: cffi/error.py (164 bytes security) (deflated 55%) adding: cffi/ffiplatform.py (164 bytes security) (deflated 63%) adding: cffi/lock.py (164 bytes security) (deflated 62%) adding: cffi/model.py (164 bytes security) (deflated 76%) adding: cffi/parse_c_type.h (164 bytes security) (deflated 71%) adding: cffi/recompiler.py (164 bytes security) (deflated 78%) adding: cffi/setuptools_ext.py (164 bytes security) (deflated 66%) adding: cffi/vengine_cpy.py (164 bytes security) (deflated 78%) adding: cffi/vengine_gen.py (164 bytes security) (deflated 76%) adding: cffi/verifier.py (164 bytes security) (deflated 71%) adding: cffi/_cffi_errors.h (164 bytes security) (deflated 61%) adding: cffi/_cffi_include.h (164 bytes security) (deflated 76%) adding: cffi/_embedding.h (164 bytes security) (deflated 67%) adding: cffi/__init__.py (164 bytes security) (deflated 44%) adding: cffi/__pycache__/ (164 bytes security) (stored 0%) adding: cffi/__pycache__/api.cpython-37.pyc (164 bytes security) (deflated 57%) adding: cffi/__pycache__/backend_ctypes.cpython-37.pyc (164 bytes security) (deflated 63%) adding: cffi/__pycache__/cffi_opcode.cpython-37.pyc (164 bytes security) (deflated 50%) adding: cffi/__pycache__/commontypes.cpython-37.pyc (164 bytes security) (deflated 35%) adding: cffi/__pycache__/cparser.cpython-37.pyc (164 bytes security) (deflated 48%) adding: cffi/__pycache__/error.cpython-37.pyc (164 bytes security) (deflated 45%) adding: cffi/__pycache__/ffiplatform.cpython-37.pyc (164 bytes security) (deflated 40%) adding: cffi/__pycache__/lock.cpython-37.pyc (164 bytes security) (deflated 27%) adding: cffi/__pycache__/model.cpython-37.pyc (164 bytes security) (deflated 59%) adding: cffi/__pycache__/recompiler.cpython-37.pyc (164 bytes security) (deflated 58%) adding: cffi/__pycache__/setuptools_ext.cpython-37.pyc (164 bytes security) (deflated 48%) adding: cffi/__pycache__/vengine_cpy.cpython-37.pyc (164 bytes security) (deflated 64%) adding: cffi/__pycache__/vengine_gen.cpython-37.pyc (164 bytes security) (deflated 57%) adding: cffi/__pycache__/verifier.cpython-37.pyc (164 bytes security) (deflated 48%) adding: cffi/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 28%) adding: cffi-1.11.5.dist-info/ (164 bytes security) (stored 0%) adding: cffi-1.11.5.dist-info/entry_points.txt (164 bytes security) (deflated 18%) adding: cffi-1.11.5.dist-info/INSTALLER (164 bytes security) (stored 0%) adding: cffi-1.11.5.dist-info/METADATA (164 bytes security) (deflated 66%) adding: cffi-1.11.5.dist-info/RECORD (164 bytes security) (deflated 49%) adding: cffi-1.11.5.dist-info/top_level.txt (164 bytes security) (deflated 5%) adding: cffi-1.11.5.dist-info/WHEEL (164 bytes security) (deflated 3%) adding: cryptography/ (164 bytes security) (stored 0%) adding: cryptography/exceptions.py (164 bytes security) (deflated 56%) adding: cryptography/fernet.py (164 bytes security) (deflated 72%) adding: cryptography/hazmat/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/backends/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/backends/interfaces.py (164 bytes security) (deflated 84%) adding: cryptography/hazmat/backends/openssl/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/backends/openssl/aead.py (164 bytes security) (deflated 77%) adding: cryptography/hazmat/backends/openssl/backend.py (164 bytes security) (deflated 82%) adding: cryptography/hazmat/backends/openssl/ciphers.py (164 bytes security) (deflated 75%) adding: cryptography/hazmat/backends/openssl/cmac.py (164 bytes security) (deflated 67%) adding: cryptography/hazmat/backends/openssl/decode_asn1.py (164 bytes security) (deflated 77%) adding: cryptography/hazmat/backends/openssl/dh.py (164 bytes security) (deflated 83%) adding: cryptography/hazmat/backends/openssl/dsa.py (164 bytes security) (deflated 83%) adding: cryptography/hazmat/backends/openssl/ec.py (164 bytes security) (deflated 77%) adding: cryptography/hazmat/backends/openssl/encode_asn1.py (164 bytes security) (deflated 78%) adding: cryptography/hazmat/backends/openssl/hashes.py (164 bytes security) (deflated 68%) adding: cryptography/hazmat/backends/openssl/hmac.py (164 bytes security) (deflated 68%) adding: cryptography/hazmat/backends/openssl/rsa.py (164 bytes security) (deflated 81%) adding: cryptography/hazmat/backends/openssl/utils.py (164 bytes security) (deflated 55%) adding: cryptography/hazmat/backends/openssl/x25519.py (164 bytes security) (deflated 72%) adding: cryptography/hazmat/backends/openssl/x509.py (164 bytes security) (deflated 82%) adding: cryptography/hazmat/backends/openssl/__init__.py (164 bytes security) (deflated 34%) adding: cryptography/hazmat/backends/openssl/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/backends/openssl/__pycache__/aead.cpython-37.pyc (164 bytes security) (deflated 50%) adding: cryptography/hazmat/backends/openssl/__pycache__/backend.cpython-37.pyc (164 bytes security) (deflated 62%) adding: cryptography/hazmat/backends/openssl/__pycache__/ciphers.cpython-37.pyc (164 bytes security) (deflated 48%) adding: cryptography/hazmat/backends/openssl/__pycache__/cmac.cpython-37.pyc (164 bytes security) (deflated 43%) adding: cryptography/hazmat/backends/openssl/__pycache__/decode_asn1.cpython-37.pyc (164 bytes security) (deflated 58%) adding: cryptography/hazmat/backends/openssl/__pycache__/dh.cpython-37.pyc (164 bytes security) (deflated 62%) adding: cryptography/hazmat/backends/openssl/__pycache__/dsa.cpython-37.pyc (164 bytes security) (deflated 62%) adding: cryptography/hazmat/backends/openssl/__pycache__/ec.cpython-37.pyc (164 bytes security) (deflated 57%) adding: cryptography/hazmat/backends/openssl/__pycache__/encode_asn1.cpython-37.pyc (164 bytes security) (deflated 56%) adding: cryptography/hazmat/backends/openssl/__pycache__/hashes.cpython-37.pyc (164 bytes security) (deflated 44%) adding: cryptography/hazmat/backends/openssl/__pycache__/hmac.cpython-37.pyc (164 bytes security) (deflated 44%) adding: cryptography/hazmat/backends/openssl/__pycache__/rsa.cpython-37.pyc (164 bytes security) (deflated 58%) adding: cryptography/hazmat/backends/openssl/__pycache__/utils.cpython-37.pyc (164 bytes security) (deflated 40%) adding: cryptography/hazmat/backends/openssl/__pycache__/x25519.cpython-37.pyc (164 bytes security) (deflated 49%) adding: cryptography/hazmat/backends/openssl/__pycache__/x509.cpython-37.pyc (164 bytes security) (deflated 68%) adding: cryptography/hazmat/backends/openssl/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 28%) adding: cryptography/hazmat/backends/__init__.py (164 bytes security) (deflated 45%) adding: cryptography/hazmat/backends/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/backends/__pycache__/interfaces.cpython-37.pyc (164 bytes security) (deflated 78%) adding: cryptography/hazmat/backends/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 32%) adding: cryptography/hazmat/bindings/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/bindings/openssl/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/bindings/openssl/binding.py (164 bytes security) (deflated 63%) adding: cryptography/hazmat/bindings/openssl/_conditional.py (164 bytes security) (deflated 75%) adding: cryptography/hazmat/bindings/openssl/__init__.py (164 bytes security) (deflated 29%) adding: cryptography/hazmat/bindings/openssl/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/bindings/openssl/__pycache__/binding.cpython-37.pyc (164 bytes security) (deflated 47%) adding: cryptography/hazmat/bindings/openssl/__pycache__/_conditional.cpython-37.pyc (164 bytes security) (deflated 66%) adding: cryptography/hazmat/bindings/openssl/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 20%) adding: cryptography/hazmat/bindings/_constant_time.cp37-win32.pyd (164 bytes security) (deflated 49%) adding: cryptography/hazmat/bindings/_openssl.cp37-win32.pyd (164 bytes security) (deflated 53%) adding: cryptography/hazmat/bindings/_padding.cp37-win32.pyd (164 bytes security) (deflated 48%) adding: cryptography/hazmat/bindings/__init__.py (164 bytes security) (deflated 29%) adding: cryptography/hazmat/bindings/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/bindings/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 19%) adding: cryptography/hazmat/primitives/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/asymmetric/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/asymmetric/dh.py (164 bytes security) (deflated 78%) adding: cryptography/hazmat/primitives/asymmetric/dsa.py (164 bytes security) (deflated 78%) adding: cryptography/hazmat/primitives/asymmetric/ec.py (164 bytes security) (deflated 80%) adding: cryptography/hazmat/primitives/asymmetric/padding.py (164 bytes security) (deflated 63%) adding: cryptography/hazmat/primitives/asymmetric/rsa.py (164 bytes security) (deflated 73%) adding: cryptography/hazmat/primitives/asymmetric/utils.py (164 bytes security) (deflated 61%) adding: cryptography/hazmat/primitives/asymmetric/x25519.py (164 bytes security) (deflated 67%) adding: cryptography/hazmat/primitives/asymmetric/__init__.py (164 bytes security) (deflated 60%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/dh.cpython-37.pyc (164 bytes security) (deflated 68%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/dsa.cpython-37.pyc (164 bytes security) (deflated 67%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/ec.cpython-37.pyc (164 bytes security) (deflated 70%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/padding.cpython-37.pyc (164 bytes security) (deflated 49%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/rsa.cpython-37.pyc (164 bytes security) (deflated 61%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/utils.cpython-37.pyc (164 bytes security) (deflated 47%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/x25519.cpython-37.pyc (164 bytes security) (deflated 52%) adding: cryptography/hazmat/primitives/asymmetric/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 55%) adding: cryptography/hazmat/primitives/ciphers/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/ciphers/aead.py (164 bytes security) (deflated 82%) adding: cryptography/hazmat/primitives/ciphers/algorithms.py (164 bytes security) (deflated 78%) adding: cryptography/hazmat/primitives/ciphers/base.py (164 bytes security) (deflated 77%) adding: cryptography/hazmat/primitives/ciphers/modes.py (164 bytes security) (deflated 80%) adding: cryptography/hazmat/primitives/ciphers/__init__.py (164 bytes security) (deflated 51%) adding: cryptography/hazmat/primitives/ciphers/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/ciphers/__pycache__/aead.cpython-37.pyc (164 bytes security) (deflated 62%) adding: cryptography/hazmat/primitives/ciphers/__pycache__/algorithms.cpython-37.pyc (164 bytes security) (deflated 68%) adding: cryptography/hazmat/primitives/ciphers/__pycache__/base.cpython-37.pyc (164 bytes security) (deflated 64%) adding: cryptography/hazmat/primitives/ciphers/__pycache__/modes.cpython-37.pyc (164 bytes security) (deflated 66%) adding: cryptography/hazmat/primitives/ciphers/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 36%) adding: cryptography/hazmat/primitives/cmac.py (164 bytes security) (deflated 67%) adding: cryptography/hazmat/primitives/constant_time.py (164 bytes security) (deflated 55%) adding: cryptography/hazmat/primitives/hashes.py (164 bytes security) (deflated 75%) adding: cryptography/hazmat/primitives/hmac.py (164 bytes security) (deflated 67%) adding: cryptography/hazmat/primitives/kdf/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/kdf/concatkdf.py (164 bytes security) (deflated 72%) adding: cryptography/hazmat/primitives/kdf/hkdf.py (164 bytes security) (deflated 72%) adding: cryptography/hazmat/primitives/kdf/kbkdf.py (164 bytes security) (deflated 68%) adding: cryptography/hazmat/primitives/kdf/pbkdf2.py (164 bytes security) (deflated 63%) adding: cryptography/hazmat/primitives/kdf/scrypt.py (164 bytes security) (deflated 61%) adding: cryptography/hazmat/primitives/kdf/x963kdf.py (164 bytes security) (deflated 61%) adding: cryptography/hazmat/primitives/kdf/__init__.py (164 bytes security) (deflated 48%) adding: cryptography/hazmat/primitives/kdf/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/kdf/__pycache__/concatkdf.cpython-37.pyc (164 bytes security) (deflated 51%) adding: cryptography/hazmat/primitives/kdf/__pycache__/hkdf.cpython-37.pyc (164 bytes security) (deflated 49%) adding: cryptography/hazmat/primitives/kdf/__pycache__/kbkdf.cpython-37.pyc (164 bytes security) (deflated 44%) adding: cryptography/hazmat/primitives/kdf/__pycache__/pbkdf2.cpython-37.pyc (164 bytes security) (deflated 41%) adding: cryptography/hazmat/primitives/kdf/__pycache__/scrypt.cpython-37.pyc (164 bytes security) (deflated 41%) adding: cryptography/hazmat/primitives/kdf/__pycache__/x963kdf.cpython-37.pyc (164 bytes security) (deflated 39%) adding: cryptography/hazmat/primitives/kdf/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 42%) adding: cryptography/hazmat/primitives/keywrap.py (164 bytes security) (deflated 72%) adding: cryptography/hazmat/primitives/mac.py (164 bytes security) (deflated 55%) adding: cryptography/hazmat/primitives/padding.py (164 bytes security) (deflated 81%) adding: cryptography/hazmat/primitives/serialization.py (164 bytes security) (deflated 70%) adding: cryptography/hazmat/primitives/twofactor/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/twofactor/hotp.py (164 bytes security) (deflated 60%) adding: cryptography/hazmat/primitives/twofactor/totp.py (164 bytes security) (deflated 59%) adding: cryptography/hazmat/primitives/twofactor/utils.py (164 bytes security) (deflated 48%) adding: cryptography/hazmat/primitives/twofactor/__init__.py (164 bytes security) (deflated 30%) adding: cryptography/hazmat/primitives/twofactor/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/twofactor/__pycache__/hotp.cpython-37.pyc (164 bytes security) (deflated 42%) adding: cryptography/hazmat/primitives/twofactor/__pycache__/totp.cpython-37.pyc (164 bytes security) (deflated 44%) adding: cryptography/hazmat/primitives/twofactor/__pycache__/utils.cpython-37.pyc (164 bytes security) (deflated 29%) adding: cryptography/hazmat/primitives/twofactor/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 28%) adding: cryptography/hazmat/primitives/__init__.py (164 bytes security) (deflated 29%) adding: cryptography/hazmat/primitives/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/primitives/__pycache__/cmac.cpython-37.pyc (164 bytes security) (deflated 47%) adding: cryptography/hazmat/primitives/__pycache__/constant_time.cpython-37.pyc (164 bytes security) (deflated 39%) adding: cryptography/hazmat/primitives/__pycache__/hashes.cpython-37.pyc (164 bytes security) (deflated 61%) adding: cryptography/hazmat/primitives/__pycache__/hmac.cpython-37.pyc (164 bytes security) (deflated 46%) adding: cryptography/hazmat/primitives/__pycache__/keywrap.cpython-37.pyc (164 bytes security) (deflated 54%) adding: cryptography/hazmat/primitives/__pycache__/mac.cpython-37.pyc (164 bytes security) (deflated 49%) adding: cryptography/hazmat/primitives/__pycache__/padding.cpython-37.pyc (164 bytes security) (deflated 68%) adding: cryptography/hazmat/primitives/__pycache__/serialization.cpython-37.pyc (164 bytes security) (deflated 54%) adding: cryptography/hazmat/primitives/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 20%) adding: cryptography/hazmat/__init__.py (164 bytes security) (deflated 37%) adding: cryptography/hazmat/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/hazmat/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 27%) adding: cryptography/utils.py (164 bytes security) (deflated 67%) adding: cryptography/x509/ (164 bytes security) (stored 0%) adding: cryptography/x509/base.py (164 bytes security) (deflated 86%) adding: cryptography/x509/certificate_transparency.py (164 bytes security) (deflated 56%) adding: cryptography/x509/extensions.py (164 bytes security) (deflated 84%) adding: cryptography/x509/general_name.py (164 bytes security) (deflated 81%) adding: cryptography/x509/name.py (164 bytes security) (deflated 70%) adding: cryptography/x509/oid.py (164 bytes security) (deflated 76%) adding: cryptography/x509/__init__.py (164 bytes security) (deflated 74%) adding: cryptography/x509/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/x509/__pycache__/base.cpython-37.pyc (164 bytes security) (deflated 74%) adding: cryptography/x509/__pycache__/certificate_transparency.cpython-37.pyc (164 bytes security) (deflated 52%) adding: cryptography/x509/__pycache__/extensions.cpython-37.pyc (164 bytes security) (deflated 76%) adding: cryptography/x509/__pycache__/general_name.cpython-37.pyc (164 bytes security) (deflated 69%) adding: cryptography/x509/__pycache__/name.cpython-37.pyc (164 bytes security) (deflated 61%) adding: cryptography/x509/__pycache__/oid.cpython-37.pyc (164 bytes security) (deflated 56%) adding: cryptography/x509/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 55%) adding: cryptography/__about__.py (164 bytes security) (deflated 47%) adding: cryptography/__init__.py (164 bytes security) (deflated 45%) adding: cryptography/__pycache__/ (164 bytes security) (stored 0%) adding: cryptography/__pycache__/exceptions.cpython-37.pyc (164 bytes security) (deflated 56%) adding: cryptography/__pycache__/fernet.cpython-37.pyc (164 bytes security) (deflated 47%) adding: cryptography/__pycache__/utils.cpython-37.pyc (164 bytes security) (deflated 53%) adding: cryptography/__pycache__/__about__.cpython-37.pyc (164 bytes security) (deflated 31%) adding: cryptography/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 32%) adding: cryptography-2.3.1.dist-info/ (164 bytes security) (stored 0%) adding: cryptography-2.3.1.dist-info/INSTALLER (164 bytes security) (stored 0%) adding: cryptography-2.3.1.dist-info/METADATA (164 bytes security) (deflated 67%) adding: cryptography-2.3.1.dist-info/RECORD (164 bytes security) (deflated 69%) adding: cryptography-2.3.1.dist-info/top_level.txt (164 bytes security) (stored 0%) adding: cryptography-2.3.1.dist-info/WHEEL (164 bytes security) (deflated 3%) adding: idna/ (164 bytes security) (stored 0%) adding: idna/codec.py (164 bytes security) (deflated 76%) adding: idna/compat.py (164 bytes security) (deflated 38%) adding: idna/core.py (164 bytes security) (deflated 76%) adding: idna/idnadata.py (164 bytes security) (deflated 79%) adding: idna/intranges.py (164 bytes security) (deflated 58%) adding: idna/package_data.py (164 bytes security) (stored 0%) adding: idna/uts46data.py (164 bytes security) (deflated 81%) adding: idna/__init__.py (164 bytes security) (deflated 12%) adding: idna/__pycache__/ (164 bytes security) (stored 0%) adding: idna/__pycache__/codec.cpython-37.pyc (164 bytes security) (deflated 56%) adding: idna/__pycache__/compat.cpython-37.pyc (164 bytes security) (deflated 40%) adding: idna/__pycache__/core.cpython-37.pyc (164 bytes security) (deflated 50%) adding: idna/__pycache__/idnadata.cpython-37.pyc (164 bytes security) (deflated 66%) adding: idna/__pycache__/intranges.cpython-37.pyc (164 bytes security) (deflated 40%) adding: idna/__pycache__/package_data.cpython-37.pyc (164 bytes security) (deflated 16%) adding: idna/__pycache__/uts46data.cpython-37.pyc (164 bytes security) (deflated 79%) adding: idna/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 16%) adding: idna-2.7.dist-info/ (164 bytes security) (stored 0%) adding: idna-2.7.dist-info/INSTALLER (164 bytes security) (stored 0%) adding: idna-2.7.dist-info/LICENSE.txt (164 bytes security) (deflated 57%) adding: idna-2.7.dist-info/METADATA (164 bytes security) (deflated 62%) adding: idna-2.7.dist-info/RECORD (164 bytes security) (deflated 48%) adding: idna-2.7.dist-info/top_level.txt (164 bytes security) (stored 0%) adding: idna-2.7.dist-info/WHEEL (164 bytes security) (deflated 15%) adding: pycparser/ (164 bytes security) (stored 0%) adding: pycparser/ast_transforms.py (164 bytes security) (deflated 68%) adding: pycparser/c_ast.py (164 bytes security) (deflated 87%) adding: pycparser/c_generator.py (164 bytes security) (deflated 77%) adding: pycparser/c_lexer.py (164 bytes security) (deflated 69%) adding: pycparser/c_parser.py (164 bytes security) (deflated 80%) adding: pycparser/lextab.py (164 bytes security) (deflated 74%) adding: pycparser/ply/ (164 bytes security) (stored 0%) adding: pycparser/ply/cpp.py (164 bytes security) (deflated 78%) adding: pycparser/ply/ctokens.py (164 bytes security) (deflated 62%) adding: pycparser/ply/lex.py (164 bytes security) (deflated 76%) adding: pycparser/ply/yacc.py (164 bytes security) (deflated 81%) adding: pycparser/ply/ygen.py (164 bytes security) (deflated 63%) adding: pycparser/ply/__init__.py (164 bytes security) (deflated 4%) adding: pycparser/ply/__pycache__/ (164 bytes security) (stored 0%) adding: pycparser/ply/__pycache__/cpp.cpython-37.pyc (164 bytes security) (deflated 52%) adding: pycparser/ply/__pycache__/ctokens.cpython-37.pyc (164 bytes security) (deflated 40%) adding: pycparser/ply/__pycache__/lex.cpython-37.pyc (164 bytes security) (deflated 52%) adding: pycparser/ply/__pycache__/yacc.cpython-37.pyc (164 bytes security) (deflated 58%) adding: pycparser/ply/__pycache__/ygen.cpython-37.pyc (164 bytes security) (deflated 39%) adding: pycparser/ply/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 12%) adding: pycparser/plyparser.py (164 bytes security) (deflated 63%) adding: pycparser/yacctab.py (164 bytes security) (deflated 87%) adding: pycparser/_ast_gen.py (164 bytes security) (deflated 71%) adding: pycparser/_build_tables.py (164 bytes security) (deflated 53%) adding: pycparser/_c_ast.cfg (164 bytes security) (deflated 59%) adding: pycparser/__init__.py (164 bytes security) (deflated 60%) adding: pycparser/__pycache__/ (164 bytes security) (stored 0%) adding: pycparser/__pycache__/ast_transforms.cpython-37.pyc (164 bytes security) (deflated 56%) adding: pycparser/__pycache__/c_ast.cpython-37.pyc (164 bytes security) (deflated 80%) adding: pycparser/__pycache__/c_generator.cpython-37.pyc (164 bytes security) (deflated 63%) adding: pycparser/__pycache__/c_lexer.cpython-37.pyc (164 bytes security) (deflated 55%) adding: pycparser/__pycache__/c_parser.cpython-37.pyc (164 bytes security) (deflated 74%) adding: pycparser/__pycache__/lextab.cpython-37.pyc (164 bytes security) (deflated 63%) adding: pycparser/__pycache__/plyparser.cpython-37.pyc (164 bytes security) (deflated 51%) adding: pycparser/__pycache__/yacctab.cpython-37.pyc (164 bytes security) (deflated 82%) adding: pycparser/__pycache__/_ast_gen.cpython-37.pyc (164 bytes security) (deflated 59%) adding: pycparser/__pycache__/_build_tables.cpython-37.pyc (164 bytes security) (deflated 26%) adding: pycparser/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 46%) adding: pycparser-2.19-py3.7.egg-info/ (164 bytes security) (stored 0%) adding: pycparser-2.19-py3.7.egg-info/dependency_links.txt (164 bytes security) (stored 0%) adding: pycparser-2.19-py3.7.egg-info/installed-files.txt (164 bytes security) (deflated 80%) adding: pycparser-2.19-py3.7.egg-info/PKG-INFO (164 bytes security) (deflated 57%) adding: pycparser-2.19-py3.7.egg-info/SOURCES.txt (164 bytes security) (deflated 81%) adding: pycparser-2.19-py3.7.egg-info/top_level.txt (164 bytes security) (stored 0%) adding: pymysql/ (164 bytes security) (stored 0%) adding: pymysql/charset.py (164 bytes security) (deflated 84%) adding: pymysql/connections.py (164 bytes security) (deflated 74%) adding: pymysql/constants/ (164 bytes security) (stored 0%) adding: pymysql/constants/CLIENT.py (164 bytes security) (deflated 50%) adding: pymysql/constants/COMMAND.py (164 bytes security) (deflated 56%) adding: pymysql/constants/CR.py (164 bytes security) (deflated 66%) adding: pymysql/constants/ER.py (164 bytes security) (deflated 63%) adding: pymysql/constants/FIELD_TYPE.py (164 bytes security) (deflated 45%) adding: pymysql/constants/FLAG.py (164 bytes security) (deflated 31%) adding: pymysql/constants/SERVER_STATUS.py (164 bytes security) (deflated 50%) adding: pymysql/constants/__init__.py (164 bytes security) (stored 0%) adding: pymysql/constants/__pycache__/ (164 bytes security) (stored 0%) adding: pymysql/constants/__pycache__/CLIENT.cpython-37.pyc (164 bytes security) (deflated 33%) adding: pymysql/constants/__pycache__/COMMAND.cpython-37.pyc (164 bytes security) (deflated 41%) adding: pymysql/constants/__pycache__/CR.cpython-37.pyc (164 bytes security) (deflated 51%) adding: pymysql/constants/__pycache__/ER.cpython-37.pyc (164 bytes security) (deflated 56%) adding: pymysql/constants/__pycache__/FIELD_TYPE.cpython-37.pyc (164 bytes security) (deflated 34%) adding: pymysql/constants/__pycache__/FLAG.cpython-37.pyc (164 bytes security) (deflated 27%) adding: pymysql/constants/__pycache__/SERVER_STATUS.cpython-37.pyc (164 bytes security) (deflated 37%) adding: pymysql/constants/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 22%) adding: pymysql/converters.py (164 bytes security) (deflated 74%) adding: pymysql/cursors.py (164 bytes security) (deflated 72%) adding: pymysql/err.py (164 bytes security) (deflated 61%) adding: pymysql/optionfile.py (164 bytes security) (deflated 59%) adding: pymysql/protocol.py (164 bytes security) (deflated 72%) adding: pymysql/times.py (164 bytes security) (deflated 58%) adding: pymysql/util.py (164 bytes security) (deflated 49%) adding: pymysql/_auth.py (164 bytes security) (deflated 70%) adding: pymysql/_compat.py (164 bytes security) (deflated 50%) adding: pymysql/_socketio.py (164 bytes security) (deflated 66%) adding: pymysql/__init__.py (164 bytes security) (deflated 59%) adding: pymysql/__pycache__/ (164 bytes security) (stored 0%) adding: pymysql/__pycache__/charset.cpython-37.pyc (164 bytes security) (deflated 67%) adding: pymysql/__pycache__/connections.cpython-37.pyc (164 bytes security) (deflated 54%) adding: pymysql/__pycache__/converters.cpython-37.pyc (164 bytes security) (deflated 59%) adding: pymysql/__pycache__/cursors.cpython-37.pyc (164 bytes security) (deflated 55%) adding: pymysql/__pycache__/err.cpython-37.pyc (164 bytes security) (deflated 55%) adding: pymysql/__pycache__/optionfile.cpython-37.pyc (164 bytes security) (deflated 39%) adding: pymysql/__pycache__/protocol.cpython-37.pyc (164 bytes security) (deflated 59%) adding: pymysql/__pycache__/times.cpython-37.pyc (164 bytes security) (deflated 47%) adding: pymysql/__pycache__/util.cpython-37.pyc (164 bytes security) (deflated 35%) adding: pymysql/__pycache__/_auth.cpython-37.pyc (164 bytes security) (deflated 46%) adding: pymysql/__pycache__/_compat.cpython-37.pyc (164 bytes security) (deflated 25%) adding: pymysql/__pycache__/_socketio.cpython-37.pyc (164 bytes security) (deflated 51%) adding: pymysql/__pycache__/__init__.cpython-37.pyc (164 bytes security) (deflated 42%) adding: PyMySQL-0.9.2.dist-info/ (164 bytes security) (stored 0%) adding: PyMySQL-0.9.2.dist-info/INSTALLER (164 bytes security) (stored 0%) adding: PyMySQL-0.9.2.dist-info/LICENSE.txt (164 bytes security) (deflated 41%) adding: PyMySQL-0.9.2.dist-info/METADATA (164 bytes security) (deflated 61%) adding: PyMySQL-0.9.2.dist-info/RECORD (164 bytes security) (deflated 57%) adding: PyMySQL-0.9.2.dist-info/top_level.txt (164 bytes security) (stored 0%) adding: PyMySQL-0.9.2.dist-info/WHEEL (164 bytes security) (deflated 14%) adding: six-1.11.0.dist-info/ (164 bytes security) (stored 0%) adding: six-1.11.0.dist-info/DESCRIPTION.rst (164 bytes security) (deflated 51%) adding: six-1.11.0.dist-info/INSTALLER (164 bytes security) (stored 0%) adding: six-1.11.0.dist-info/METADATA (164 bytes security) (deflated 54%) adding: six-1.11.0.dist-info/metadata.json (164 bytes security) (deflated 43%) adding: six-1.11.0.dist-info/RECORD (164 bytes security) (deflated 36%) adding: six-1.11.0.dist-info/top_level.txt (164 bytes security) (stored 0%) adding: six-1.11.0.dist-info/WHEEL (164 bytes security) (deflated 14%) adding: six.py (164 bytes security) (deflated 75%) adding: todo.py (172 bytes security) (stored 0%) adding: _cffi_backend.cp37-win32.pyd (164 bytes security) (deflated 53%) adding: __pycache__/ (164 bytes security) (stored 0%) adding: __pycache__/six.cpython-37.pyc (164 bytes security) (deflated 58%) c:\workspace\python\todo> | cs |
24.
: 이전 과정에서 생성한 todo라는 이름의 lambda 서비스에 압축한 todo.zip 파일을 배포함으로써 업데이트를 진행한다는 의미
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | c:\workspace\python\todo>aws lambda update-function-code --function-name todo --zip-file fileb://todo.zip { "FunctionName": "todo", "FunctionArn": "________________________________________________________", "Runtime": "python3.6", "Role": "_________________________________________________________", "Handler": "______________________________", "CodeSize": 2310716, "Description": "", "Timeout": 3, "MemorySize": 128, "LastModified": "2018-10-21T09:46:43.719+0000", "CodeSha256": "____________________________________________", "Version": "$LATEST", "TracingConfig": { "Mode": "PassThrough" }, "RevisionId": "____________________________________" } c:\workspace\python\todo> | cs |
25.
: lambda 함수 목록 중에서 해당 함수 이름 클릭
26.
: 압축 파일 배포 후 함수 코드를 확인해보면 핸들러 정보를 찾을 수 없다는 메세지를 확인할 수 있음
: 기본값으로 적용된 핸들러 정보와 배포한 압축 파일 및 핸들러 정보가 일치하지 않아서 발생하는 문제
27.
: 좌측에 핸들러를 포함하는 todo.py 파일을 클릭 후 해당 핸들러 이름 확인하여 상단의 핸들러 정보를 수정
28.
: 페이지 상단의 저장 버튼을 클릭하여 변경 사항 적용
29.
: API 게이트웨이 트리거 클릭
30.
: 해당 API 게이트웨이 클릭, 여기서는 todo-API
31.
: 클라이언트라고 적힌 경계선 박스 내에 테스트 클릭
32.
: 메서드 요청 방식을 GET으로 선택 후 하단의 테스트 버튼 클릭
33.
: 응답 본문
: 로그
* 로그 메시지 마지막 라인 2줄에서 정상 동작 여부를 최종 확인 가능
34.
: 메서드 요청 방식을 POST로 선택 후 요청 본문 작성, 그리고 테스트 버튼 클릭
35.
: 응답 본문
: 로그
* 로그 메시지 마지막 라인 2줄에서 정상 동작 여부를 최종 확인 가능
: RDS의 MySQL 데이터베이스에서 테이블 확인
36.
: 메서드 요청 방식을 PUT로 선택 후 요청 본문 작성, 그리고 테스트 버튼 클릭
37.
: 응답 본문
: 로그
* 로그 메시지 마지막 라인 2줄에서 정상 동작 여부를 최종 확인 가능
: RDS의 MySQL 데이터베이스에서 테이블 확인
> 이전 테이블 정보
> 이후 테이블 정보
38.
: 메서드 요청 방식을 DELETE로 선택 후 요청 본문 작성, 그리고 테스트 버튼 클릭
39.
: 응답 본문
: 로그
* 로그 메시지 마지막 라인 2줄에서 정상 동작 여부를 최종 확인 가능
: RDS의 MySQL 데이터베이스에서 테이블 확인
> 이전 테이블 정보
> 이후 테이블 정보
40.
: 위 과정에 따라 적절한 테스트 검증이 끝났다면 리소스 옆의 작업 콤보 박스를 클릭
41.
: API 배포 클릭
42.
: 배포 스테이지 선택 후 배포 버튼 클릭
43.
: URL 호출 경로를 확인 후 하단의 변경 사항 저장 버튼 클릭
'Cloud > Amazon Web Services' 카테고리의 다른 글
AWS Serverless를 사용한 Web App 정보 시스템 구축 (0) | 2018.10.21 |
---|---|
Serverless, S3를 사용한 정적 웹 페이지 구성 (0) | 2018.10.21 |
Serverless, RDS를 사용한 MySQL 데이터베이스 구성 (0) | 2018.10.21 |
AWS IAM 기존에 생성한 그룹의 정책 편집 (0) | 2018.10.21 |
Vue.js Web App 생성 및 S3 배포 (2) | 2018.10.20 |