Skip to content

Commit

Permalink
remove tf linter exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
lantoli committed Jul 17, 2024
1 parent c8fb713 commit 2bffd43
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions examples/mongodbatlas_online_archive/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 2bffd43

Please sign in to comment.