Skip to content

Commit

Permalink
fix: tableNameSuffix evaluation for aws-redshift
Browse files Browse the repository at this point in the history
- Check if the generateSuffix is explicitly "true";
- Closes aws#17064
  • Loading branch information
ibrahimcesar authored Oct 28, 2021
1 parent c24af54 commit 0f2366a
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { ClusterProps, executeStatement } from './util';

export async function handler(props: TableHandlerProps & ClusterProps, event: AWSLambda.CloudFormationCustomResourceEvent) {
const tableNamePrefix = props.tableName.prefix;
const tableNameSuffix = props.tableName.generateSuffix ? `${event.RequestId.substring(0, 8)}` : '';
const tableNameSuffix = props.tableName.generateSuffix ? props.tableName.generateSuffix === 'true' : '';
const tableColumns = props.tableColumns;
const clusterProps = props;

Expand Down

0 comments on commit 0f2366a

Please sign in to comment.