Skip to content

Commit

Permalink
⭐ Add cloudWatchLogsLogGroupArn to aws.cloudtrail.trails resource (#3290
Browse files Browse the repository at this point in the history
)

* has issue

Signed-off-by: Hossein Rouhani <[email protected]>

* new clean version

Signed-off-by: Hossein Rouhani <[email protected]>

---------

Signed-off-by: Hossein Rouhani <[email protected]>
  • Loading branch information
HRouhani authored Feb 14, 2024
1 parent 9220b11 commit 5aeb69d
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions providers/aws/resources/aws.lr
Original file line number Diff line number Diff line change
Expand Up @@ -1520,6 +1520,8 @@ private aws.cloudtrail.trail @defaults("name region") {
logGroup() aws.cloudwatch.loggroup
// Role for logs endpoint to assume when writing to log group
cloudWatchLogsRoleArn string
// Group for logs endpoint to assume when writing to log group
cloudWatchLogsLogGroupArn string
// Settings for the trail's configured event selectors
eventSelectors() []dict
// Region in which the trail was created (home region)
Expand Down
12 changes: 12 additions & 0 deletions providers/aws/resources/aws.lr.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions providers/aws/resources/aws.lr.manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ resources:
status
logGroup
cloudWatchLogsRoleArn
cloudWatchLogsLogGroupArn
eventSelectors
region
}
Expand All @@ -474,6 +475,7 @@ resources:
The `aws.cloudtrail.trail` object represents an individual AWS CloudTrail configured within an account. For usage, read the `aws.cloudtrail` resource documentation.
fields:
arn: {}
cloudWatchLogsLogGroupArn: {}
cloudWatchLogsRoleArn: {}
eventSelectors: {}
includeGlobalServiceEvents: {}
Expand Down
1 change: 1 addition & 0 deletions providers/aws/resources/aws_cloudtrail.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ func (a *mqlAwsCloudtrail) getTrails(conn *connection.AwsConnection) []*jobpool.
"includeGlobalServiceEvents": llx.BoolDataPtr(trail.IncludeGlobalServiceEvents),
"snsTopicARN": llx.StringDataPtr(trail.SnsTopicARN),
"cloudWatchLogsRoleArn": llx.StringDataPtr(trail.CloudWatchLogsRoleArn),
"cloudWatchLogsLogGroupArn": llx.StringDataPtr(trail.CloudWatchLogsLogGroupArn),
"region": llx.StringDataPtr(trail.HomeRegion),
}

Expand Down

0 comments on commit 5aeb69d

Please sign in to comment.