A Terraform module which uses a number of datasources to read information about the current AWS account. Handy when used in combination with Terragrunt, one will have fewer variables to hardcode on the Terragrunt files.
module "account_info" {
source = "blackbird-cloud/account-info/aws"
version = "~> 2"
}
Name | Version |
---|---|
terraform | >= 1 |
aws | >= 4 |
Name | Version |
---|---|
aws | >= 4 |
Name | Type |
---|---|
aws_caller_identity.default | data source |
aws_iam_roles.roles | data source |
aws_organizations_organization.default | data source |
aws_organizations_organizational_units.default | data source |
aws_partition.default | data source |
aws_region.default | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
aws_sso_permission_sets | (Optional) List of permission-set names for which to retrieve the IAM roles. | list(string) |
[] |
no |
Name | Description |
---|---|
account_id | The account's account id. |
organization | The account's organization. |
organizational_units | The account's organizational units. Is empty on non management-account. |
partition | The account's partition. |
region | The current region. |
sso_roles | The roles created by the IAM Identity Center, configure the variable aws_sso_permission_sets when you want to retrieve these. |
We are Blackbird Cloud, Amsterdam based cloud consultancy, and cloud management service provider. We help companies build secure, cost efficient, and scale-able solutions.
Checkout our other 👉 terraform modules
Copyright © 2017-2024 Blackbird Cloud