Skip to content

Commit b81ead0

Browse files
committed
feat: add RDS/Lambda/EBS permissions for infrastructure explorer
1 parent bd761c6 commit b81ead0

File tree

2 files changed

+32
-3
lines changed

2 files changed

+32
-3
lines changed

coralogix-policies/coralogix-infrastructure-explorer/CHANGELOG.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22

33
## infrastructure explorer
44

5+
### 0.0.6 / 5.11.2025 Add RDS permissions
6+
7+
- [update] Scanning for RDS instances
8+
- [update] Scanning for Lambda functions
9+
- [update] Scanning for EBS volumes
10+
511
### 0.0.5 /4.9.2025 Add output to the role that the module will create
612

713
- [update] Add output `ExternalId` to the role that the module will create
@@ -14,7 +20,7 @@
1420

1521
### 0.0.3 / 30.9.2024
1622
* [update] Add ec2:DescribeNetworkInterfaces
17-
*
23+
*
1824
### 0.0.2 / 2.9.2024
1925
* [update] Add option to run module in AP3 region
2026

coralogix-policies/coralogix-infrastructure-explorer/template.yaml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
AWSTemplateFormatVersion: 2010-09-09
2-
Description: The module will create a role to allow Coralogix scrape AWS infrastructure metadata
2+
Description: The module will create a role to allow Coralogix to scrape AWS infrastructure metadata
33
Parameters:
44
ExternalIdSecret:
55
Description: "ExternalIdSecret for sts:AssumeRole"
@@ -83,7 +83,11 @@ Resources:
8383
- aws_account_id: !If
8484
- IsCustomAWSAccountId
8585
- !Ref CustomAWSAccountId
86-
- !FindInMap [CoralogixEnvironment, !Ref CoralogixRegion, "ID"]
86+
- !FindInMap [
87+
CoralogixEnvironment,
88+
!Ref CoralogixRegion,
89+
"ID",
90+
]
8791
role_suffix:
8892
!FindInMap [
8993
CoralogixEnvironment,
@@ -110,6 +114,25 @@ Resources:
110114
- "ec2:DescribeRegions"
111115
- "ec2:DescribeTransitGateway*"
112116
- "ec2:DescribeNetworkInterfaces"
117+
- "ec2:DescribeVolumes"
118+
Resource: "*"
119+
- PolicyName: CoralogixDescribeRdsPolicy
120+
PolicyDocument:
121+
Version: "2012-10-17"
122+
Statement:
123+
- Effect: Allow
124+
Action:
125+
- "rds:DescribeDBInstances"
126+
- "rds:DescribeReservedDBInstances"
127+
- "rds:ListTagsForResource"
128+
Resource: "*"
129+
- PolicyName: CoralogixListLambdaPolicy
130+
PolicyDocument:
131+
Version: "2012-10-17"
132+
Statement:
133+
- Effect: Allow
134+
Action:
135+
- "lambda:ListFunctions"
113136
Resource: "*"
114137

115138
Outputs:

0 commit comments

Comments
 (0)