Skip to main content

Command Palette

Search for a command to run...

Pelican-resume with docker-compose and AWS + CDK

Published
โ€ข2 min read
Pelican-resume with docker-compose and AWS + CDK
V

๐Ÿš€ AWSome Devops | AWS Community Builder | AWS SA || โ˜๏ธ CloudOpz โ˜๏ธ

https://github.com/vumdao/pelican-resume

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

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 '*'
    
    [Web stack cdk code] (https://github.com/vumdao/pelican-resume/blob/master/web_stack/web_stack/web_stack_stack.py)

Demo

Alt Text

More from this blog

V

Vu Dao

102 posts

๐Ÿš€ AWSome Devops | AWS Community Builder | AWS SA || โ˜๏ธ SimflexCloud โ˜๏ธ