mirror of
https://github.com/ghndrx/terraform-foundation.git
synced 2026-02-10 06:45:06 +00:00
Enterprise-grade multi-tenant AWS cloud foundation. Modules: - GitHub OIDC for keyless CI/CD authentication - IAM account settings and security baseline - AWS Config Rules for compliance - ABAC (Attribute-Based Access Control) - SCPs (Service Control Policies) Features: - Multi-account architecture - Cost optimization patterns - Security best practices - Comprehensive documentation Tech: Terraform, AWS Organizations, IAM Identity Center
57 lines
1.6 KiB
HCL
57 lines
1.6 KiB
HCL
################################################################################
|
|
# Account Baseline - Outputs
|
|
################################################################################
|
|
|
|
output "ebs_encryption_enabled" {
|
|
value = var.enable_ebs_encryption
|
|
description = "Whether EBS encryption is enabled"
|
|
}
|
|
|
|
output "s3_block_public_enabled" {
|
|
value = var.enable_s3_block_public
|
|
description = "Whether S3 public block is enabled"
|
|
}
|
|
|
|
output "access_analyzer_arn" {
|
|
value = try(aws_accessanalyzer_analyzer.this[0].arn, null)
|
|
description = "Access Analyzer ARN"
|
|
}
|
|
|
|
output "securityhub_enabled" {
|
|
value = var.enable_securityhub
|
|
description = "Whether Security Hub is enabled"
|
|
}
|
|
|
|
output "guardduty_detector_id" {
|
|
value = try(aws_guardduty_detector.this[0].id, null)
|
|
description = "GuardDuty detector ID"
|
|
}
|
|
|
|
output "config_recorder_id" {
|
|
value = try(aws_config_configuration_recorder.this[0].id, null)
|
|
description = "Config recorder ID"
|
|
}
|
|
|
|
output "admin_role_arn" {
|
|
value = try(aws_iam_role.admin[0].arn, null)
|
|
description = "Admin IAM role ARN"
|
|
}
|
|
|
|
output "readonly_role_arn" {
|
|
value = try(aws_iam_role.readonly[0].arn, null)
|
|
description = "Readonly IAM role ARN"
|
|
}
|
|
|
|
output "baseline_status" {
|
|
value = {
|
|
ebs_encryption = var.enable_ebs_encryption
|
|
s3_block_public = var.enable_s3_block_public
|
|
password_policy = var.enable_password_policy
|
|
access_analyzer = var.enable_access_analyzer
|
|
securityhub = var.enable_securityhub
|
|
guardduty = var.enable_guardduty
|
|
config = var.enable_config
|
|
}
|
|
description = "Summary of baseline status"
|
|
}
|