awscc_accessanalyzer_analyzer (Resource)

The AWS::AccessAnalyzer::Analyzer type specifies an analyzer of the user's account

Example Usage

Single Account Analyzer

To use awscc_accessanalyzer_analyzer on single AWS account:

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "awscc_accessanalyzer_analyzer" "this" {
  analyzer_name = "example"
  type          = "ACCOUNT"
}

Organization Analyzer

To enable awscc_accessanalyzer_analyzer at the organization level, modify example below to match your AWS organization configuration.

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0

resource "aws_organizations_organization" "this" {
  aws_service_access_principals = ["access-analyzer.amazonaws.com"]
}

resource "awscc_accessanalyzer_analyzer" "this" {
  analyzer_name = "example"
  type          = "ORGANIZATION"
}

Schema

Required

Optional

Read-Only

Nested Schema for analyzer_configuration

Optional:

Nested Schema for analyzer_configuration.unused_access_configuration

Optional:

Nested Schema for archive_rules

Required:

Nested Schema for archive_rules.filter

Required:

Optional:

Nested Schema for tags

Required:

Import

Import is supported using the following syntax:

$ terraform import awscc_accessanalyzer_analyzer.example <resource ID>