Sha256: 89467546f3525c2461f61afa35a172c6368d59b3bc7c4852e40f6e99b7000757
Contents?: true
Size: 1.09 KB
Versions: 31
Compression:
Stored size: 1.09 KB
Contents
# frozen_string_literal: true CloudFormation do S3_Bucket('Bucket') do BucketName 'MyBucket' VersioningConfiguration(Status: 'Enabled') NotificationConfiguration( LambdaConfigurations: [ { Function: 'MyLambdaFunction', Event: 'S3:ObjectCreated:*' }, { Function: 'MyLambdaFunction', Event: 's3:ObjectRemoved:*' } ], QueueConfigurations: [ { Queue: 'SQSQueue', Event: 'S3:ObjectCreated:*' } ], TopicConfigurations: [ { Topic: 'SNSTopic', Event: 'S3:ObjectCreated:*' } ] ) WebsiteConfiguration( ErrorDocument: 'error.htm', IndexDocument: 'index.htm', RoutingRules: [ { RoutingRuleCondition: { HttpErrorCodeReturnedEquals: '404', KeyPrefixEquals: 'out1/' }, RedirectRule: { HostName: 'ec2-11-22-333-44.compute-1.amazonaws.com', ReplaceKeyPrefixWith: 'report-404/' } } ] ) end end
Version data entries
31 entries across 31 versions & 1 rubygems