apex_navigator_aws_permissions (Data Source)

This Terraform Datasource is used to query existing AWS permissions policies for 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_permissions" "example" {}

output "instance" {
  value = data.apex_navigator_aws_permissions.example
}

# data "apex_navigator_aws_permissions" "example" {
#   filter {
#     ids = ["APEX_NAVIGATOR"] 
#   }
# }

# output "apex_navigator_aws_permissions" {
#   value = data.apex_navigator_aws_permissions.example
# }

Schema

Optional

Read-Only

  • id (String) ID of the datasource
  • permissions (Attributes List) List of aws permissions policies (see below for nested schema)

Nested Schema for filter

Optional:

  • ids (Set of String) Filter by ids

Nested Schema for permissions

Optional:

  • id (String) Identifier of the AWS Permission Policy
  • version (String) Version of the AWS Permission Policy

Read-Only:

  • permission_policy (String) The JSON stringified details of the Permissions Policy