Skip to content

Commit

Permalink
replace account number
Browse files Browse the repository at this point in the history
  • Loading branch information
cgodwin1 committed Oct 30, 2024
1 parent b0bb633 commit bc529ea
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 29 deletions.
46 changes: 23 additions & 23 deletions cdk-eregs/bin/cdk-eregs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down Expand Up @@ -69,19 +69,19 @@ 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
// const app = new cdk.App({ defaultStackSynthesizer: customSynthesizer });

// // 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/'));

Expand Down Expand Up @@ -115,19 +115,19 @@ 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
// const app = new cdk.App({ defaultStackSynthesizer: customSynthesizer });

// // 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/'));

Expand Down Expand Up @@ -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();
Expand Down
6 changes: 3 additions & 3 deletions cdk-eregs/cdk.context.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
{
"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",
"us-east-1d",
"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": [
{
Expand Down
6 changes: 3 additions & 3 deletions cdk-eregs/config/environment-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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':
Expand Down

0 comments on commit bc529ea

Please sign in to comment.