Action trail logging for all regions disabled 이 페이지는 아직 한국어로 제공되지 않습니다. 번역 작업 중입니다.
현재 번역 프로젝트에 대한 질문이나 피드백이 있으신 경우
언제든지 연락주시기 바랍니다. Id: terraform-alicloud-action-trail-logging-all-regions-disabled
Provider: Alicloud
Platform: Terraform
Severity: Medium
Category: Observability
Learn More Description ActionTrail logging must be enabled for all regions.
This rule checks that each alicloud_actiontrail_trail resource:
Includes the oss_bucket_name attribute Sets both event_rw and trail_region attributes to All Missing attributes trigger a MissingAttribute issue. Incorrect values trigger an IncorrectValue issue, with suggested remediation to add or correct the attribute.
Compliant Code Examples resource "alicloud_actiontrail_trail" "actiontrail1" {
trail_name = "action-trail"
oss_write_role_arn = "acs:ram::1182725xxxxxxxxxxx"
oss_bucket_name = "bucket_name"
event_rw = "All"
trail_region = "All"
}
Non-Compliant Code Examples resource "alicloud_actiontrail_trail" "actiontrail2" {
trail_name = "action-trail"
oss_write_role_arn = "acs:ram::1182725xxxxxxxxxxx"
oss_bucket_name = "bucket_name"
event_rw = "All"
trail_region = "cn-hangzhou"
}
resource "alicloud_actiontrail_trail" "actiontrail3" {
trail_name = "action-trail"
oss_write_role_arn = "acs:ram::1182725xxxxxxxxxxx"
oss_bucket_name = "bucket_name"
event_rw = "Read"
trail_region = "cn-hangzhou"
}
resource "alicloud_actiontrail_trail" "actiontrail4" {
trail_name = "action-trail"
oss_write_role_arn = "acs:ram::1182725xxxxxxxxxxx"
oss_bucket_name = "bucket_name"
event_rw = "Write"
trail_region = "cn-hangzhou"
}