diff --git a/cdk-eregs/bin/cdk-eregs.ts b/cdk-eregs/bin/cdk-eregs.ts index f8e31e823..3aa5d0bec 100644 --- a/cdk-eregs/bin/cdk-eregs.ts +++ b/cdk-eregs/bin/cdk-eregs.ts @@ -14,15 +14,15 @@ async function main() { const customSynthesizer = new cdk.DefaultStackSynthesizer({ qualifier: 'one', cloudFormationExecutionRole: - 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-cfn-exec-role-009160033411-us-east-1', + 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-cfn-exec-role-910670052382-us-east-1', deployRoleArn: - 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-deploy-role-009160033411-us-east-1', + 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-deploy-role-910670052382-us-east-1', fileAssetPublishingRoleArn: - 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-file-publishing-role-009160033411-us-east-1', + 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-file-publishing-role-910670052382-us-east-1', imageAssetPublishingRoleArn: - 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-image-publishing-role-009160033411-us-east-1', + 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-image-publishing-role-910670052382-us-east-1', lookupRoleArn: - 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-lookup-role-009160033411-us-east-1', + 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-lookup-role-910670052382-us-east-1', }); const app = new cdk.App({ @@ -69,11 +69,11 @@ main().catch(error => { // // Create custom synthesizer for roles and asset management // const customSynthesizer = new cdk.DefaultStackSynthesizer({ // qualifier: 'one', -// cloudFormationExecutionRole: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-cfn-exec-role-009160033411-us-east-1', -// deployRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-deploy-role-009160033411-us-east-1', -// fileAssetPublishingRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-file-publishing-role-009160033411-us-east-1', -// imageAssetPublishingRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-image-publishing-role-009160033411-us-east-1', -// lookupRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-lookup-role-009160033411-us-east-1', +// cloudFormationExecutionRole: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-cfn-exec-role-910670052382-us-east-1', +// deployRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-deploy-role-910670052382-us-east-1', +// fileAssetPublishingRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-file-publishing-role-910670052382-us-east-1', +// imageAssetPublishingRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-image-publishing-role-910670052382-us-east-1', +// lookupRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-lookup-role-910670052382-us-east-1', // }); // // Initialize the CDK App @@ -81,7 +81,7 @@ main().catch(error => { // // Set up IAM aspects for permissions boundary and path // cdk.Aspects.of(app).add( -// new IamPermissionsBoundaryAspect('arn:aws:iam::009160033411:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy') +// new IamPermissionsBoundaryAspect('arn:aws:iam::910670052382:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy') // ); // cdk.Aspects.of(app).add(new IamPathAspect('/delegatedadmin/developer/')); @@ -115,11 +115,11 @@ main().catch(error => { // // Create custom synthesizer for roles and asset management // const customSynthesizer = new cdk.DefaultStackSynthesizer({ // qualifier: 'one', -// cloudFormationExecutionRole: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-cfn-exec-role-009160033411-us-east-1', -// deployRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-deploy-role-009160033411-us-east-1', -// fileAssetPublishingRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-file-publishing-role-009160033411-us-east-1', -// imageAssetPublishingRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-image-publishing-role-009160033411-us-east-1', -// lookupRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-lookup-role-009160033411-us-east-1', +// cloudFormationExecutionRole: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-cfn-exec-role-910670052382-us-east-1', +// deployRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-deploy-role-910670052382-us-east-1', +// fileAssetPublishingRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-file-publishing-role-910670052382-us-east-1', +// imageAssetPublishingRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-image-publishing-role-910670052382-us-east-1', +// lookupRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-lookup-role-910670052382-us-east-1', // }); // // Initialize the CDK App @@ -127,7 +127,7 @@ main().catch(error => { // // Set up IAM aspects for permissions boundary and path // cdk.Aspects.of(app).add( -// new IamPermissionsBoundaryAspect('arn:aws:iam::009160033411:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy') +// new IamPermissionsBoundaryAspect('arn:aws:iam::910670052382:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy') // ); // cdk.Aspects.of(app).add(new IamPathAspect('/delegatedadmin/developer/')); @@ -158,16 +158,16 @@ main().catch(error => { // //const stage = app.node.tryGetContext('stage') || 'dev'; // const customSynthesizer = new cdk.DefaultStackSynthesizer({ // qualifier: 'one', -// cloudFormationExecutionRole: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-cfn-exec-role-009160033411-us-east-1', -// deployRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-deploy-role-009160033411-us-east-1', -// fileAssetPublishingRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-file-publishing-role-009160033411-us-east-1', -// imageAssetPublishingRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-image-publishing-role-009160033411-us-east-1', -// lookupRoleArn: 'arn:aws:iam::009160033411:role/delegatedadmin/developer/cdk-one-lookup-role-009160033411-us-east-1', +// cloudFormationExecutionRole: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-cfn-exec-role-910670052382-us-east-1', +// deployRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-deploy-role-910670052382-us-east-1', +// fileAssetPublishingRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-file-publishing-role-910670052382-us-east-1', +// imageAssetPublishingRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-image-publishing-role-910670052382-us-east-1', +// lookupRoleArn: 'arn:aws:iam::910670052382:role/delegatedadmin/developer/cdk-one-lookup-role-910670052382-us-east-1', // }); // const app = new cdk.App({defaultStackSynthesizer: customSynthesizer}); // //he permissions boundary aspect // cdk.Aspects.of(app).add( -// new IamPermissionsBoundaryAspect('arn:aws:iam::009160033411:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy') +// new IamPermissionsBoundaryAspect('arn:aws:iam::910670052382:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy') // ); // cdk.Aspects.of(app).add(new IamPathAspect('/delegatedadmin/developer/')); // app.synth(); diff --git a/cdk-eregs/cdk.context.json b/cdk-eregs/cdk.context.json index e14da6a17..6e307106c 100644 --- a/cdk-eregs/cdk.context.json +++ b/cdk-eregs/cdk.context.json @@ -1,5 +1,5 @@ { - "availability-zones:account=009160033411:region=us-east-1": [ + "availability-zones:account=910670052382:region=us-east-1": [ "us-east-1a", "us-east-1b", "us-east-1c", @@ -7,10 +7,10 @@ "us-east-1e", "us-east-1f" ], - "vpc-provider:account=009160033411:filter.tag:Name=macfcee-east-dev:region=us-east-1:returnAsymmetricSubnets=true": { + "vpc-provider:account=910670052382:filter.tag:Name=macfcee-east-dev:region=us-east-1:returnAsymmetricSubnets=true": { "vpcId": "vpc-024f6f61699e6cd45", "vpcCidrBlock": "10.152.48.0/23", - "ownerAccountId": "009160033411", + "ownerAccountId": "910670052382", "availabilityZones": [], "subnetGroups": [ { diff --git a/cdk-eregs/config/environment-config.ts b/cdk-eregs/config/environment-config.ts index 117579367..e0dafdaac 100644 --- a/cdk-eregs/config/environment-config.ts +++ b/cdk-eregs/config/environment-config.ts @@ -28,8 +28,8 @@ export class EnvironmentConfig { // Set IAM path and permissions boundary ARN based on the environment this.iamPath = this.isExperimental ? '/delegatedadmin/developer/' : '/delegatedadmin/developer/'; this.iamPermissionsBoundaryArn = this.isExperimental - ? 'arn:aws:iam::009160033411:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy' - : 'arn:aws:iam::009160033411:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy'; + ? 'arn:aws:iam::910670052382:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy' + : 'arn:aws:iam::910670052382:policy/cms-cloud-admin/ct-ado-poweruser-permissions-boundary-policy'; } // Determine the environment based on the branch name @@ -52,7 +52,7 @@ export class EnvironmentConfig { private getAccountAndRegion(): { accountId: string; region: string } { switch (this.getEnvironmentFromBranch()) { case 'dev': - return { accountId: '009160033411', region: 'us-east-1' }; + return { accountId: '910670052382', region: 'us-east-1' }; case 'val': return { accountId: '222222222222', region: 'us-east-1' }; case 'prod':