Skip to main content

🧠 AWS EC2 Launch Template auto-provisioning status - prod.logic.yaml🟠🟢

Uses

Test Results 🟢

Generated at: 2026-09-22T15:05:15.980046844Z Open

ResultIdCondition IndexCondition TextRuntime Error
🟢test-aws-cloudformation-logical-id✔️ 199✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:cloudformation:logical-id'))✔️ null
🟢test-aws-cloudformation-stack-id✔️ 299✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:cloudformation:stack-id'))✔️ null
🟢test-aws-cloudformation-stack-name✔️ 399✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:cloudformation:stack-name'))✔️ null
🟢test-eks-managed-node-group-tags✔️ 499✔️ CA10A1__tagsJson__c.hasExact(bytes('eks:cluster-name')) && CA10A1__tagsJson__c.hasExact(bytes('eks:nodegroup-name'))✔️ null
🟢test-aws-servicecatalog-portfolioarn✔️ 599✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:servicecatalog:portfolioArn'))✔️ null
🟢test-aws-servicecatalog-productarn✔️ 699✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:servicecatalog:productArn'))✔️ null
🟢test-aws-servicecatalog-provisioningprincipalarn✔️ 799✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:servicecatalog:provisioningPrincipalArn'))✔️ null
🟢test-aws-servicecatalog-provisionedproductarn✔️ 899✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:servicecatalog:provisionedProductArn'))✔️ null
🟢test-aws-servicecatalog-provisioningartifactidentifier✔️ 999✔️ CA10A1__tagsJson__c.hasExact(bytes('aws:servicecatalog:provisioningArtifactIdentifier'))✔️ null
🟢test-aws-application-migration-service-managed✔️ 1099✔️ CA10A1__tagsJson__c.getExact(bytes('AWSApplicationMigrationServiceManaged')) == 'mgn.amazonaws.com'✔️ null
🟢test-aws-elastic-disaster-recovery-managed✔️ 1199✔️ CA10A1__tagsJson__c.getExact(bytes('AWSElasticDisasterRecoveryManaged')) == 'drs.amazonaws.com'✔️ null
🟢test-no-automatic-provisioning-tags✔️ 1200✔️ otherwise✔️ null
🟢test-eks-single-tag-not-enough✔️ 1200✔️ otherwise✔️ null
🟢test-aws-application-migration-service-unexpected-value✔️ 1200✔️ otherwise✔️ null
🟢test-aws-elastic-disaster-recovery-unexpected-value✔️ 1200✔️ otherwise✔️ null
🟢test-aws-batch-tags-not-supported✔️ 1200✔️ otherwise✔️ null
🟢test-eks-custom-ami-migration-tags-not-supported✔️ 1200✔️ otherwise✔️ null
🟢test-aws-ec2-managed-launch-not-supported✔️ 1200✔️ otherwise✔️ null

Generation Bundle

FileMD5
Open/ce/ca/automated-provisioning/aws-ec2-launch-template/policy.yaml19E6CCA93ED6079612BC1EB21F0B52EE
Open/ce/ca/automated-provisioning/aws-ec2-launch-template/prod.logic.yaml46F18EAE646E6A452E1928DAE5623571
Open/ce/ca/automated-provisioning/aws-ec2-launch-template/test-data.json311FB2A0A57E8EFE9E54AB3F83768DC7

Available Commands

repo-manager policies generate FULL /ce/ca/automated-provisioning/aws-ec2-launch-template/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/automated-provisioning/aws-ec2-launch-template/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/automated-provisioning/aws-ec2-launch-template/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/automated-provisioning/aws-ec2-launch-template/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/automated-provisioning/aws-ec2-launch-template/prod.logic.yaml

Content

Open File

---
inputType: "CA10A1__CaAwsEc2LaunchTemplate__c"
testData:
- file: "test-data.json"
conditions:
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS CloudFormation."
check:
TAG_EXISTS:
name:
BYTES: "aws:cloudformation:logical-id"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS CloudFormation."
check:
TAG_EXISTS:
name:
BYTES: "aws:cloudformation:stack-id"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS CloudFormation."
check:
TAG_EXISTS:
name:
BYTES: "aws:cloudformation:stack-name"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is Amazon EKS."
check:
AND:
args:
- TAG_EXISTS:
name:
BYTES: "eks:cluster-name"
- TAG_EXISTS:
name:
BYTES: "eks:nodegroup-name"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS Service Catalog."
check:
TAG_EXISTS:
name:
BYTES: "aws:servicecatalog:portfolioArn"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS Service Catalog."
check:
TAG_EXISTS:
name:
BYTES: "aws:servicecatalog:productArn"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS Service Catalog."
check:
TAG_EXISTS:
name:
BYTES: "aws:servicecatalog:provisioningPrincipalArn"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS Service Catalog."
check:
TAG_EXISTS:
name:
BYTES: "aws:servicecatalog:provisionedProductArn"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS Service Catalog."
check:
TAG_EXISTS:
name:
BYTES: "aws:servicecatalog:provisioningArtifactIdentifier"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS Application Migration Service."
check:
IS_EQUAL:
left:
TAG_VALUE_TEXT:
name:
BYTES: "AWSApplicationMigrationServiceManaged"
right:
TEXT: "mgn.amazonaws.com"
- status: "COMPLIANT"
currentStateMessage: "The automated provisioning source is AWS Elastic Disaster Recovery."
check:
IS_EQUAL:
left:
TAG_VALUE_TEXT:
name:
BYTES: "AWSElasticDisasterRecoveryManaged"
right:
TEXT: "drs.amazonaws.com"
otherwise:
status: "INCOMPLIANT"
currentStateMessage: "The automated provisioning source is not identified by supported AWS-managed tag signals."
remediationMessage: "Review the automated provisioning source, ownership, and expected management workflow."