# GMLConverter
Tools for converting between Geodesy XML Site Log and Text Site Log formats

## Deployment

Deploying GeodesyMLToSiteLog to Lambda using terraform.

```bash
cd GeodesyMLToSiteLog

pip install iso3166 --target=.

../install-pyxb.sh
./generate-bindings-for-geodesymltositelog.sh

zip geodesymltositelog_lambda.zip -r \
	geodesymltositelog_lambda.py geodesymltositelog.py \
	geodesymltositelog_bindings.py pyxb/ \
	iso3166/

mv geodesymltositelog_lambda.zip ../auscors-sitelogs-terraform/modules/lambda/

cd ../auscors-sitelogs-terraform

terraform init \
	-backend-config "bucket=auscors-terraform-state-dev" \
	-backend-config "lock_table=auscors-terraform-state-dev" \
	-backend-config "region=ap-southeast-2" \
	-backend-config "key=auscors-sitelogs/dev"

terraform get
terraform plan
terraform apply
```

# GMLConverter
Tools for converting between Geodesy XML Site Log and Text Site Log formats

## Deployment

Deploying GeodesyMLToSiteLog to Lambda using terraform.

```bash
./install-pyxb.sh

cd GeodesyMLToSiteLog

pip install iso3166 --target=.

./generate-bindings-for-geodesymltositelog.sh

zip geodesymltositelog_lambda.zip -r \
	geodesymltositelog_lambda.py geodesymltositelog.py \
	geodesymltositelog_bindings.py ../pyxb/ \
	iso3166/

mv geodesymltositelog_lambda.zip ../auscors-sitelogs-terraform/modules/lambda/

cd ../auscors-sitelogs-terraform

terraform init \
	-backend-config "bucket=auscors-terraform-state-dev" \
	-backend-config "lock_table=auscors-terraform-state-dev" \
	-backend-config "region=ap-southeast-2" \
	-backend-config "key=auscors-sitelogs/dev"

terraform get
terraform plan
terraform apply
```

Modify build instructions to use one copy of pyxb
Modify build instructions to use one copy of pyxb
