Skip to content

mongodbatlas_cloud_backup_schedule.backup_schedule[0].export: attribute representing nested block must not be unknown itself; set nested attribute values to unknown instead #3651

@kandula229-rgb

Description

@kandula229-rgb

I am trying to provision a new atlas cluster and backup_schedule using mongodbatlas_cluster, mongodbatlas_cloud_backup_schedule resources. I am using terraform version 1.13.0 and mongodb/mongodbatlas version 1.40.0.
resource "mongodbatlas_cloud_backup_schedule" "backup_schedule" {
count = local.is_test ? 0 : 1
project_id = mongodbatlas_cluster.atlas_cluster[0].project_id
cluster_name = mongodbatlas_cluster.atlas_cluster[0].name

restore_window_days = 2

policy_item_hourly {
frequency_interval = 6
retention_unit = "days"
retention_value = 2
}

update_snapshots = true
}
this is my backup_schedule resource block code. when I am running this from local machine it is working. but when deploying it via sce(service catalog entry) into aws eks application getting below error

[PEDockerConfigureFailure] : ["timeout -k 900 40m terraform plan -no-color -lock-timeout=2m -input=false -var-file=input.tfvars.json -out=plan.json" command failed with code 1
Error: Provider produced invalid plan
Provider "registry.terraform.io/mongodb/mongodbatlas" planned an invalid
value for mongodbatlas_cloud_backup_schedule.backup_schedule[0].export:
attribute representing nested block must not be unknown itself; set nested
attribute values to unknown instead.
This is a bug in the provider, which should be reported in the provider's own
issue tracker.

I have tried multiple options, still it is not working.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions