terraform-provider-sumologic
terraform-provider-sumologic copied to clipboard
When using the cloudtrail_source resource using the example fails with a HTTP 500
Hey! Thanks for the great provider, having some issues with the Cloudtrail piece though.
Example configuration:
resource "sumologic_cloudtrail_source" "terraform_cloudtrail_source" {
name = "Amazon Cloudtrail"
description = "Cloudtrail logs from our AWS account"
category = "aws/cloudtrail"
content_type = "AwsCloudTrailBucket"
scan_interval = 300000
paused = false
collector_id = sumologic_collector.aws_collector.id
authentication {
type = "S3BucketAuthentication"
role_arn = aws_iam_role.sumologic_iam_role.arn
}
path {
type = "S3BucketPathExpression"
bucket_name = "cloudtrail"
path_expression = "AWSLogs/xxxxxxxx/CloudTrail/*"
}
}
Example error
Error: {
"status" : 500,
"id" : "BOKTB-T8R2I-HESK0",
"code" : "internal.error",
"message" : "Internal server error."
}
on sumologic.tf line 6, in resource "sumologic_cloudtrail_source" "terraform_cloudtrail_source":
6: resource "sumologic_cloudtrail_source" "terraform_cloudtrail_source" {
Please reach out if you need more information to troubleshoot this.
Thanks!
Hi @jburger, could you kindly let us know which Sumo endpoint were you using for this request?
Hey @vsinghal13 this would have been the DE endpoint