From ad5da82064862cc372d707d501cb2e614fa260b9 Mon Sep 17 00:00:00 2001 From: Felipe Carillo Date: Fri, 22 Mar 2024 11:54:16 -0300 Subject: [PATCH] Fixing the issue with the dynamo stack --- iac/lib/dynamo_stack.ts | 2 +- iac/lib/iac_stack.ts | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/iac/lib/dynamo_stack.ts b/iac/lib/dynamo_stack.ts index 03c08c5..78c1b89 100644 --- a/iac/lib/dynamo_stack.ts +++ b/iac/lib/dynamo_stack.ts @@ -14,7 +14,7 @@ export class DynamoStack extends Construct { removalPolicy: cdk.RemovalPolicy.DESTROY, }); - new CfnOutput(this, "CoilProjectTable", { + new CfnOutput(this, "ProjectTableName", { value: this.project_table.tableName, }); } diff --git a/iac/lib/iac_stack.ts b/iac/lib/iac_stack.ts index 42b15ec..957af1a 100644 --- a/iac/lib/iac_stack.ts +++ b/iac/lib/iac_stack.ts @@ -28,7 +28,7 @@ export class IacStack extends cdk.Stack { } }); - const dynamodb_stack = new DynamoStack(this); + // const dynamodb_stack = new DynamoStack(this); const ENVIROMMENT_VARIABLES: {[key: string]: string} = { "DOMAIN": process.env.DOMAIN || "", @@ -36,8 +36,8 @@ export class IacStack extends cdk.Stack { "AZURE_URL": process.env.AZURE_URL || "", "SECRET_KEY": process.env.SECRET_KEY || "", "DATABASE_URL": process.env.DATABASE_URL || "", - "PROJECT_TABLE": dynamodb_stack.project_table.tableName, - "DYNAMO_URL": dynamodb_stack.project_table.tableArn, + // "PROJECT_TABLE": dynamodb_stack.project_table.tableName, + // "DYNAMO_URL": dynamodb_stack.project_table.tableArn, }; const lambda_stack = new LambdaStack( @@ -47,8 +47,8 @@ export class IacStack extends cdk.Stack { coil_resource ); - for (let function_lambda of lambda_stack.functions_need_dynamodb_access) { - dynamodb_stack.project_table.grantReadWriteData(function_lambda); - } + // for (let function_lambda of lambda_stack.functions_need_dynamodb_access) { + // dynamodb_stack.project_table.grantReadWriteData(function_lambda); + // } } }