Skip to content

Commit 2ef6d83

Browse files
author
Veaceslav Mindru
committed
WIP: small fixes, rename RLS lambda
1 parent 6eba5d1 commit 2ef6d83

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

rls/deploy/deploy_cid_rls.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ Outputs:
9999
LambdaFunctionName:
100100
Condition: DeployLambda
101101
Value:
102-
Ref: CIDRLS
102+
Ref: LambdaCIDRLS
103103
LambdaFunctionARN:
104104
Condition: DeployLambda
105105
Description: Lambda function ARN.
106106
Value:
107107
Fn::GetAtt:
108-
- CIDRLS
108+
- LambdaCIDRLS
109109
- Arn
110110
Conditions:
111111
DeployLambda: !Equals [ !Ref DeployLambdaResources, Yes ]
@@ -207,7 +207,7 @@ Resources:
207207
Condition: DeployLambda
208208
Properties:
209209
FunctionName: !Sub
210-
- 'CIDRLS_${Id}'
210+
- 'LambdaCIDRLS_${Id}'
211211
- Id: !Select [0, !Split ['-', !Ref 'AWS::StackName']]
212212
Description: LambdaFunction of python3.8.
213213
Runtime: python3.9
@@ -259,7 +259,7 @@ Resources:
259259
- "logs:CreateLogStream"
260260
- "logs:PutLogEvents"
261261
- "logs:DescribeLogStreams"
262-
Resource: !Sub "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/CID-RLS*"
262+
Resource: !Sub "arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/Lambda-CID-RLS*"
263263
- Effect: "Allow"
264264
Action:
265265
- "s3:PutObject"
@@ -277,18 +277,18 @@ Resources:
277277
Properties:
278278
Description: Scheduler
279279
Name: !Sub
280-
- 'Scheduler_ForCIDRLS_${Id}'
280+
- 'Scheduler_ForLambdaCIDRLS_${Id}'
281281
- Id: !Select [0, !Split ['-', !Ref 'AWS::StackName']]
282282
ScheduleExpression: !Ref Schedule
283283
State: ENABLED
284284
Targets:
285-
- Arn: !GetAtt CIDRLS.Arn
286-
Id: TriggerForCIDRLS
285+
- Arn: !GetAtt LambdaCIDRLS.Arn
286+
Id: TriggerForLambdaCIDRLS
287287
EventPermission:
288288
Condition: DeployLambda
289289
Type: AWS::Lambda::Permission
290290
Properties:
291-
FunctionName: !GetAtt CIDRLS.Arn
291+
FunctionName: !GetAtt LambdaCIDRLS.Arn
292292
Action: lambda:InvokeFunction
293293
Principal: events.amazonaws.com
294294
SourceAccount: !Ref 'AWS::AccountId'

0 commit comments

Comments
 (0)