-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple OUs with same names support #86
Comments
Hi @kuznetsov17 The issue still persists, I did a workaround using ignore_changes. But I'm happy to know about your solution if you found any. |
Hi, I forked the provider and fixed it by myself: |
Hi, is there a solution to this? |
I'm also interested in this enhancement. @nijdarshan the workaround you presented is ok if you don't plan on using this module for migrating the account to new OU's after the account is created. |
@kuznetsov17 would you be up for contributing your changes back in the form of a pull request? |
Based on the API doc, this probably needs to use OU ID instead of the name, as this is also not unique. https://docs.aws.amazon.com/organizations/latest/APIReference/API_DescribeOrganizationalUnit.html |
I got away from using this provider and resource for account factory but started using the service catalogue instead. I would suggest everyone to use the same at least for prod. There also is a an official AFT module by terraform as well. |
Note, this provider is using AWS Catalog under the hood and it's trying to abstract some of the complexity. AFT might be a total different beast and bring more complexity to the table, but could be a good fit for large Orgs. I quite like this provider and it's easy to use approach. |
Hi there,
I have a trouble in using the provider.
Terraform Version
Terraform v1.1.7
on linux_amd64
Affected Resource(s)
controltower_aws_account
Expected Behavior
We are running the provider in multi-account organization with complex OU structure. As a fact, we have the OIUs with same names on different levels. e.g:
root / Branch-Berlin / Production and root / Branch-Tel-Aviv / Production
In this configuration, I have to provide to Service Catalog the OU parameter in form of: "OU_NAME (ou_Id)":
The expected behavior:
Resource created, next time I run terraform apply it is unchanged.
Actual Behavior
Once I run terraform apply, the terraform intends to update the created object:
Steps to Reproduce
Please list the steps required to reproduce the issue, for example:
terraform apply
The text was updated successfully, but these errors were encountered: