Bu yerda misol AWS SAM CLI buyrug'i SAM shablonini yaratish uchun: sam init --runtime python3.8 cd sam-app/ sam build sam package --output-template-file packaged.yaml sam deploy --template-file packaged.yaml --stack-name s3-resize-stack --capabilities CAPABILITY_IAM Bu yerda shablon: --- AWSTemplateFormatVersion: '2010-09-09' Transform: AWS::Serverless-2016-10-31 Resources: S3Bucket Type: AWS::S3Bucket::Bucket DeletionPolicy: Retain Properties: BucketName: my-resize-bucket NotificationConfiguration: LambdaConfigurations: Event: s3:ObjectCreated:* Function:!GetFunction: LambdaResize
spam lang_mismatch quality