diff --git a/examples/mongodbatlas_online_archive/main.tf b/examples/mongodbatlas_online_archive/main.tf index bb3d21bad2..8ce20d3589 100644 --- a/examples/mongodbatlas_online_archive/main.tf +++ b/examples/mongodbatlas_online_archive/main.tf @@ -31,15 +31,21 @@ resource "mongodbatlas_online_archive" "users_archive" { } } -# tflint-ignore: terraform_unused_declarations data "mongodbatlas_online_archive" "read_archive" { project_id = mongodbatlas_online_archive.users_archive.project_id cluster_name = mongodbatlas_online_archive.users_archive.cluster_name archive_id = mongodbatlas_online_archive.users_archive.archive_id } -# tflint-ignore: terraform_unused_declarations data "mongodbatlas_online_archives" "all" { project_id = mongodbatlas_online_archive.users_archive.project_id cluster_name = mongodbatlas_online_archive.users_archive.cluster_name } + +output "online_archive_state" { + value = data.mongodbatlas_online_archive.read_archive.state +} + +output "online_archives_results" { + value = data.mongodbatlas_online_archives.all.results +}