Skip to content

Commit d48d4d8

Browse files
committed
feat: add RDS/Lambda/EBS/S3 permissions for infrastructure explorer
1 parent 31bf223 commit d48d4d8

File tree

2 files changed

+41
-3
lines changed

2 files changed

+41
-3
lines changed

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

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
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+
- [update] Scanning for S3 buckets
11+
512
### 0.0.5 /4.9.2025 Add output to the role that the module will create
613

714
- [update] Add output `ExternalId` to the role that the module will create
@@ -14,7 +21,7 @@
1421

1522
### 0.0.3 / 30.9.2024
1623
* [update] Add ec2:DescribeNetworkInterfaces
17-
*
24+
*
1825
### 0.0.2 / 2.9.2024
1926
* [update] Add option to run module in AP3 region
2027

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

Lines changed: 33 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,33 @@ 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+
Resource: "*"
128+
- PolicyName: CoralogixListLambdaPolicy
129+
PolicyDocument:
130+
Version: "2012-10-17"
131+
Statement:
132+
- Effect: Allow
133+
Action:
134+
- "lambda:ListFunctions"
135+
Resource: "*"
136+
- PolicyName: CoralogixListS3Policy
137+
PolicyDocument:
138+
Version: "2012-10-17"
139+
Statement:
140+
- Effect: Allow
141+
Action:
142+
- "s3:ListAllMyBuckets"
143+
- "s3express:ListAllMyDirectoryBuckets"
113144
Resource: "*"
114145

115146
Outputs:

0 commit comments

Comments
 (0)