Skip to content
GitLab
Explore
Projects
Groups
Snippets
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Public Resources
cloudformation-apps
Commits
ea382b04
Commit
ea382b04
authored
2 years ago
by
chaithra@openxcellinc.com
Browse files
Options
Download
Email Patches
Plain Diff
Delete CF-Lambd-cloudwatch
parent
8c56540a
master
No related merge requests found
Pipeline
#20121
passed with stage
in 46 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
common/CF-Lambd-cloudwatch
+0
-59
common/CF-Lambd-cloudwatch
with
0 additions
and
59 deletions
+0
-59
common/CF-Lambd-cloudwatch
deleted
100644 → 0
+
0
-
59
View file @
8c56540a
Resources:
LambdaExecutionRole:
Properties:
AssumeRolePolicyDocument:
Statement:
- Action:
- sts:AssumeRole
Effect: Allow
Principal:
Service:
- lambda.amazonaws.com
Version: '2012-10-17'
Path: /
Policies:
- PolicyDocument:
Version: '2012-10-17'
Statement:
- Action: s3:*
Effect: Allow
Resource: '*'
PolicyName: root
Type: AWS::IAM::Role
LambdaFunction:
Properties:
Code:
S3Bucket: bucketname
S3Key: //Zip file URL of your code in s3//
Handler: index.lambda_handler
MemorySize: 128
Role:
Fn::GetAtt:
- LambdaExecutionRole
- Arn
Runtime: python3.7
Timeout: 60
Type: AWS::Lambda::Function
LambdaFunctionSchedule:
Properties:
ScheduleExpression: cron(0 8,16 ? * MON-FRI *)
Targets:
- Arn:
Fn::GetAtt:
- LambdaFunction
- Arn
Id: '1'
Type: AWS::Events::Rule
LambdaFunctionCwPermission:
Properties:
Action: lambda:InvokeFunction
FunctionName:
Fn::GetAtt:
- LambdaFunction
- Arn
Principal: events.amazonaws.com
SourceArn:
Fn::GetAtt:
- LambdaFunctionSchedule
- Arn
Type: AWS::Lambda::Permission
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Explore
Projects
Groups
Snippets