aws-ia / terraform-aws-control_tower_account_factory

AWS Control Tower Account Factory
Apache License 2.0
640 stars 440 forks source link

Output dynamodb and s3 backends #81

Open nitrocode opened 2 years ago

nitrocode commented 2 years ago

It would be nice to retrieve the dynamodb tables and s3 backends

⨠ terraform state list | grep "aws_s3_bucket\..*backend"
module.control_tower_aft.module.aft_backend.aws_s3_bucket.primary-backend-bucket
module.control_tower_aft.module.aft_backend.aws_s3_bucket.secondary-backend-bucket
⨠ terraform state list | grep "dynamodb_table\.lock-table"
module.control_tower_aft.module.aft_backend.aws_dynamodb_table.lock-table

without having to do a terraform state show for each of the above resources

terraform state show module.control_tower_aft.module.aft_backend.aws_s3_bucket.primary-backend-bucket
terraform state show module.control_tower_aft.module.aft_backend.aws_s3_bucket.secondary-backend-bucket
terraform state show module.aft.module.aft_backend.aws_dynamodb_table.lock-table
balltrev commented 2 years ago

Thanks for the request @nitrocode. Just to confirm, you're looking at having these exposed as outputs correct? I've gone ahead and made a backlog in regards to that, but just wanted to make sure I got it right.

nitrocode commented 2 years ago

Yes, it would be nice to have these exposed as outputs from the module.