generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #899 from wellsiau-aws/d-improve-access-analyzer
docs: add example for awscc_accessanalyzer_analyzer
- Loading branch information
Showing
4 changed files
with
74 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 4 additions & 0 deletions
4
examples/resources/awscc_accessanalyzer_analyzer/account_analyzer.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
resource "awscc_accessanalyzer_analyzer" "this" { | ||
analyzer_name = "example" | ||
type = ACCOUNT | ||
} |
8 changes: 8 additions & 0 deletions
8
examples/resources/awscc_accessanalyzer_analyzer/organization_analyzer.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
resource "aws_organizations_organization" "this" { | ||
aws_service_access_principals = ["access-analyzer.amazonaws.com"] | ||
} | ||
|
||
resource "awscc_accessanalyzer_analyzer" "this" { | ||
analyzer_name = "example" | ||
type = "ORGANIZATION" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
|
||
{{ .Description | trimspace }} | ||
|
||
## Example Usage | ||
|
||
### Single Account Analyzer | ||
|
||
To use {{.Name}} on single AWS account: | ||
|
||
{{ tffile (printf "examples/resources/%s/account_analyzer.tf" .Name)}} | ||
|
||
### Organization Analyzer | ||
|
||
To enable {{.Name}} at the organization level, modify example below to match your AWS organization configuration. | ||
|
||
{{ tffile (printf "examples/resources/%s/organization_analyzer.tf" .Name)}} | ||
|
||
{{ .SchemaMarkdown | trimspace }} | ||
{{- if .HasImport }} | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
{{ codefile "shell" .ImportFile }} | ||
|
||
{{- end }} |