Convert data resource to managed


Is it possible to convert resource obtained from data operation to managed resource?

I have obtained a resource information successfully using data block:

 data "aws_dynamodb_table" "us1" {
  provider =

I noticed that in state file all information is identical to managed block except mode is set to “data” and not managed. Is there any way to convert it to managed without having a manual step (i.e. terraform import)?


Albert Sheynkman

Hi @asheynkmantyler,

Currently the only way to associated an existing object with a managed resource instance is the terraform import command.