-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added cttso pipeline to orcabus stack
For both stateless and stateful
- Loading branch information
Showing
49 changed files
with
420 additions
and
768 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 |
---|---|---|
@@ -0,0 +1,57 @@ | ||
import { | ||
AccountName, | ||
eventBusName, | ||
cttsov2Icav2PipelineIdSSMParameterPath, | ||
icav2CopyBatchUtilityName, | ||
cttsov2Icav2PipelineSfnSSMName, | ||
cttsov2Icav2PipelineSfnSSMArn, | ||
cttsov2Icav2PipelineManagerDynamodbTableName, | ||
icav2AccessTokenSecretNameDev, | ||
icav2AccessTokenSecretNameStg, | ||
icav2AccessTokenSecretNameProd, | ||
cttsov2DynamoDbTableSSMArn, | ||
cttsov2DynamoDbTableSSMName, | ||
} from '../constants'; | ||
import { Cttsov2Icav2PipelineManagerConfig } from '../../lib/workload/stateless/stacks/cttso-v2-pipeline-manager/deploy/stack'; | ||
import { Cttsov2Icav2PipelineTableConfig } from '../../lib/workload/stateful/stacks/cttso-v2-pipeline-dynamo-db/deploy/stack'; | ||
|
||
// Stateful | ||
export const getCttsov2Icav2PipelineTableStackProps = (): Cttsov2Icav2PipelineTableConfig => { | ||
return { | ||
cttsov2_icav2_dynamodb_table_arn_ssm_parameter_path: cttsov2DynamoDbTableSSMArn, | ||
cttsov2_icav2_dynamodb_table_name_ssm_parameter_path: cttsov2DynamoDbTableSSMName, | ||
dynamodb_table_name: cttsov2Icav2PipelineManagerDynamodbTableName, | ||
}; | ||
}; | ||
|
||
// Stateless | ||
export const getCttsov2Icav2PipelineManagerStackProps = ( | ||
n: AccountName | ||
): Cttsov2Icav2PipelineManagerConfig => { | ||
const baseConfig = { | ||
ssm_parameter_list: [cttsov2Icav2PipelineIdSSMParameterPath], | ||
icav2_copy_batch_utility_state_machine_name: icav2CopyBatchUtilityName, | ||
cttso_v2_launch_state_machine_arn_ssm_parameter_path: cttsov2Icav2PipelineSfnSSMArn, | ||
cttso_v2_launch_state_machine_name_ssm_parameter_path: cttsov2Icav2PipelineSfnSSMName, | ||
dynamodb_table_name: cttsov2Icav2PipelineManagerDynamodbTableName, | ||
eventbus_name: eventBusName, | ||
}; | ||
|
||
switch (n) { | ||
case 'beta': | ||
return { | ||
...baseConfig, | ||
icav2_token_secret_id: icav2AccessTokenSecretNameDev, | ||
}; | ||
case 'gamma': | ||
return { | ||
...baseConfig, | ||
icav2_token_secret_id: icav2AccessTokenSecretNameStg, | ||
}; | ||
case 'prod': | ||
return { | ||
...baseConfig, | ||
icav2_token_secret_id: icav2AccessTokenSecretNameProd, | ||
}; | ||
} | ||
}; |
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,32 @@ | ||
import { Construct } from 'constructs'; | ||
import * as dynamodb from 'aws-cdk-lib/aws-dynamodb'; | ||
|
||
export interface DynamodbIcav2PipelineConstructProps { | ||
table_name: string; | ||
} | ||
|
||
export class DynamodbIcav2PipelineConstruct extends Construct { | ||
public readonly table_obj: dynamodb.ITableV2; | ||
public readonly table_name_arn: string; | ||
|
||
constructor(scope: Construct, id: string, props: DynamodbIcav2PipelineConstructProps) { | ||
super(scope, id); | ||
|
||
this.table_obj = new dynamodb.TableV2(this, 'dynamodb_icav2_pipeline_table', { | ||
/* Either a db_uuid or an icav2 analysis id or a portal run id */ | ||
partitionKey: { | ||
name: 'id', | ||
type: dynamodb.AttributeType.STRING, | ||
}, | ||
/* One of 'db_uuid', 'icav2_analysis_id', 'portal_run_id' */ | ||
sortKey: { | ||
name: 'id_type', | ||
type: dynamodb.AttributeType.STRING, | ||
}, | ||
tableName: props.table_name, | ||
}); | ||
|
||
// Set outputs | ||
this.table_name_arn = this.table_obj.tableArn; | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/.gitignore
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/.npmignore
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/README.md
This file was deleted.
Oops, something went wrong.
24 changes: 0 additions & 24 deletions
24
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/bin/deploy.ts
This file was deleted.
Oops, something went wrong.
66 changes: 0 additions & 66 deletions
66
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/cdk.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/constants.ts
This file was deleted.
Oops, something went wrong.
8 changes: 0 additions & 8 deletions
8
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/jest.config.js
This file was deleted.
Oops, something went wrong.
57 changes: 0 additions & 57 deletions
57
lib/workload/stateful/cttso_v2_pipeline_dynamo_db/deploy/lib/cttso-v2-dynamodb-table.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.