Skip to content

Latest commit

 

History

History
65 lines (45 loc) · 1.11 KB

File metadata and controls

65 lines (45 loc) · 1.11 KB

Prerequisites

  • AWS CLI (tested with 1.19.33)
  • Terraform (tested with 0.14.3)
  • AWS CDK (tested with 1.109.0)
  • Java JDK (tested with openjdk 11.0.11)
  • NodeJS (required by AWS CDK, tested with v12.18.3)
  • Maven (tested with 3.6.3)

Should work with different versions of some prerequisites.

What's inside?

  • src/main/java/io/devopsbox/yavaconf/sdk/S3Bucket.java S3 bucket created/updated/deleted using AWS SDK
  • cloudformation sample CloudFormation template and two bash scripts: deploy-cfn and delete-cfn
  • terraform Terraform code that creates an S3 bucket
  • src/main/java/io/devopsbox/yavaconf/cdk/YavaconfAwsCdkBasicsStack.java start here for code that uses AWS CDK

Running

AWS SDK

Run as a normal Java main for example from you IDE

CloudFormation

cd cloudformation
./deploy-cfn

Terraform

cd terraform
terraform apply

AWS CDK

cdk deploy

Destroying

CloudFormation

cd cloudformation
./delete-cfn

Terraform

cd terraform
terraform destroy

AWS CDK

cdk destroy