Skip to content

Commit

Permalink
fix: removing default environment id from get stack synthesizer method (
Browse files Browse the repository at this point in the history
  • Loading branch information
malachi-constant committed Jun 13, 2023
1 parent 34dbe7e commit 0fe3827
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/base/stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ export class BaseStack extends cdk.Stack {
): iam.IManagedPolicy {
const prefix = props.prefix ?? "ddk";
const environmentId = props.environmentId ?? "dev";
const qualifier = props.environmentId ?? "hnb659fds";
const qualifier = props.qualifier ?? "hnb659fds";

const policyStatements = [
new iam.PolicyStatement({
Expand Down Expand Up @@ -119,10 +119,11 @@ export class BaseStack extends cdk.Stack {
* @param props Stack properties.
*/
constructor(scope: Construct, id: string, props: BaseStackProps) {
const environmentId = props.environmentId ? props.environmentId : "dev";
const synthesizer = props.synthesizer
? props.synthesizer
: getStackSynthesizer({ environmentId: environmentId, config: props.config });
: props.environmentId
? getStackSynthesizer({ environmentId: props.environmentId, config: props.config })
: undefined;

super(scope, id, { synthesizer: synthesizer, ...props });

Expand Down

0 comments on commit 0fe3827

Please sign in to comment.