Skip to content

Commit

Permalink
Update the geo-tracking serverless pattern template.yml file to remov…
Browse files Browse the repository at this point in the history
…e permission with * resources and add output for all lambda functions.
  • Loading branch information
sundarsh123 committed Oct 30, 2023
1 parent b8c5855 commit 53db194
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions geo-tracking-sam/template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ Resources:
- Sid: GeoLocationTracking
Effect: Allow
Action:
- geo:*
Resource: '*'
- geo:GetDevicePosition
Resource:
- !GetAtt DistanceFilteringTracker.Arn
- !GetAtt AccuracyFilteringTracker.Arn
- !GetAtt TimeFilteringTracker.Arn
- DynamoDBCrudPolicy:
TableName: !Ref MyDynamoDBTable
Environment:
Expand All @@ -101,8 +104,10 @@ Resources:
- geo.amazonaws.com
eventName:
- BatchUpdateDevicePosition

Outputs:
TrackerFunction:
Description: "Tracking Testing Lambda Function ARN"
Value: !GetAtt TrackerFunction.Arn
GeoTrackingFunction:
Description: "Geo Tracking Lambda Function ARN"
Value: !GetAtt GeoTrackingFunction.Arn
Expand Down

0 comments on commit 53db194

Please sign in to comment.