Giter Club home page Giter Club logo

cdk-templates's Introduction

cdk-templates

AWS CDK is th "Cloud Development Kit" which lets you programm CloudFormation Templates.

This is a collection of templates for the cdk

Tooling

We use tasks for scripting.

For switching profiles awsume is used.

Deploy Templates

If you use awsume, then the env variable AWSUME_PROFILE is set. If you work with different accounts its better to call the cdk cli with profile parameter.

So with awsume:

task deploy

Or with cdk directly:

cdk deploy

Templates

alb-update

Simple application load balancer with "hello world" webserver on instance. It spins up its own vpc for that.

aws-custom-resource-ses

Using the custom resource helper from the CDK "AwsCustomResource" to create resources not supported by CloudFormation with e few lines of code.

alb-update has examples for

  • Auto generate AMI for region and OS type
  • Attach AWS managed policy to role
  • EC2 Userdata in external file
  • Attach Role for SSM Session Manager to instance in ASG

Usage of alb-update

  • cdk deploy
  • Open LoadBalancer DNS in browser

cdk-pipeline

Example to use CDK Pipeline Construct introduced in CDK 1.52

codepipeline

Deploy a static (hugo) website with CodePipeline and CodeCommit

codepipeline has examples for

  • CodeCommit repository
  • S3 Bucket with website, Bucket policy
  • CodeBuild
  • CodePipeline
  • Output parameters

ec2-autostop

Deploys a Jenkins EC2 instance, which is automatically stopped at a certain time. See `stop-instance.ts``

ec2-autostop has examples for

  • EC2 Userdata in a seperate single files
  • Cloudwatch Event Rule
  • extending the CDK by implementing an interface: `class EC2Stop implements events.IRuleTarget``

ec2-instanceconnect

  • EC2 instance with security group ssh incoming dynamic ip
  • Tasks for enabling and disabling instance metadata service v2

iam-user

  • generate many users with for loop
  • create and get initial password from SecretsManager

lambda-apigw

Lambda with an api Gateway

Lambda go

Lambda with go. Uses taskfile for compile depencies.

lambda-schedule

Simple lambda with CloudWatch event rule for daily triggering.

lambda-simple

Simple Lambda which takes all files from local lambda directory. It create the lambda ressource and uploads the code.

lambda-simple has examples for

  • lambda with local code (asset)
  • Programming resources and Lambda in the same programming language.

OpsCenter Role

Role for AWS OpsCenter

OpsCenterRole has example for

  • Create IAM Role with own policy statements

selfEditing

Creates a group with all rights for a user to change the own credentials and only them.

selfEditing has example for

  • creating a IAM group
  • add policy statements to the group

Usage of OpsCenterRole

Use role in any context.

Route 53

Route 53 Zone with a A Record entry

Transitgateway

Creates a Transitgateway with two connected VPCs

vpc-bastion

VPC with a bastion host, which is managed by SSM. So no security groups.

vpc-bastion has examples for

  • Instance ProfileRole
  • Searching EC2 image types

Usage of vpc-bastion

Connect to bastion host with Systems Manager session manager, or new mssh.

cdk-templates's People

Contributors

mauricebrg avatar megaproaktiv avatar ustrahlendorf avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.