How non-97/aws-cdk-alb-cognito-okta-saml-authentication works
Project type and purpose
• This is an AWS CDK (Cloud Development Kit) project written in TypeScript. Its purpose is to define and deploy a set of AWS infrastructure resources (VPC, ALB, AutoScaling Group, Certificate, Hosted Zone, SAML authentication) via IaC (Infrastructure as Code).
File structure
• bin/saml-app.ts: Entry point that loads the CDK app and instantiates the stack.
• lib/saml-app-stack.ts: Top-level CDK Stack that orchestrates all constructs.
• lib/construct/*: Each file here is a reusable “construct” encapsulating one AWS resource or related group:
• network-construct.ts → VPC, subnets, route tables
• alb-construct.ts → Application Load Balancer & listeners
• asg-construct.ts → EC2 Auto Scaling Group
• certificate-construct.ts → ACM Certificate
• hosted-zone-construct.ts → Route 53 Hosted Zone
• saml-auth-construct.ts → SAML Identity Provider integration
• lib/ec2-settings/user-data/default.sh: EC2 bootstrap script for instances in the ASG.
• parameter/index.ts: Parameter definitions (e.g., domain names, certificate ARNs).
• test/saml-app.test.ts: Unit tests validating your CDK constructs.
README
• Confirms this is a blank CDK TypeScript starter, runnable with npm run build, cdk deploy, etc.