With the suggestion in #110 that we allow records to update whenever the database instance is redeployed it makes sense to migrate this functionality to a Lambda and let it run on a regular trigger instead. This helps remove reliance on EC2 instances and a Lambda is a suitable replacement implementation.
Implementation notes
This will require a new AWS Lambda as well as a Terraform module to deploy it which can be used by the Terraform configuration in cisagov/cyhy_amis. I believe we should implement #110 as part of this unit of work to simplify things (and migrate to Python 3).
Acceptance criteria
[ ] GNIS data import is implemented in an AWS Lambda.
[ ] The Lambda is able to be deployed as part of the Terrform configuration of the CyHy system.
💡 Summary
We should use an AWS Lambda to import GNIS data.
Motivation and context
With the suggestion in #110 that we allow records to update whenever the database instance is redeployed it makes sense to migrate this functionality to a Lambda and let it run on a regular trigger instead. This helps remove reliance on EC2 instances and a Lambda is a suitable replacement implementation.
Implementation notes
This will require a new AWS Lambda as well as a Terraform module to deploy it which can be used by the Terraform configuration in cisagov/cyhy_amis. I believe we should implement #110 as part of this unit of work to simplify things (and migrate to Python 3).
Acceptance criteria