Skip to content

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.

License

Notifications You must be signed in to change notification settings

blackbird-cloud/terraform-aws-account-info

Repository files navigation

Terraform Aws Account Info Module

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.

blackbird-logo

Example

module "account_info" {
  source  = "blackbird-cloud/account-info/aws"
  version = "~> 2"
}

Requirements

Name Version
terraform >= 1
aws >= 4

Providers

Name Version
aws >= 4

Resources

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

Inputs

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

Outputs

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.

About

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

Copyright © 2017-2024 Blackbird Cloud

About

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.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages