现有Terraform提供商的自定义资源?

I've been playing around with writing a custom resource for AWS which combines other resources in a useful way. (It's too complex to achieve effectively with a Terraform module.)

The documentation (starting with the Plugins page) outlines how to create a completely new resource from scratch. However, is it possible to "attach" my custom resource to the AWS provider? This would allow me to:

  • name my resources e.g. aws_foo instead of awscontrib_foo
  • presumably, access AWS credentials already defined for that provider

Yes, the process is outlined here

https://github.com/hashicorp/terraform#developing-terraform

Your customised terraform can be in your own version of the AWS plugin