|
24 | 24 |
|
25 | 25 | #Move static assets |
26 | 26 | Path(dest_root, 'assets').mkdir(parents=True, exist_ok=False) |
27 | | -data_files = ['design-patterns/cloudformation/lab.yaml', |
28 | | - 'design-patterns/cloudformation/C9.yaml', |
29 | | - 'design-patterns/cloudformation/UserData.sh', |
| 27 | +data_files = ['design-patterns/cloudformation/C9.yaml', |
30 | 28 | 'design-patterns/cloudformation/UserDataC9.sh', |
31 | 29 | 'event-driven/event-driven-cfn.yaml', |
32 | 30 | 'static/files/hands-on-labs/migration-env-setup.yaml', |
33 | | - 'static/files/hands-on-labs/migration-dms-setup.yaml'] |
| 31 | + 'static/files/hands-on-labs/migration-dms-setup.yaml', |
| 32 | + 'static/files/dynamodb-opensearch-zetl/dynamodb-opensearch-setup.yaml' |
| 33 | +] |
34 | 34 | for inp_file in data_files: |
35 | 35 | src_file = os.path.join(pkg_root, inp_file) |
36 | 36 | head, tail = ntpath.split(src_file) |
|
60 | 60 | workshop_zip.write(scenario2) |
61 | 61 | shutil.move(os.path.join(os.getcwd(), 'scenario-solutions.zip'), os.path.join(dest_root, 'assets', 'scenario-solutions.zip')) |
62 | 62 |
|
| 63 | +#Create LHOL zETL ZIP |
| 64 | +os.chdir(os.path.join(pkg_root, 'static', 'files', 'dynamodb-opensearch-zetl')) |
| 65 | +with ZipFile('OpenSearchPipeline.zip', 'w') as workshop_zip: |
| 66 | + for pyscript in glob.glob('./OpenSearchPipeline/*'): |
| 67 | + workshop_zip.write(pyscript) |
| 68 | +shutil.move(os.path.join(os.getcwd(), 'OpenSearchPipeline.zip'), os.path.join(dest_root, 'assets', 'OpenSearchPipeline.zip')) |
| 69 | + |
| 70 | + |
| 71 | +#Create Game-Player-Data Python Scripts ZIP |
| 72 | +os.chdir(os.path.join(pkg_root, 'game-player-data')) |
| 73 | +with ZipFile('battle-royale.zip', 'w') as workshop_zip: |
| 74 | + for pyscript in glob.glob('./scripts/*.py'): |
| 75 | + workshop_zip.write(pyscript) |
| 76 | + for js_script in glob.glob('./scripts/*.json'): |
| 77 | + workshop_zip.write(js_script) |
| 78 | +shutil.move(os.path.join(os.getcwd(), 'battle-royale.zip'), os.path.join(dest_root, 'assets', 'battle-royale.zip')) |
| 79 | + |
| 80 | +#Create Global Serverless ZIP |
| 81 | +os.chdir(os.path.join(pkg_root, 'global-serverless')) |
| 82 | +with ZipFile('global-serverless.zip', 'w') as workshop_zip: |
| 83 | + for data_file in glob.glob('global-serverless/*'): |
| 84 | + workshop_zip.write(data_file) |
| 85 | + workshop_zip.write('global-serverless/.chalice/config.json') |
| 86 | +shutil.move(os.path.join(os.getcwd(), 'global-serverless.zip'), os.path.join(dest_root, 'assets', 'global-serverless.zip')) |
| 87 | + |
63 | 88 |
|
64 | 89 | #Create Event Driven ZIPs |
65 | 90 | zips_to_make = ['MapLambdaPackage', 'ReduceLambdaPackage', 'StateLambdaPackage', 'GeneratorLambdaPackage'] |
|
0 commit comments