vreddhi / pulumi-test

Code to provision AWS resources via pulumi to convert JPEG to PNG

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A Minimal program to spin stack to cater Image transformation from JPEG to PNG

The stack is provisioned using Pulumi.

Following resources are provisioned

  • A lambda with python 3.8 runtime
    • The lambda uses a layer to avoid dependency library compilation issues.
    • Source of the layer is https://github.com/keithrozario/Klayers
    • Lambda uses a assume role to execute itself, and a inline policy to write to S3
    • Access to Cloudwatch is also given to log the messages
  • S3 bucket with public access disabled.
    • A trigger is configured for BucketNotification for the event OnObjectCreate with a prefix of input

Following are the reference docs used

About

Code to provision AWS resources via pulumi to convert JPEG to PNG


Languages

Language:Python 100.0%