I have about 39 AWS accounts that were created outside Terraform stack, but I wa . . .

Oladejo Famuyide:
I have about 39 AWS accounts that were created outside Terraform stack, but I want to import them so as to manage them with Terraform, but I don’t want to delete or recreate them, whats the best way - using terraform import?

ag4ve:
Afaik yes. There’s terraforming to get all your stuff into decently redeploy-able fashion. However, I suspect you’ll want a loop with them in a list or map with attributes or something (which I’m not exactly sure how to import that type of setup off hand).

Alistair Mackay:
If you mean all the infrastructure in all the accounts? That;s going to take weeks to months of man-hours depending on how much infra there is… Terraform importing is currently still a mostly manual process.

Oladejo Famuyide:
@Alistair Mackay Thanks for the response. It is not the infrastructure. It’s just the Top-level organizational resource in creating an AWS account. I already have another Terraform stack that manages the infra.

Oladejo Famuyide:
@ag4ve Thanks for the response. Same thing I am thinking

Haider Ali:
check for terraform import in documentation.