-
Notifications
You must be signed in to change notification settings - Fork 1
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
Davide Gallitelli
committed
Aug 22, 2021
1 parent
8c4db19
commit 77147c8
Showing
24 changed files
with
852 additions
and
17 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 @@ | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,16 @@ | ||
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
MIT No Attribution | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy of | ||
this software and associated documentation files (the "Software"), to deal in | ||
the Software without restriction, including without limitation the rights to | ||
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of | ||
the Software, and to permit persons to whom the Software is furnished to do so. | ||
Copyright (c) 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS | ||
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR | ||
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER | ||
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN | ||
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
Permission is hereby granted, free of charge, to any person obtaining a copy of this | ||
software and associated documentation files (the "Software"), to deal in the Software | ||
without restriction, including without limitation the rights to use, copy, modify, | ||
merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | ||
permit persons to whom the Software is furnished to do so. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, | ||
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A | ||
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION | ||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/usr/bin/env python3 | ||
import os | ||
|
||
from aws_cdk import core as cdk | ||
|
||
# For consistency with TypeScript code, `cdk` is the preferred import name for | ||
# the CDK's core module. The following line also imports it as `core` for use | ||
# with examples from the CDK Developer's Guide, which are in the process of | ||
# being updated to use `cdk`. You may delete this import if you don't need it. | ||
from aws_cdk import core | ||
|
||
from stack.rekognition_video_face_blurring_cdk_stack import RekognitionVideoFaceBlurringCdkStack | ||
|
||
|
||
app = core.App() | ||
RekognitionVideoFaceBlurringCdkStack(app, "RekognitionVideoFaceBlurringCdkStack", | ||
# If you don't specify 'env', this stack will be environment-agnostic. | ||
# Account/Region-dependent features and context lookups will not work, | ||
# but a single synthesized template can be deployed anywhere. | ||
|
||
# Uncomment the next line to specialize this stack for the AWS Account | ||
# and Region that are implied by the current CLI configuration. | ||
|
||
#env=core.Environment(account=os.getenv('CDK_DEFAULT_ACCOUNT'), region=os.getenv('CDK_DEFAULT_REGION')), | ||
|
||
# Uncomment the next line if you know exactly what Account and Region you | ||
# want to deploy the stack to. */ | ||
|
||
#env=core.Environment(account='123456789012', region='us-east-1'), | ||
|
||
# For more information, see https://docs.aws.amazon.com/cdk/latest/guide/environments.html | ||
) | ||
|
||
app.synth() |
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,17 @@ | ||
{ | ||
"app": "python3 app.py", | ||
"context": { | ||
"@aws-cdk/aws-apigateway:usagePlanKeyOrderInsensitiveId": true, | ||
"@aws-cdk/core:enableStackNameDuplicates": "true", | ||
"aws-cdk:enableDiffNoFail": "true", | ||
"@aws-cdk/core:stackRelativeExports": "true", | ||
"@aws-cdk/aws-ecr-assets:dockerIgnoreSupport": true, | ||
"@aws-cdk/aws-secretsmanager:parseOwnedSecretName": true, | ||
"@aws-cdk/aws-kms:defaultKeyPolicies": true, | ||
"@aws-cdk/aws-s3:grantWriteWithoutAcl": true, | ||
"@aws-cdk/aws-ecs-patterns:removeDefaultDesiredCount": true, | ||
"@aws-cdk/aws-rds:lowercaseDbIdentifier": true, | ||
"@aws-cdk/aws-efs:defaultEncryptionAtRest": true, | ||
"@aws-cdk/aws-lambda:recognizeVersionProps": true | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+47.4 KB
images/rekognition-video-face-blur-cdk-app-step-functions-graph-details.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,74 @@ | ||
attrs==20.3.0 | ||
aws-cdk.assets==1.116.0 | ||
aws-cdk.aws-apigateway==1.116.0 | ||
aws-cdk.aws-applicationautoscaling==1.116.0 | ||
aws-cdk.aws-autoscaling==1.116.0 | ||
aws-cdk.aws-autoscaling-common==1.116.0 | ||
aws-cdk.aws-autoscaling-hooktargets==1.116.0 | ||
aws-cdk.aws-certificatemanager==1.116.0 | ||
aws-cdk.aws-cloudformation==1.116.0 | ||
aws-cdk.aws-cloudfront==1.116.0 | ||
aws-cdk.aws-cloudwatch==1.116.0 | ||
aws-cdk.aws-codebuild==1.116.0 | ||
aws-cdk.aws-codecommit==1.116.0 | ||
aws-cdk.aws-codeguruprofiler==1.116.0 | ||
aws-cdk.aws-codestarnotifications==1.116.0 | ||
aws-cdk.aws-cognito==1.116.0 | ||
aws-cdk.aws-dynamodb==1.116.0 | ||
aws-cdk.aws-ec2==1.116.0 | ||
aws-cdk.aws-ecr==1.116.0 | ||
aws-cdk.aws-ecr-assets==1.116.0 | ||
aws-cdk.aws-ecs==1.116.0 | ||
aws-cdk.aws-efs==1.116.0 | ||
aws-cdk.aws-eks==1.116.0 | ||
aws-cdk.aws-elasticloadbalancing==1.116.0 | ||
aws-cdk.aws-elasticloadbalancingv2==1.116.0 | ||
aws-cdk.aws-events==1.116.0 | ||
aws-cdk.aws-globalaccelerator==1.116.0 | ||
aws-cdk.aws-iam==1.116.0 | ||
aws-cdk.aws-kinesis==1.116.0 | ||
aws-cdk.aws-kms==1.116.0 | ||
aws-cdk.aws-lambda==1.116.0 | ||
aws-cdk.aws-lambda-event-sources==1.116.0 | ||
aws-cdk.aws-logs==1.116.0 | ||
aws-cdk.aws-route53==1.116.0 | ||
aws-cdk.aws-route53-targets==1.116.0 | ||
aws-cdk.aws-s3==1.116.0 | ||
aws-cdk.aws-s3-assets==1.116.0 | ||
aws-cdk.aws-s3-notifications==1.116.0 | ||
aws-cdk.aws-sam==1.116.0 | ||
aws-cdk.aws-secretsmanager==1.116.0 | ||
aws-cdk.aws-servicediscovery==1.116.0 | ||
aws-cdk.aws-signer==1.116.0 | ||
aws-cdk.aws-sns==1.116.0 | ||
aws-cdk.aws-sns-subscriptions==1.116.0 | ||
aws-cdk.aws-sqs==1.116.0 | ||
aws-cdk.aws-ssm==1.116.0 | ||
aws-cdk.aws-stepfunctions==1.116.0 | ||
aws-cdk.aws-stepfunctions-tasks==1.116.0 | ||
aws-cdk.cloud-assembly-schema==1.116.0 | ||
aws-cdk.core==1.116.0 | ||
aws-cdk.custom-resources==1.116.0 | ||
aws-cdk.cx-api==1.116.0 | ||
aws-cdk.lambda-layer-awscli==1.116.0 | ||
aws-cdk.lambda-layer-kubectl==1.116.0 | ||
aws-cdk.region-info==1.116.0 | ||
awscli==1.20.12 | ||
boto3==1.18.12 | ||
botocore==1.21.12 | ||
cattrs==1.6.0 | ||
colorama==0.4.3 | ||
constructs==3.3.112 | ||
docutils==0.15.2 | ||
jmespath==0.10.0 | ||
jsii==1.32.0 | ||
numpy==1.21.1 | ||
publication==0.0.3 | ||
pyasn1==0.4.8 | ||
python-dateutil==2.8.2 | ||
PyYAML==5.4.1 | ||
rsa==4.7.2 | ||
s3transfer==0.5.0 | ||
six==1.16.0 | ||
typing-extensions==3.10.0.0 | ||
urllib3==1.26.6 |
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,43 @@ | ||
import setuptools | ||
|
||
|
||
with open("README.md") as fp: | ||
long_description = fp.read() | ||
|
||
|
||
setuptools.setup( | ||
name="rekognition_video_face_blurring_cdk", | ||
version="0.0.1", | ||
|
||
description="An empty CDK Python app", | ||
long_description=long_description, | ||
long_description_content_type="text/markdown", | ||
|
||
author="author", | ||
|
||
package_dir={"": "rekognition_video_face_blurring_cdk"}, | ||
packages=setuptools.find_packages(where="rekognition_video_face_blurring_cdk"), | ||
|
||
install_requires=[ | ||
"aws-cdk.core==1.110.1", | ||
], | ||
|
||
python_requires=">=3.6", | ||
|
||
classifiers=[ | ||
"Development Status :: 4 - Beta", | ||
|
||
"Intended Audience :: Developers", | ||
|
||
"Programming Language :: JavaScript", | ||
"Programming Language :: Python :: 3 :: Only", | ||
"Programming Language :: Python :: 3.6", | ||
"Programming Language :: Python :: 3.7", | ||
"Programming Language :: Python :: 3.8", | ||
|
||
"Topic :: Software Development :: Code Generators", | ||
"Topic :: Utilities", | ||
|
||
"Typing :: Typed", | ||
], | ||
) |
Binary file not shown.
Binary file not shown.
16 changes: 16 additions & 0 deletions
16
stack/lambdas/rekopoc-apply-faces-to-video-docker/Dockerfile
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,16 @@ | ||
FROM public.ecr.aws/lambda/python:3.7 | ||
# Install the function's dependencies | ||
# Copy file requirements.txt from your project folder and install | ||
# the requirements in the app directory. | ||
|
||
COPY requirements.txt . | ||
RUN pip install -r requirements.txt | ||
|
||
# Copy helper functions | ||
COPY video_processor.py video_processor.py | ||
|
||
# Copy handler function (from the local app directory) | ||
COPY app.py . | ||
|
||
# Overwrite the command by providing a different command directly in the template. | ||
CMD ["app.lambda_function"] |
Oops, something went wrong.