Skip to content

jjkirkpatrick/serverless-fileupload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a Work in progress, not all resources are currently defined in Terraform, nor are they optimally configured.

Application

Install required modules 
    $ cd /application && yarn install

To build the application for development with hot reload
    $ cd /application && yarn serve

To build the application for production 

    $ cd /application && yarn build 

    Once yarn has built the application move the contents of /application/dist to s3

lambda

build the terraform to deploy the serverless resources 
    $ cd ../chalice && chalice package --pkg-format terraform ../terraform

    Remove the following section from ../terraform/chalice.tf.json, this method of defining providers is no longer supported in TF > 0.13

    "provider": {
      "template": {
        "version": "~> 2"
      },
      "aws": {
        "version": ">= 2, < 4"
      },
      "null": {
        "version": "~> 2"
      }
    },

Terraform cd ../terraform && terraform apply --auto-approve

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published