couchbasecloud / terraform-provider-couchbase-capella

Terraform Couchbase Capella Provider: Deploy, update, and manage Couchbase Capella infrastructure as code through HashiCorp Terraform
Apache License 2.0
32 stars 4 forks source link

[AV-78493] require start and end times to use an offset #197

Closed l0n3star closed 6 months ago

l0n3star commented 6 months ago

Jira

Description

Please include a summary of the fix/feature/change, including any relevant motivation and context.

Type of Change

Manual Testing Approach

How was this change tested and do you have evidence? (REQUIRED: Select at least 1)

Testing

Testing

Expected behavior is using Zulu time format will fail:

╷
│ Error: Error creating audit log export job
│
│   with couchbase-capella_audit_log_export.new_auditlogexport,
│   on create_auditlog_exports.tf line 6, in resource "couchbase-capella_audit_log_export" "new_auditlogexport":
│    6: resource "couchbase-capella_audit_log_export" "new_auditlogexport" {
│
│ Could not parse start time.  Please ensure it's in format 2024-05-05T15:04:11+00:00.  Error: parsing time "2024-05-05T15:04:11Z" as
│ "2006-01-02T15:04:05-07:00": cannot parse "Z" as "-07:00"

Required Checklist:

Further comments

l0n3star commented 6 months ago

will file new PR with alternate solution