DEV Community

Cover image for Pelican-resume with docker-compose and AWS + CDK
πŸš€ Vu Dao πŸš€
πŸš€ Vu Dao πŸš€

Posted on β€’ Edited on

3 5

Pelican-resume with docker-compose and AWS + CDK

Quick Run
./run.sh

sed -i 's/THEME = .*'/THEME = "theme"/g'
rm -r output
pelican content/ -s pelicanconf.py -p 8000
pelican -l content -o output -s pelicanconf.py -p 8000 -r
Enter fullscreen mode Exit fullscreen mode

The theme uses CDN bootstrap to fix the issue of missing background when printing/generate PDF and Awesome Font

Building static web page

  • Run docker-compose in the EC2 instance: Clone the code and run docker-compose docker-compose up -d

Create AWS Resources Using CDK

General

  • Create AWS target group which listen to port 8000
  • Create domain point to the ALB
  • Generate listen rule from the ALB
  • Using CDK to deploy AWS resources as cloudformation (Need to install CDK python tool and libs, AWS CDK First Start)
cp web_stack
cdk deploy '*'
Enter fullscreen mode Exit fullscreen mode

Web stack cdk code

Demo

Alt Text

Hostinger image

Get n8n VPS hosting 3x cheaper than a cloud solution

Get fast, easy, secure n8n VPS hosting from $4.99/mo at Hostinger. Automate any workflow using a pre-installed n8n application and no-code customization.

Start now

Top comments (1)

Collapse
 
jackpham85 profile image
jackpham85 β€’

Great!!!!!

Sentry image

See why 4M developers consider Sentry, β€œnot bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay