-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Revert back to 3.1.4 * Update NODEJS version to 16_X * Update schema definitions; ensure emptyValues are handled for sessionDuration and relayState * Add debug statements * Fix dependency issue * Add exist checks for optional attributes * Add exist checks for create flows as well * Add enforced wait between pages * Switch account assignment to S3 interface * Add Recursive functionality for nested OU's * Working for part 1 of nested OU, provision to any depth * Add optional deployment support for nested OU provisioning * Provide array/string support for resource/action elements in permission sets * Update notification address * Turn on nested OU support * Fix nested OU supported state machine; enable self-sustaining logic for nested OU support * Fix nested OU supported state machine; enable self-sustaining logic for nested OU support * Add debug messages for self healing org move logic * Optimise OU movement logic * Avoid root processing * Remove message de-duplicationId for orgEvents * Add OU traversal up to root * Working version 3.1.5 * Version 3.1.5 * Update permission set schema to be less restrictive * Update behaviour of batch processing to handle throttling * Fix stack dependency such that state machine roles and policies are created prior to state machine; Tune retry and jitter back-off parameters to handle heavier loads * Remove reservedConcurrency setting as we achieve the same effect through FIFO+messae group ID restriction * Reduce page size to 1 for debug; remove reservedConcurrency * Revert page size to 5 * Externalise visibilityTimeout to config parameters * Working version 3.1.5 for scaling * Sync with 3.1.5 * Code comments formatting * named exceptions handling with permission set create update handler * Retry debugging with spaces in JSON.stringify * Set message structure to be JSON * Remove default key * Configurable logging;externalise function logging to config * Fix missing imports * Correct configurable log logic * Updated permissionSetDeletion logic with improved exception handling * Update missing parameter for permission set delete function * Add functionloggingConfig to all lambda environment configs * Add named exception handling to permissionSetAPI handler * Added named exception handling for account assignment API interface; formatted loggers * Re-formatted exception message return for API - permission set * Add named exception handling to link API handler * Update linkManager with named exceptions; update waiters for account assignment operations with named exceptions * Added named exception handling for all core functions * Version 3.1.6 * Cleanup * Update case for functionlogMode
- Loading branch information
1 parent
15ddc93
commit 6911cbe
Showing
71 changed files
with
6,933 additions
and
4,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,63 @@ | ||
/* | ||
Build parameters interface definition | ||
To enable easier sharing between constructs and stacks as well as | ||
synth and deploy validations | ||
*/ | ||
|
||
/** | ||
* Build parameters inteface Used for validating configuration files at | ||
* synthesis time for correctness of data type and data ranges/values | ||
*/ | ||
export interface BuildConfig { | ||
readonly App: string; | ||
readonly Environment: string; | ||
readonly Version: string; | ||
readonly App: string /** Used as prefix for resource and stack names */; | ||
readonly Environment: string /** Used as prefix for resource and stack names */; | ||
readonly Version: string /** Used for aligning with github version */; | ||
readonly PipelineSettings: PipelineSettings; | ||
readonly Parameters: Parameters; | ||
} | ||
|
||
/** Pipeline specific parameters */ | ||
export interface PipelineSettings { | ||
readonly BootstrapQualifier: string; | ||
readonly BootstrapQualifier: string /** CDK bootstrap qualifier to deploy the solution */; | ||
readonly DeploymentAccountId: string; | ||
readonly DeploymentAccountRegion: string; | ||
readonly TargetAccountId: string; | ||
readonly TargetAccountRegion: string; | ||
readonly SSOServiceAccountId: string; | ||
readonly SSOServiceAccountRegion: string; | ||
readonly OrgMainAccountId: string; | ||
readonly RepoArn: string; | ||
readonly RepoBranchName: string; | ||
readonly SynthCommand: string; | ||
readonly RepoArn: string /** AWS CodeCommit source code repository ARN */; | ||
readonly RepoBranchName: string /** AWS CodeCommit source code repository branch */; | ||
readonly SynthCommand: string /** CDK synthesise command */; | ||
} | ||
|
||
/** Solution specific parameters */ | ||
export interface Parameters { | ||
readonly LinksProvisioningMode: string; | ||
readonly PermissionSetProvisioningMode: string; | ||
readonly LinksProvisioningMode: string /** Account assignments provisioning mode - accepted values are one of ["api", "s3"] */; | ||
readonly PermissionSetProvisioningMode: string /** Permission set provisioning mode - accepted values are one of ["api", "s3"] */; | ||
readonly LinkCallerRoleArn: string; | ||
/** | ||
* IAM role arn created in target account with permissions to upload account | ||
* assignments to S3/API interfaces | ||
*/ | ||
readonly PermissionSetCallerRoleArn: string; | ||
readonly NotificationEmail: string; | ||
readonly AccountAssignmentVisibilityTimeoutHours: number; | ||
/** | ||
* IAM role arn created in target account with permissions to upload | ||
* permission sets to S3/API interfaces | ||
*/ | ||
readonly NotificationEmail: string /** Notification email used by solution to send error notifications etc */; | ||
readonly AccountAssignmentVisibilityTimeoutHours: number /** Visibility timeout parameter , used for scaling the solution in large enterprises */; | ||
readonly IsAdUsed: boolean; | ||
readonly DomainName: string; | ||
readonly ImportCurrentSSOConfiguration: boolean; | ||
/** | ||
* Used as switch to do a one-time import of all AWS SSO account assignments | ||
* and permission sets into the solution | ||
*/ | ||
readonly UpgradeFromVersionLessThanV303: boolean; | ||
/** | ||
* Used as switch to do one-time format upgrade of all the account assignments | ||
* that the solution provisioned and persisted in DynamoDB | ||
*/ | ||
readonly SupportNestedOU: boolean; | ||
/** | ||
* Used as switch to determine whether OU traversal is parent level only (or) | ||
* full tree traversal | ||
*/ | ||
readonly FunctionLogMode: string; | ||
/** Used as switch to set the level of lambda function logging the solution should use */ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
/** All helper utilities used by different constructs */ | ||
|
||
import { BuildConfig } from "../build/buildConfig"; | ||
|
||
/** | ||
* Environment specific resource naming function | ||
* | ||
* @param buildConfig | ||
* @param resourcename | ||
* @returns Environment specific resource name | ||
*/ | ||
export function name(buildConfig: BuildConfig, resourcename: string): string { | ||
return buildConfig.Environment + "-" + resourcename; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.