{
"Sid": "Allow Cloud NGFW access to one Cloudwatch Namespace",
"Effect": "Allow",
"Resource": "*",
"Action": "cloudwatch:PutMetricData",
"Condition": {
"StringEquals": {
"cloudwatch:namespace": "PaloAltoCloudNGFW"
}
}
}{
"Sid":"Allow Cloud NGFW access to write logs in one LogGroup",
"Action": [
"logs:CreateLogStream",
"logs:DescribeLogStreams",
"logs:PutLogEvents",
],
"Effect": "Allow",
"Resource": [
"arn:aws:logs:*:*:log-group:PaloAltoCloudNGFW"
"arn:aws:logs:*:*:log-group:PaloAltoCloudNGFW:log-stream:*"
],
}{
"Sid": "Optionally, Allow Cloud NGFW to write logs to one S3 bucket",
"Effect": "Allow",
"Action": [
"s3:putObject"
],
"Resource": [
# this is proposal #1 - name is coded based on externalid
"arn:aws:s3:::<PaloAltoCloudNGFW-ExternalD>/*"
# this is proposal #2 - name is provided by customer in CFT.
'arn:aws:s3:::${S3Bucket}/*'
]
}{
"Sid": " Optionally, Allow Cloud NGFW to write logs to Streams",
"Effect": "Allow",
"Action": [
"firehose:putRecordBatch"
],
"Resource": [
"arn:aws:kinesis:region:account:deliveryStream/PaloAltoCloudNGFW*"
],
}