Updates terraform dependencies
Adapts provider code to new Terraform API