I’m 95% complete of building a terraform provider for Cloudability.
The repo is here: https://github.com/skyscrapr/terraform-provider-cloudability
I built the provider using some terraform modules to test and my own test methods. The modules are here: https://github.com/skyscrapr/terraform-cloudability-modules
Everything works fine. I’m now trying to implement the documented acceptance testing framework and I need to add the AWS provider to my test provider list. But when i do this i start to get errors that I’m not seeing deploying the modules directly. I’ve pushed my current attempt to a branch here: https://github.com/skyscrapr/terraform-provider-cloudability/blob/broken/cloudability/resource_master_account_test.go
I need to include the AWS provider in the test as these resources require it.
I managed to get this to compile by adding the AWS provider to the test provider list here: https://github.com/skyscrapr/terraform-provider-cloudability/blob/broken/cloudability/provider_test.go#L16
But I’m getting errors executing the module. The errors are around access denied issues trying to access s3 bucket to add a policy or delete the bucket.
Is this the right way to approach this?
thanks for any help