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

[sumologic_s3_source] How to set "automatic" scan interval and S3 Region?

Open yermulnik opened this issue 4 years ago • 2 comments

  • Sumo Logic Docu suggests to set Scan Interval to Automatic when used along with SNS Subscription Endpoint but scan_interval from sumologic_s3_source resource is of type int — how to set it to automatic?

  • sumologic_s3_source resource does not provide region attribute despite this being available via UI — how to provide this value via Terraform? image

yermulnik avatar Jul 09 '21 17:07 yermulnik

So to set Scan Interval to Automatic one needs to set its value to -1 per https://help.sumologic.com/03Send-Data/Sources/03Use-JSON-to-Configure-Sources/JSON-Parameters-for-Hosted-Sources#aws-log-sources (kudos to TJ Vasques Jr).

yermulnik avatar Jul 12 '21 16:07 yermulnik

Yes you need to set that to -1, we will update docs good call out.

As for the region, there is an inconsistency it seems in the API and UI. Any sources created via API or UI will also use Others region and it is not yet possible to to choose other regions. We will get that fixed and get the docs updated but leaving open until both are compete.

frankreno avatar Jul 13 '21 02:07 frankreno