You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
import { Duration, Stack, StackProps } from 'aws-cdk-lib';
import * as sns from 'aws-cdk-lib/aws-sns';
import * as subs from 'aws-cdk-lib/aws-sns-subscriptions';
import * as sqs from 'aws-cdk-lib/aws-sqs';
import * as s3 from 'aws-cdk-lib/aws-s3';
import { Construct } from 'constructs';
export class CdkLeftShiftStack extends Stack {
constructor(scope: Construct, id: string, props?: StackProps) {
super(scope, id, props);
new s3.Bucket(this, 'MyFirstBucket'); // had to add as workaround
const queue = new sqs.Queue(this, 'CdkLeftShiftQueue', {
visibilityTimeout: Duration.seconds(300)
});
const topic = new sns.Topic(this, 'CdkLeftShiftTopic');
topic.addSubscription(new subs.SqsSubscription(queue));
}
}
If i add a s3 bucket to the CDK code then it works fine.
Exit status code 30
When I use failureSeverities with Severity.LOW it exits with status code 30 and fails
new KicsValidator({
failureSeverities: [
Severity.LOW,
],
});
Is this behaviour of error status code and error intended?
The text was updated successfully, but these errors were encountered:
jatinmehrotra
changed the title
KICS exiting with status 40
KICS exiting with status code 30, 40
Mar 14, 2024
I understood exit code 40,30 is intended but in that case too I was expecting to see failure report to show me MEDIUM/LOW category reports but in my above case, it only shows report status as failure with no reports
I am trying to run KICS against sample-app provided by AWS workshop. https://cdkworkshop.com/20-typescript/20-create-project/100-cdk-init.html
I am seeing errors with ect status code 40 and 30
Exit status code 40
After running KICS it simply exits with
status 40
It also throws status 40 when I try to exclude severties for HIGH categories
Error Message
Error: Command exited with status 40
CDK stack code
If i add a s3 bucket to the CDK code then it works fine.
Exit status code 30
failureSeverities
withSeverity.LOW
it exits with status code 30 and failsIs this behaviour of error status code and error intended?
The text was updated successfully, but these errors were encountered: