Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDK-Validator Error on arm-based build server #101

Open
Zirkonium88 opened this issue Jul 13, 2023 · 1 comment
Open

CDK-Validator Error on arm-based build server #101

Zirkonium88 opened this issue Jul 13, 2023 · 1 comment

Comments

@Zirkonium88
Copy link

Hey guys,

thank you for your efforts.

I used the policy_validation plugin in the following way on a arm-based EC2 (t4g.medium):

# app.py
app = App(
    policy_validation_beta1=[
        cfn_guard.CfnGuardValidator(control_tower_rules_enabled=True)
    ]
)
sample_stack = CdkSampleRepoStack(
    app,
    construct_id="CdkSampleRepoStack",
    stack_name="sample-stack",
    description="Sample Stack.",
    env=Environment(
        account=config.get_value("AccountId"),
        region=config.get_value("AWSRegion"),
    ),
)

The result within my build process looked like this:

{"title": "Validation Report", "pluginReports": [{"summary": {"pluginName": "cdk-validator-cfnguard", "status": "failure", "metadata": {"error": "Validation plugin 'cdk-validator-cfnguard' failed: \n CfnGuardValidator plugin failed processing cfn-guard results.\n Please create an issue [https://github.com/cdklabs/cdk-validator-cfnguard/issues/new\n](https://github.com/cdklabs/cdk-validator-cfnguard/issues/new%5Cn) Rule: ct-apigateway-pr-1.guard\n Error: Error: Command exited with status 2"}}, "violations": []}]}

After several ideas (e.g. ignoring rules), I changed the build server to a t3.medium (x86) and everything worked like a charm.

I think this is an issue of the plugin, as the CDK process worked on both servers.

Thanks again!

@Zirkonium88 Zirkonium88 changed the title CDK-Validator Error on arm-base build server CDK-Validator Error on arm-based build server Jul 13, 2023
@corymhall
Copy link
Contributor

@Zirkonium88 sorry for not replying sooner. It looks like they just recently added release assets for arm. Once that is released we should be able to add support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants