This lambda function is for the serverless-security-system.
The function parses over the contents of a given S3 bucket. The function will remove clips that do not include any motion.
docker run <tag_name>
S3_BUCKET
: The (unique) name of the S3 bucket to parse
In your AWS Account, create a new IAM Role with the permissions you deem necessary. The role must include permissions to create/update/delete resources in the following services.
- EC2 Container Registry - This can be achieved with
AmazonEC2ContainerRegistryFullAccess
policy.
Refer to GitHub's docs for Configuring OpenID Connect in AWS for guidance.
Add the following secrets via Repository settings > Secrets > Actions.
IAM_ROLE_ARN
containing your IAM Role ARN from step 1.