# This AWS SAM template has been generated from your function's configuration. If # your function has one or more triggers, note that the AWS resources associated # with these triggers aren't fully specified in this template and include # placeholder values. Open this template in AWS Application Composer or your # favorite IDE and modify it to specify a serverless application with other AWS # resources. AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Description: An AWS Serverless Application Model template describing your function. Resources: p1videosplitting: Type: AWS::Serverless::Function Properties: CodeUri: . Description: '' MemorySize: 512 Timeout: 60 Architectures: - x86_64 EphemeralStorage: Size: 512 EventInvokeConfig: MaximumEventAgeInSeconds: 21600 MaximumRetryAttempts: 2 ImageUri: >- 146064153251.dkr.ecr.us-east-1.amazonaws.com/546-proj2-p1@sha256:f3e8b79ffa429bfeb24b7b3a1786bb206dd89c2c7f01f3ff9fbb0d1379c9e238 PackageType: Image Policies: - Statement: - Effect: Allow Action: - logs:PutLogEvents - logs:CreateLogGroup - logs:CreateLogStream Resource: arn:aws:logs:*:*:* - Effect: Allow Action: - s3:GetObject Resource: arn:aws:s3:::*/* - Effect: Allow Action: - s3:PutObject Resource: arn:aws:s3:::*/* SnapStart: ApplyOn: None Events: BucketEvent1: Type: S3 Properties: Bucket: Ref: Bucket1 Events: - s3:ObjectCreated:* Bucket1: Type: AWS::S3::Bucket Properties: VersioningConfiguration: Status: Enabled BucketEncryption: ServerSideEncryptionConfiguration: - ServerSideEncryptionByDefault: SSEAlgorithm: AES256 BucketPolicy1: Type: AWS::S3::BucketPolicy Properties: Bucket: Bucket1 PolicyDocument: Statement: - Action: s3:* Effect: Deny Principal: '*' Resource: - arn:aws:s3:::Bucket1/* - arn:aws:s3:::Bucket1 Condition: Bool: aws:SecureTransport: false