Skip to content
/ packer2aws Public template

Use Packer to create a custom Debian based AMI with SSH support, and manage its deployment via CDK for Terraform (CDKTF).

Notifications You must be signed in to change notification settings

baakeydow/packer2aws

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

packer2aws

Use packer to create a custom Debian based AMI with SSH support

Setup

  • Create a file named .env.sh in the root folder with =>
#!/bin/bash
export AWS_REGION=eu-west-1
export AWS_OWNER_ID=424242424242
export EC2_INSTANCE_TYPE=t2.micro
  • Create a ssh key named rsa.pub in the debian-ami folder

Deploy

sh up.sh

Destroy

sh down.sh