Skip to content

Do Not Implement Import Support for Exclusive Resource Types#

Summary: Exclusive resource types should not support import because import can give the wrong impression about what the resource manages and can lead users into choosing exclusive behavior by accident. Created: 2026-05-04 Author: @taruntej-a


Background#

Exclusive resource types manage a whole set of relationships, not just one remote object. Their job is to make the full set of relationships in AWS match the Terraform configuration by adding missing relationships and removing ones that are not configured. This pattern is described in Exclusive Relationship Management Resources.

In most cases, import is understood as a way to bring an existing remote object under Terraform management. For exclusive resources, import would do more than that because these resources manage a whole relationship set, not a single object.

Decision#

The Terraform AWS Provider will not implement import support for exclusive resource types.

This applies both to newer resources with the _exclusive suffix and to older resource types with the same behavior.

Importing one of these resources would not just record existing infrastructure in Terraform state. It would also opt the user into a model that can add or remove relationships in ways they may not expect.

That creates real risk. A user may think they have only adopted existing infrastructure, but the next apply could remove relationships that are not managed in the configuration. Because of that risk, import support should not be added for exclusive resource types.

Consequences/Future Work#

  • Contributors should not add import support to exclusive resource types, and existing or future work on resource identity for these resources should not be used to enable import.
  • Older exclusive resources without the _exclusive suffix should be documented clearly so their behavior is not mistaken for standard attachment resources.