-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Guillaume Marchand
committed
Jan 19, 2024
1 parent
3ab337b
commit 5a7e8db
Showing
39 changed files
with
2,959 additions
and
271 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 |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Changelog | ||
|
||
All notable changes to this project will be documented in this file. | ||
|
||
## version v0.0.6 | ||
|
||
### Added | ||
|
||
- Add Amazon Step Function workflow to massively parallelize jobs | ||
- Add Amazon FSx for Lustre cluster to optimize the upload/download of large media assets | ||
- Add Amazon System Manager Automation to preload large media assets from Amazon S3 to FSx for Lustre cluster | ||
- Add API resources for Step Functions | ||
- Document HTTP REST API | ||
|
||
### Changed | ||
|
||
- Refactor all cdk stacks | ||
- **Breaking:** Refactor HTTP REST API | ||
- Upgrade Nvidia Container to CUVID 12.3.1 | ||
|
||
## version v0.0.5 | ||
|
||
- Upgrade FFmpeg to 6.0 (snapshots) | ||
- Upgrade all FFmpeg libraries including decoders and encoders | ||
|
||
## version v0.0.4 | ||
|
||
- Optimize code linting | ||
- Fix security issues | ||
- Refactor list of AWS EC2 Instance families per Region without boto3 (doc/architecture/0003-rollback-automatic-list-of-instance-types-per-aws-region.md) | ||
- Upgrade AWS CDK libraries including AWS Batch to 2.96 and CDK Nag | ||
- Add new compute instance family: VT1 with the support of AMD-Xilinx Video SDK 3.0 (<https://aws.amazon.com/about-aws/whats-new/2023/08/amazon-ec2-vt1-improved-control-stream-quality-latency-bandwidth/>) | ||
- Upgrade Python Lambda Runtime and add runtime management to AUTO | ||
- Upgrade Python Container Runtime | ||
|
||
## version v0.0.3 | ||
|
||
- Update FFMPEG 5.1 | ||
- Update Nvidia Cuda | ||
- Fix issue on AWS Athena View | ||
|
||
## version v0.0.2 | ||
|
||
- Add FFmpeg Quality Metrics to AWS Glue Crawler | ||
- Create AWS Athena Views for PSNR, SSIM, VMAF quality metrics | ||
- Optimize code linting | ||
- Dynamically look after AWS EC2 Instance types per AWS Region | ||
- Add AWS Service Catalog Registry | ||
- Document architecture decisions |
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 |
---|---|---|
@@ -1,72 +1,93 @@ | ||
# Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
version: "3" | ||
|
||
dotenv: [".env", "{{.ENV}}/.env.", "{{.HOME}}/.env"] | ||
|
||
vars: | ||
IMAGE_REPO_NAME: batch-ffmpeg | ||
|
||
dotenv: | ||
- .env | ||
- "{{.ENV}}/.env." | ||
- "{{.HOME}}/.env" | ||
includes: | ||
app: | ||
taskfile: ./application | ||
dir: ./application | ||
test: | ||
taskfile: ./tests | ||
dir: ./ | ||
optional: true | ||
taskfile: ./application | ||
cdk: | ||
taskfile: ./cdk | ||
dir: ./ | ||
taskfile: ./cdk | ||
dist: | ||
dir: ./ | ||
optional: true | ||
taskfile: ./deployment | ||
doc: | ||
dir: ./doc | ||
optional: true | ||
taskfile: ./doc | ||
test: | ||
dir: ./ | ||
optional: true | ||
|
||
taskfile: ./tests | ||
tasks: | ||
env: | ||
cmds: | ||
- rm -f .env || true | ||
- echo 'S3_BUCKET={{.S3_BUCKET}}' >> .env | ||
- echo 'IMAGE_REPO_NAME={{.IMAGE_REPO_NAME}}' >> .env | ||
- echo 'AWS_DEFAULT_REGION={{.AWS_DEFAULT_REGION}}' >> .env | ||
- echo 'AWS_ACCOUNT_ID={{.AWS_ACCOUNT_ID}}' >> .env | ||
- echo 'API_URL={{.API_URL}}' >> .env | ||
- echo 'API_ID={{.API_ID}}' >> .env | ||
- echo 'LAMBDA_METRICS_ARN={{.LAMBDA_METRICS_ARN}}' >> .env | ||
desc: env. variables for scripts | ||
status: | ||
- test -f .env | ||
vars: | ||
API_ID: | ||
sh: | ||
aws cloudformation describe-stacks --stack-name batch-ffmpeg-api-stack | ||
--query 'Stacks[0].Outputs[?ExportName==`ffmpeg-batch-api-id`].OutputValue' | ||
--output text || true | ||
LAMBDA_METRICS_ARN: | ||
sh: | ||
aws cloudformation describe-stacks --stack-name batch-ffmpeg-metrics-stack | ||
--query 'Stacks[0].Outputs[?ExportName==`batch-ffmpeg-lambda-metrics-arn`].OutputValue' | ||
--output text || true | ||
API_URL: | ||
sh: | ||
aws cloudformation describe-stacks --stack-name batch-ffmpeg-api-stack | ||
--query 'Stacks[0].Outputs[?ExportName==`ffmpeg-batch-api`].OutputValue' | ||
--output text || true | ||
AWS_ACCOUNT_ID: | ||
sh: aws sts get-caller-identity --query "Account" --output text || true | ||
AWS_DEFAULT_REGION: | ||
sh: aws configure get region || true | ||
IMAGE_REPO_NAME: | ||
sh: | ||
aws cloudformation describe-stacks --stack-name batch-ffmpeg-storage-stack | ||
--query 'Stacks[0].Outputs[?OutputKey==`EcrRegistry`].OutputValue' --output | ||
text || true | ||
S3_BUCKET: | ||
sh: | ||
aws cloudformation describe-stacks --stack-name batch-ffmpeg-storage-stack | ||
--query 'Stacks[0].Outputs[?OutputKey==`S3bucket`].OutputValue' --output | ||
text || true | ||
venv: | ||
desc: Create local python virtual env | ||
cmds: | ||
- rm -rf .venv/ || true | ||
- python3 -m venv .venv | ||
- .venv/bin/python3 -m pip install --upgrade --quiet pip | ||
- .venv/bin/pip install --quiet -r requirements.txt | ||
- .venv/bin/pip install --quiet -r application/requirements.txt | ||
- .venv/bin/pip install --quiet -r tests/requirements.txt | ||
sources: | ||
- requirements.txt | ||
desc: Create local python virtual env | ||
generates: | ||
- .venv/bin/activate | ||
|
||
sources: | ||
- requirements.txt | ||
venv:upgrade: | ||
desc: upgrade python packages in python virtual env | ||
cmds: | ||
- .venv/bin/python3 -m pip install --upgrade --quiet pip | ||
- .venv/bin/pip install --upgrade --quiet -r requirements.txt | ||
- .venv/bin/pip install --upgrade --quiet -r application/requirements.txt | ||
- .venv/bin/pip install --upgrade --quiet -r tests/requirements.txt | ||
- .venv/bin/pip list | ||
|
||
env: | ||
desc: env. variables for scripts | ||
cmds: | ||
- rm -f .env || true | ||
- echo 'S3_BUCKET={{.S3_BUCKET}}' >> .env | ||
- echo 'IMAGE_REPO_NAME={{.IMAGE_REPO_NAME}}' >> .env | ||
- echo 'AWS_DEFAULT_REGION={{.AWS_DEFAULT_REGION}}' >> .env | ||
- echo 'AWS_ACCOUNT_ID={{.AWS_ACCOUNT_ID}}' >> .env | ||
- echo 'API_URL={{.API_URL}}' >> .env | ||
vars: | ||
S3_BUCKET: | ||
sh: aws cloudformation describe-stacks --stack-name batch-ffmpeg-stack --query 'Stacks[0].Outputs[?OutputKey==`S3bucket`].OutputValue' --output text || true | ||
IMAGE_REPO_NAME: | ||
sh: aws cloudformation describe-stacks --stack-name batch-ffmpeg-registry-stack --query 'Stacks[0].Outputs[?OutputKey==`EcrRegistry`].OutputValue' --output text || true | ||
API_URL: | ||
sh: aws cloudformation describe-stacks --stack-name batch-ffmpeg-api-stack --query 'Stacks[0].Outputs[?OutputKey==`ffmpegbatchapi`].OutputValue' --output text || true | ||
AWS_ACCOUNT_ID: | ||
sh: aws sts get-caller-identity --query "Account" --output text || true | ||
AWS_DEFAULT_REGION: | ||
sh: aws configure get region || true | ||
status: | ||
- test -f .env | ||
desc: upgrade python packages in python virtual env | ||
vars: | ||
IMAGE_REPO_NAME: batch-ffmpeg | ||
version: "3" |
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
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.