apex_navigator_aws_accounts (Data Source)
This Terraform Datasource is used to query existing aws accounts on Apex Navigator. The information fetched from this block can be further used for resource block.
Example Usage
/*
Copyright (c) 2024 Dell Inc., or its subsidiaries. All Rights Reserved.
Licensed under the Mozilla Public License Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://mozilla.org/MPL/2.0/
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
data "apex_navigator_aws_accounts" "example" {}
output "instance" {
value = data.apex_navigator_aws_accounts.example
}
# data "apex_navigator_aws_accounts" "example" {
# filter {
# ids = ["account-id"]
# }
# }
# output "apex_navigator_aws_accounts" {
# value = data.apex_navigator_aws_accounts.example
# }
Schema
Optional
filter
(Block, Optional) (see below for nested schema)
Read-Only
accounts
(Attributes List) List of aws accounts (see below for nested schema)id
(String) ID of the datasource
Nested Schema for filter
Optional:
ids
(Set of String) Filter by ids
Nested Schema for accounts
Optional:
account_alias
(String) Alias of the AWS accountid
(String) Identifier of the AWS accountstatus
(String) status of the AWS account