Skip to content
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

control-tower : utils.resources.makeManifestDocument does not honor current LZ Security OU naming #639

Open
6 tasks done
DavidChristiansen opened this issue Nov 12, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@DavidChristiansen
Copy link

DavidChristiansen commented Nov 12, 2024

Describe the bug

When attempting to update the landing zone configuration, The manifest document generated does not cater for when the Security OU has been renamed. The correct value is returned in response from get-landing-zone api and should be used.

https://github.com/awslabs/landing-zone-accelerator-on-aws/blob/main/source/packages/%40aws-accelerator/lza-modules/lib/control-tower/utils/resources.ts#L165-L193

To Reproduce

  1. Rename the Security OU
  2. Confirm the landing zone cli returns the new OU name via a call to aws controltower get-landing-zone --landing-zone-identifier <ARN>
  3. Attempt to perform an update to the landing zone (such as enabling a new region)
  4. Pipeline will fail with an error akin to
2024-11-12 15:48:12.823 | error | runner | AWS Control Tower detected '1' validation errors:The given value for the security OrganizationalUnit name must be consistent with the existing Landing Zone. To view the current value for your Landing Zone, use the GetLandingZone API
ValidationException: AWS Control Tower detected '1' validation errors:The given value for the security OrganizationalUnit name must be consistent with the existing Landing Zone. To view the current value for your Landing Zone, use the GetLandingZone API

Expected behavior
The control tower landing zone should be updated using a manifest that derives from the current landing zone configuration, obtained from landingZoneDetails

Please complete the following information about the solution:

  • Version: 1.10
  • Region: N/A
  • Was the solution modified from the version published on this repository? No
  • If the answer to the previous question was yes, are the changes available on GitHub?
  • Have you checked your service quotas for the services this solution uses? n/a
  • Were there any errors in the CloudWatch Logs? Error provided above.
@DavidChristiansen DavidChristiansen added the bug Something isn't working label Nov 12, 2024
@DavidChristiansen DavidChristiansen changed the title control-tower : utils.resources.makeManifestDocument does not cater for customised OU naming control-tower : utils.resources.makeManifestDocument does not cater for current LZ Security OU naming Nov 12, 2024
@DavidChristiansen DavidChristiansen changed the title control-tower : utils.resources.makeManifestDocument does not cater for current LZ Security OU naming control-tower : utils.resources.makeManifestDocument does not honor current LZ Security OU naming Nov 12, 2024
@IklamA
Copy link

IklamA commented Dec 5, 2024

We have the same Issue is there any workaround or fix for it? Thanks

@DavidChristiansen
Copy link
Author

@IklamA Checkout my PR for a fix

@vk0909
Copy link

vk0909 commented Dec 16, 2024

@DavidChristiansen we have same issue and need a fix. Looks like your PR is not merged.

@mehow-juras
Copy link

According to the release docs for v1.11 that was release yesterday it includes:

fix(control-tower): update landingzone fails for non-default security ou name

I'm hoping to test it out asap 🙌🏼

Release link here

@mehow-juras
Copy link

Follow up: so I tested the fix, and yes it allows to have a custom named Control Tower Security OU. In my case this means I no longer have to have a placeholder/empty OU called Security, which is great 👍🏼

However what I'd really like to do is also be able to rename the Security OU again to something else. I presume it's because the name of the Security OU is saved in Control Tower and can't be edited (even through CLI 🥲) so until that s changed we're out of options on the LZA side.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants