terraform-provider-sumologic icon indicating copy to clipboard operation
terraform-provider-sumologic copied to clipboard

When using the cloudtrail_source resource using the example fails with a HTTP 500

Open jburger opened this issue 5 years ago • 2 comments

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!

jburger avatar Nov 10 '20 06:11 jburger

Hi @jburger, could you kindly let us know which Sumo endpoint were you using for this request?

vsinghal13 avatar Nov 13 '20 02:11 vsinghal13

Hey @vsinghal13 this would have been the DE endpoint

jburger avatar Nov 16 '20 01:11 jburger