AWS's API documentation can sometimes be like peeling an onion so here are a few code snippets of how to access different resources in AWS using languages like JavaScript, TypeScript, NodeJS, Python, etc....
| Description / URL | AWS Resource | Langauge |
|---|---|---|
| Authentication for ReactJS using AWS Cognito | Cognito | JavaScript |
| AWS Cognito Post Authentication Lambda - Insert data to MSSQL | Cognito | NodeJS |
| How to retrieve your AWS AccountID in NodeJS | Security Token Service | NodeJS |
| How to access AWS Parameter Store using NodeJS | Parameter Store | NodeJS |
| Insert CloudWatch Logs into an RDS instance (SQL Server) | Lambda / RDS | NodeJS |
| How To Access AWS Secrets Manager With NodeJS & Lambda | Secrets Manager / Lambda | NodeJS |
| IAM Account Setup / Grant Access / Rotate Keys | CDK | TypeScript |
| Deploy Containerized Micro Services using Docker and ECS Fargate | CDK | TypeScript |
| How to create a CodePipeline for Cross Account Deployments | CDK | TypeScript |
| Deploying User Data (EC2 Instance) with CDK | CDK | TypeScript |
| How to build nested stacks with CDK | CDK | TypeScript |
| How to build CloudWatch Synthetic Canaries using CDK & TypeScript | CloudWatch Synthetic Canaries | TypeScript |
| Automating AWS IAM Security Checks with python and typescript | CDK | TypeScript |
| Description / URL | AWS Resource | Langauge |
|---|---|---|
| How to append an existing bucket policy | ECR | Python |
| How to iterate through a list of buckets and programmatically set Public Block on AWS S3 Buckets | S3 | Python |
| How to loop through ECR Repositories and save all image scan findings to a CSV | ECR | Python |
| CDK Examples and Code Snippets | CDK | Python |
| How to create a centrlized codepipeline to deploy CloudWatch Synethetic Canaries to Multiple AWS Accounts | CDK / CodePipeline / Canaries | Python |
| Check for Expired API Keys | IAM / Lambda | Python |
| Insert CSV results into AWS RDS MySQL using Lambda & Python | Lambda / RDS / S3 | Python |
| Insert AWS Athena Query Results into RDS MySQL using AWS Lambda | Athena / RDS / Lambda | Python |
| Using a Lambda function to execute Athena queries | Athena / Lambda | Python |
| Automating AWS IAM Security Checks with python | Lambda | Python |
| Description / URL | AWS Resource | Langauge |
|---|---|---|
| How to easily clone CodeCommit Repos | CodeCommit | Command-Line |
| Several buildspec.yaml files for different codebuild projects | BuildSpec Files | yaml |
| How to build/pull/push ECR images using different AWS accounts | Elastic Container Registry | Command-Line |