-
Notifications
You must be signed in to change notification settings - Fork 0
/
s3_lambda.yml
29 lines (29 loc) · 884 Bytes
/
s3_lambda.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
AWSTemplateFormatVersion: 2010-09-09
Description: |
event-monitor - Creates S3 buckets used for Lambda functions. Deploy as StackSet to all regions.
Parameters:
LambdaRoleName:
Type: String
Default: Event-Monitor-Role
Description: IAM Role name used for Lambda and Slack Alarms
LambdaBucketNamePrefix:
Type: String
Default: 'target-lambda-bucket'
Description: S3 bucket containing Lambda functions
Resources:
LambdaBucket:
Type: 'AWS::S3::Bucket'
Properties:
BucketName: !Join
- ''
- - !Ref 'LambdaBucketNamePrefix'
- '-'
- !Ref 'AWS::AccountId'
VersioningConfiguration:
Status: Enabled
Outputs:
EventMonitorLambdaCodeBucket:
Description: S3 bucket containing Lambda functions
Value: !Ref 'LambdaBucket'
Export:
Name: 'event-monitor-LambdaBucket'