SumoLogic / terraform-provider-sumologic

Terraform provider for Sumo Logic
https://www.terraform.io/docs/providers/sumologic/
Mozilla Public License 2.0
40 stars 56 forks source link

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

Open jburger opened 3 years ago

jburger commented 3 years ago

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!

vsinghal13 commented 3 years ago

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

jburger commented 3 years ago

Hey @vsinghal13 this would have been the DE endpoint