idealo / terraform-provider-controltower

Use AWS Control Tower from Terraform
https://registry.terraform.io/providers/idealo/controltower
Mozilla Public License 2.0
21 stars 9 forks source link

Recommendations for importing existing accounts #163

Closed mdrdannyr closed 1 year ago

mdrdannyr commented 1 year ago

Hi!

First of all, thanks for your work on this provider! It's pretty much exactly what i've been looking for.

I have successfully got things up and running and have created a test account using this.

The next steps we had in mind were to import all our current AWS Accounts into the terraform state.

I can see that there's no support for terraform import commands on the account resource. I was wondering what options we could use:

1) Perhaps a manual terraform state file update? (If someone has done this before, would love to understand the steps taken) 2) Create support in the account resource for importing existing resources (Seems like this would be preferable, but i assume will take some time and if we can manually import, then may not be worth the development time?)

Would appreciate your thoughts on this

Thanks, Danny

mdrdannyr commented 1 year ago

Above was a mistake.

Importing works great

terraform import 'controltower_aws_account.' ''