AdamBien / aws-ec2

EC2 with AWS CDKv2

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

EC2 with SSM for deployment into a new, or exising VPC

This is a blank, slightly streamlined, project for EC2 provisioning with AWS CDKv2.

You will find the maven command in cdk.json file.

It is a Maven based project, so you can open this project with any Maven compatible Java IDE to build and run tests.

Installation

  1. For max convenience use the default profile
  2. Install AWS CDK CLI
  3. cdk boostrap --profile YOUR_AWS_PROFILE

Useful commands

  • mvn package compile and run tests
  • cdk ls list all stacks in the app
  • cdk synth emits the synthesized CloudFormation template
  • cdk deploy deploy this stack to your default AWS account/region
  • cdk diff compare deployed stack with current state
  • cdk docs open CDK documentation

Enjoy!

in action

Infrastructure as Java Code (IaJC): Setting AWS System Manager Parameter

Infrastructure as Java Code (IaJC): Setting AWS System Manager Parameter

references

Used in:

  1. Plain Lambda Template
  2. MicroProfile on Quarkus as Lambda Template

See you at: airhacks.live

About

EC2 with AWS CDKv2

License:MIT License


Languages

Language:Java 98.3%Language:Shell 1.7%