terraform-provider-sumologic
terraform-provider-sumologic copied to clipboard
[sumologic_s3_source] How to set "automatic" scan interval and S3 Region?
-
Sumo Logic Docu suggests to set
Scan IntervaltoAutomaticwhen used along withSNS Subscription Endpointbutscan_intervalfromsumologic_s3_sourceresource is of typeint— how to set it toautomatic? -
sumologic_s3_sourceresource does not provideregionattribute despite this being available via UI — how to provide this value via Terraform?
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).
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.