--- inputType: "CA10__CaAwsInstance__c" testData: - file: "test-data.json" importExtracts: - file: "/types/CA10__CaAwsInstance__c/object.extracts.yaml" conditions: - status: "INCOMPLIANT" currentStateMessage: "IMDSv2 is not enabled for the EC2 instance." remediationMessage: "Enable IMDSv2 for the EC2 instance." check: IS_EQUAL: left: EXTRACT: "CA10__metadataState__c" right: TEXT: "pending" - status: "INCOMPLIANT" currentStateMessage: "IMDSv2 is not required for the EC2 instance." remediationMessage: "Require IMDSv2 for the EC2 instance." check: IS_EQUAL: left: EXTRACT: "CA10__metadataHttpTokens__c" right: TEXT: "optional" - status: "COMPLIANT" currentStateMessage: "The EC2 instance metadata service requires IMDSv2." check: AND: args: - IS_EQUAL: left: EXTRACT: "CA10__metadataState__c" right: TEXT: "applied" - IS_EQUAL: left: EXTRACT: "CA10__metadataHttpTokens__c" right: TEXT: "required" otherwise: status: "UNDETERMINED" currentStateMessage: "Unexpected values in the fields."