Enhancing Security & Compliance for Mainframe Migrations on AWS
Secure mainframe migrations with AWS-native security tools. Todd Bernson, CTO, explores how enterprises can protect COBOL workloads using IAM for access control, AWS KMS for encryption, and AWS Config for automated compliance monitoring, ensuring a secure and compliant cloud transition.

Todd Bernson
2025-02-19

Migrating mainframe workloads to AWS presents a significant security and compliance challenge. Enterprises running COBOL-based applications must ensure that sensitive data is protected, access is restricted, and compliance is automated.
AWS offers built-in security services that enable organizations to establish robust identity management, encryption, and compliance monitoring. This article explores how AWS-native security tools like IAM, AWS KMS, and AWS Config can enhance security for mainframe migrations.
Security Challenges in Mainframe Migrations
Traditional mainframe environments rely on legacy security models that are difficult to integrate with cloud-native approaches. Key security risks during migration include:
- Unauthorized Access: Mainframes often have loosely controlled user access.
- Unencrypted Data: Legacy systems store and process sensitive data without encryption.
- Compliance Gaps: Mainframe logs and audit trails may not meet cloud security standards.
- Lack of Automation: Manual security configurations create operational risk.
AWS-native security services address these challenges by implementing identity-based access control, encryption, and automated compliance tracking.
Security Architecture for AWS Mainframe Migration
- AWS IAM controls access to EKS, S3, and database resources.
- AWS KMS encrypts COBOL workload data at rest and in transit.
- AWS Config monitors configuration changes for compliance tracking.
- AWS Security Hub provides a unified security posture dashboard.
1. Implementing Identity & Access Management (IAM)
AWS IAM enforces least-privilege access control for AWS resources, ensuring that only authorized users and workloads can interact with COBOL-based applications.
Defining IAM Roles & Policies in Terraform
data "aws_iam_policy_document" "eks_efs" {
statement {
effect = "Allow"
actions = [
"elasticfilesystem:ClientMount",
"elasticfilesystem:ClientRootAccess",
"elasticfilesystem:ClientWrite",
]
resources = [module.efs.arn]
}
}
data "aws_iam_policy_document" "external_dns" {
statement {
effect = "Allow"
actions = ["route53:ChangeResourceRecordSets"]
resources = [data.aws_route53_zone.public.arn]
}
statement {
effect = "Allow"
actions = [
"route53:ListHostedZones",
"route53:ListResourceRecordSets",
"route53:ListTagsForResource",
]
resources = ["*"]
}
}
IAM Enforces:
- Granular access control to EKS, S3, and databases.
- Role-based authentication for application workloads.
- Least-privilege policies to reduce security risks.
2. Securing Data with AWS KMS Encryption
AWS KMS provides encryption at rest and in transit for sensitive COBOL processing data.
Enabling S3 Bucket Encryption with KMS
server_side_encryption_configuration = {
rule = {
apply_server_side_encryption_by_default = {
kms_master_key_id = aws_kms_key.objects.arn
sse_algorithm = "aws:kms"
}
}
}
With AWS KMS, enterprises can ensure:
Automatic encryption of COBOL workload data.
Secure access policies to limit decryption to authorized roles.
Auditable encryption logs for compliance.
3. Enforcing Compliance with AWS Config & Security Hub
AWS Config continuously monitors infrastructure configurations to detect security drifts.
Using AWS Config to Track EKS Security Compliance
resource "aws_config_config_rule" "eks-secrets-encrypted" {
name = "eks-secrets-encrypted"
description = "Ensures EKS secrets are encrypted"
source {
owner = "AWS"
source_identifier = "EKS_SECRETS_ENCRYPTED"
}
}
AWS Config ensures:
- Automated compliance checks for Kubernetes clusters.
- Continuous monitoring of security policies.
- Immediate alerts when infrastructure drifts from secure configurations.
AWS Security Hub: Unified Security Monitoring
AWS Security Hub consolidates security insights across IAM, KMS, and AWS Config.
Security Hub Provides:
- Real-time compliance alerts.
- Risk analysis for IAM & encryption policies.
- Automated remediation actions.
Final Thoughts: Securing Mainframe Migrations to AWS
Mainframe migrations require enterprise-grade security. AWS provides native tools to protect COBOL-based workloads by implementing IAM, KMS encryption, and automated compliance monitoring.
IAM secures access control at every level.
AWS KMS encrypts COBOL data at rest and in transit.
AWS Config & Security Hub ensure continuous compliance monitoring.
Enterprises modernizing with AWS can reduce security risks, meet compliance standards, and achieve end-to-end cloud security for legacy workloads.
Read More
View all posts
AI/ML
Why Enterprise AI Must Be Application-Led, Not Agent-Led
A deep dive by Todd Bernson, CTO and Chief AI Officer, on why enterprise AI systems should be architected as application-led, deterministic platforms with embedded agentic AI—not fully autonomous agents. This article explains how API-first, governed, multi-channel architectures deliver higher reliability, compliance, scalability, and business value in real-world Fortune-500 environments.

Todd Bernson
2025-12-02

AI/ML
Application-First Agentic AI
Application-first agentic AI is emerging as the only reliable path to real enterprise ROI. In this in-depth analysis, Todd Bernson, CTO & CAIO, breaks down why most generative AI initiatives stall in production—and how disciplined enterprise architecture, deterministic workflows, and narrowly scoped AI agents can finally unlock repeatable business value. Using a real sprint-intelligence system as a case study, the article shows how organizations can combine serverless engineering, structured orchestration, and constrained LLM reasoning to reduce reporting effort, increase trust, eliminate hallucinations, and deliver actionable insights across engineering, operations, compliance, and customer experience.

Todd Bernson
2025-11-28
AI/ML
Why 95% of AI Projects Fail and How to Be Among the 5% That Succeed

Lee Hylton
2025-08-22