chrisemerson / vote.poker

8 stars 4 forks source link

Create common lambda package #14

Closed chrisemerson closed 1 year ago

chrisemerson commented 1 year ago

Work towards issue #2

Terraform's archive_file provider doesn't support zipping up directories that are symbolic links. Switch out the zip functionality to an external script that is called with the external provider that does support this functionality until archive_file is fixed (https://github.com/hashicorp/terraform-provider-archive/issues/6)

Create a common package (empty at the moment) and include that as a local package in all the other lambdas, ready for use.

Also remove the IDE files (keep changing my mind on whether to commit these or not) and rename the api_route2 module definition to api_route - needed when changing domain name in the past but now the old names have gone I can tidy up.

This adds a dependency on zip being available wherever terraform is run.