This repository contains examples of AWS-related topics, typically examples from Chariot's blog. All code is licensed under Apache 2.0.
Each sub-directory is a distinct project, with a README that describes the project in more detail:
-
A Lambda that uploads CloudTrail events to an Elasticsearch cluster. Referenced by Delving into CloudTrail Events.
-
infrastructure-tools-comparison
Examples for creating users, groups, and roles using CloudFormation, Cloud Development Kit (CDK), CFNDSL, and Terraform. Referenced by [Comparing Infrastructure Tools: A First Look at the AWS Cloud Development Kit)(https://chariotsolutions.com/blog/post/comparing-infrastructure-tools-a-first-look-at-the-aws-cloud-development-kit/).
-
infrastructure-tools-comparison-2
Comparison of Terraform modules and CDK custom constructs. This is a follow-on to the prior example.
-
A skeleton Python Lambda that depends on the
psycopg2
database library. Referenced by Building and Deploying Lambdas from a Docker Container. -
A skeleton Lambda that depends on the
psycopg2
database library and is deployed as a Docker container. Referenced by Getting Started with Lambda Container Images. -
IAM and service control policies that Chariot uses for managing developer sandboxes. Referenced by Building Developer Sandboxes on AWS.
-
springboot-secman-auth / springboot-iam-auth
Examples of using connection-time credentials with Spring Boot. The first uses an AWSLabs driver library to retrieve credentials from Secrets Manager. The second uses a custom Postgres datasource implementation to retrieve IAM-generated credentials. Referenced by RDS Database Authentication with Spring Boot, parts one and two.
-
A Lambda-based application that allows users to upload files from a browser (showing two ways to accomplish them) and then process those files via a triggered Lambda. Referenced by Two Buckets and a Lambda: a pattern for file processing.
-
A Lambda that will find EC2 instances that don't have the proper ownership tags and shutting them down. Referenced by Building Developer Sandboxes on AWS.