Skip to content

Commit

Permalink
fix: extend control tower landing zone details with enabled flag
Browse files Browse the repository at this point in the history
This property can be toggled on & off via the UI only. So far,
a change in either LZA, or the UI does not cause updating the landing zone.
  • Loading branch information
florian-netlight committed Jan 29, 2025
1 parent c11ceba commit 806ad91
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/packages/@aws-lza/common/functions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ export async function getLandingZoneDetails(
landingZoneDetails.accessLoggingBucketRetentionDays =
value['configurations']['accessLoggingBucket']['retentionDays'];
landingZoneDetails.kmsKeyArn = value['configurations']['kmsKeyArn'];
landingZoneDetails.enableOrganizationTrail = value['enabled'];
break;
}
}
Expand Down
4 changes: 4 additions & 0 deletions source/packages/@aws-lza/common/resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,10 @@ export type ControlTowerLandingZoneDetailsType = {
* The name of Sandbox organization unit (OU)
*/
sandboxOuName?: string;
/**
* Flag indicating Organization level CloudTrail is enable or not.
*/
enableOrganizationTrail?: boolean;
/**
* Flag indicating weather AWS Control Tower sets up AWS account access with IAM Identity Center or not
*/
Expand Down

0 comments on commit 806ad91

Please sign in to comment.