AWS Security Hub Organization ADMin Account
This page shows how to write Terraform for Security Hub Organization ADMin Account and write them securely.
aws_securityhub_organization_admin_account (Terraform)
The Organization ADMin Account in Security Hub can be configured in Terraform with the resource name aws_securityhub_organization_admin_account
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "aws_securityhub_organization_admin_account" "securityhub" {
depends_on = [aws_organizations_organization.org]
admin_account_id = var.accounts.security
}
resource "aws_securityhub_organization_configuration" "securityhub" {
resource "aws_securityhub_organization_admin_account" "SecurityHub_DelegateAdmin" {
admin_account_id = var.master_account_id
}
################################################################################
Parameters
-
admin_account_id
required - string -
id
optional computed - string
Explanation in Terraform Registry
Manages a Security Hub administrator account for an organization. The AWS account utilizing this resource must be an Organizations primary account. More information about Organizations support in Security Hub can be found in the Security Hub User Guide.
CloudFormation Example
CloudFormation code does not have the related resource.
Frequently asked questions
What is AWS Security Hub Organization ADMin Account?
AWS Security Hub Organization ADMin Account is a resource for Security Hub of Amazon Web Service. Settings can be wrote in Terraform.
Where can I find the example code for the AWS Security Hub Organization ADMin Account?
For Terraform, the ken5scal/secure-brigade-terraform and aws-samples/aws-control-tower-terraform-modules source code examples are useful. See the Terraform Example section for further details.