Skip to content

[Bug]: Event trigger overrides EJSON configuration #2880

@adamMo

Description

@adamMo

Is there an existing issue for this?

  • I have searched the existing issues

Provider Version

v1.22.0

Terraform Version

v1.7.5

Terraform Edition

Terraform Open Source (OSS)

Current Behavior

My trigger configuration looks like this below. In Atlas console I have turned on the Enable Extended JSON option that does not exist in terraform provider. Any time I set up a new trigger or change anything in the existing one, my config is overwritten by terraform... What can I do to prevent that?

Terraform configuration to reproduce the issue

resource "mongodbatlas_event_trigger" "audit_trigger" {
	app_id                      = local.app_id[0]
	name                        = "audit_trigger"
	project_id                  = local.mongo_project_id
	type                        = "DATABASE"
	config_operation_types = ["INSERT", "UPDATE", "REPLACE", "DELETE"]
	config_database             = var.mongo_users_db
	config_collection           = "cases"
	config_service_id           = local.service_id[0]
	unordered                   = false
	config_full_document        = true
	config_full_document_before = true

	disabled = false

	event_processors {
		aws_eventbridge {
			config_account_id = data.aws_caller_identity.current.account_id
			config_region     = local.region
		}
	}
}

Steps To Reproduce

  1. Terraform apply this config

Logs

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    not_staleNot stale issue or PR

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions