@intentius/chant-lexicon-aws 0.124.98 → 0.124.99
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions/dynamodb.d.ts +0 -1
- package/dist/actions/ecr.d.ts +0 -1
- package/dist/actions/ecs.d.ts +0 -1
- package/dist/actions/iam.d.ts +0 -1
- package/dist/actions/index.d.ts +0 -1
- package/dist/actions/lambda.d.ts +0 -1
- package/dist/actions/logs.d.ts +0 -1
- package/dist/actions/s3.d.ts +0 -1
- package/dist/actions/sns.d.ts +0 -1
- package/dist/actions/sqs.d.ts +0 -1
- package/dist/agentcore/trace-fetch.d.ts +0 -1
- package/dist/agentcore/trace-render.d.ts +0 -1
- package/dist/ambient.d.ts +0 -1
- package/dist/api/credential-chain.d.ts +0 -1
- package/dist/api/read-client.d.ts +0 -1
- package/dist/api/signing.d.ts +0 -1
- package/dist/behaviour-kinds.d.ts +0 -1
- package/dist/caller-identity.d.ts +0 -1
- package/dist/capabilities/mapping.json +148 -148
- package/dist/capabilities/pack.d.ts +0 -1
- package/dist/codegen/docs-cli.d.ts +0 -1
- package/dist/codegen/docs.d.ts +0 -1
- package/dist/codegen/enum-overlay.d.ts +0 -1
- package/dist/codegen/enum-overlay.json +1841 -1841
- package/dist/codegen/extensions.d.ts +0 -1
- package/dist/codegen/fallback.d.ts +0 -1
- package/dist/codegen/generate-cli.d.ts +0 -1
- package/dist/codegen/generate-lexicon.d.ts +0 -1
- package/dist/codegen/generate-typescript.d.ts +0 -1
- package/dist/codegen/generate.d.ts +0 -1
- package/dist/codegen/naming.d.ts +0 -1
- package/dist/codegen/package.d.ts +0 -1
- package/dist/codegen/patches.d.ts +0 -1
- package/dist/codegen/property-overlay.d.ts +0 -1
- package/dist/codegen/property-overlay.json +2 -2
- package/dist/codegen/sam.d.ts +0 -1
- package/dist/codegen/typecheck.d.ts +0 -1
- package/dist/codegen/versions.d.ts +0 -1
- package/dist/components/__tests__/mock-cloud-executor.d.ts +0 -1
- package/dist/components/apply.d.ts +0 -1
- package/dist/components/builders.d.ts +0 -1
- package/dist/components/capability-plugin.d.ts +0 -1
- package/dist/components/cfn-adopt-run.d.ts +0 -1
- package/dist/components/cfn-adopt.d.ts +0 -1
- package/dist/components/cfn-imports.d.ts +0 -1
- package/dist/components/cloud-executor.d.ts +0 -1
- package/dist/components/config-bom.d.ts +0 -1
- package/dist/components/host-delivery.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/components/job-submission.d.ts +0 -1
- package/dist/components/publish.d.ts +0 -1
- package/dist/components/safety.d.ts +0 -1
- package/dist/components/wait-aws.d.ts +0 -1
- package/dist/composites/agentcore-agent.d.ts +0 -1
- package/dist/composites/agentcore-trust-policy.d.ts +0 -1
- package/dist/composites/alb-shared.d.ts +0 -1
- package/dist/composites/bucket-deployment.d.ts +0 -1
- package/dist/composites/catalog.d.ts +0 -1
- package/dist/composites/dynamodb-table.d.ts +0 -1
- package/dist/composites/ec2-instance-bundle.d.ts +0 -1
- package/dist/composites/ec2-instance-role.d.ts +0 -1
- package/dist/composites/ecr-repository.d.ts +0 -1
- package/dist/composites/ecs-trust-policy.d.ts +0 -1
- package/dist/composites/efs-with-access-point.d.ts +0 -1
- package/dist/composites/eks-cluster.d.ts +0 -1
- package/dist/composites/fargate-alb.d.ts +0 -1
- package/dist/composites/fargate-service.d.ts +0 -1
- package/dist/composites/index.d.ts +0 -1
- package/dist/composites/lambda-api.d.ts +0 -1
- package/dist/composites/lambda-dynamodb.d.ts +0 -1
- package/dist/composites/lambda-eventbridge.d.ts +0 -1
- package/dist/composites/lambda-function.d.ts +0 -1
- package/dist/composites/lambda-s3.d.ts +0 -1
- package/dist/composites/lambda-sns.d.ts +0 -1
- package/dist/composites/lambda-sqs.d.ts +0 -1
- package/dist/composites/landing-zone.d.ts +0 -1
- package/dist/composites/latency-entry.d.ts +0 -1
- package/dist/composites/microvm-app.d.ts +0 -1
- package/dist/composites/minimal-vpc.d.ts +0 -1
- package/dist/composites/monitoring-stack.d.ts +0 -1
- package/dist/composites/nlb-service.d.ts +0 -1
- package/dist/composites/rds-instance.d.ts +0 -1
- package/dist/composites/scheduled-lambda.d.ts +0 -1
- package/dist/composites/solr-fargate-service.d.ts +0 -1
- package/dist/composites/step-functions-workflow.d.ts +0 -1
- package/dist/composites/vpc-default.d.ts +0 -1
- package/dist/condition.d.ts +0 -1
- package/dist/coverage.d.ts +0 -1
- package/dist/deep-observe.d.ts +0 -1
- package/dist/deep-topology.d.ts +0 -1
- package/dist/default-tags.d.ts +0 -1
- package/dist/defaults.d.ts +0 -1
- package/dist/dependencies.d.ts +0 -1
- package/dist/detect.d.ts +0 -1
- package/dist/disruption.d.ts +0 -1
- package/dist/effect-receipt-row.d.ts +0 -1
- package/dist/generated/index.d.ts +0 -1
- package/dist/generated/runtime.d.ts +0 -1
- package/dist/governance.d.ts +0 -1
- package/dist/health.d.ts +0 -1
- package/dist/identity-observe.d.ts +0 -1
- package/dist/import/generator.d.ts +0 -1
- package/dist/import/live-export.d.ts +0 -1
- package/dist/import/parser.d.ts +0 -1
- package/dist/importable.d.ts +0 -1
- package/dist/index-identity.d.ts +0 -1
- package/dist/index-import.d.ts +0 -1
- package/dist/index.d.ts +0 -1
- package/dist/integrity.json +2 -2
- package/dist/intrinsics.d.ts +0 -1
- package/dist/lint/audit-catalog.d.ts +0 -1
- package/dist/lint/audit-lineage.d.ts +0 -1
- package/dist/lint/post-synth/cf-refs.d.ts +0 -1
- package/dist/lint/post-synth/cor020.d.ts +0 -1
- package/dist/lint/post-synth/ext001.d.ts +0 -1
- package/dist/lint/post-synth/index.d.ts +0 -1
- package/dist/lint/post-synth/waw010.d.ts +0 -1
- package/dist/lint/post-synth/waw011.d.ts +0 -1
- package/dist/lint/post-synth/waw013.d.ts +0 -1
- package/dist/lint/post-synth/waw014.d.ts +0 -1
- package/dist/lint/post-synth/waw015.d.ts +0 -1
- package/dist/lint/post-synth/waw016.d.ts +0 -1
- package/dist/lint/post-synth/waw017.d.ts +0 -1
- package/dist/lint/post-synth/waw018.d.ts +0 -1
- package/dist/lint/post-synth/waw019.d.ts +0 -1
- package/dist/lint/post-synth/waw020.d.ts +0 -1
- package/dist/lint/post-synth/waw021.d.ts +0 -1
- package/dist/lint/post-synth/waw022.d.ts +0 -1
- package/dist/lint/post-synth/waw023.d.ts +0 -1
- package/dist/lint/post-synth/waw024.d.ts +0 -1
- package/dist/lint/post-synth/waw025.d.ts +0 -1
- package/dist/lint/post-synth/waw026.d.ts +0 -1
- package/dist/lint/post-synth/waw027.d.ts +0 -1
- package/dist/lint/post-synth/waw028.d.ts +0 -1
- package/dist/lint/post-synth/waw029.d.ts +0 -1
- package/dist/lint/post-synth/waw030.d.ts +0 -1
- package/dist/lint/post-synth/waw031.d.ts +0 -1
- package/dist/lint/post-synth/waw032.d.ts +0 -1
- package/dist/lint/post-synth/waw033.d.ts +0 -1
- package/dist/lint/post-synth/waw034.d.ts +0 -1
- package/dist/lint/post-synth/waw035.d.ts +0 -1
- package/dist/lint/post-synth/waw036.d.ts +0 -1
- package/dist/lint/post-synth/waw037.d.ts +0 -1
- package/dist/lint/post-synth/waw038.d.ts +0 -1
- package/dist/lint/post-synth/waw039.d.ts +0 -1
- package/dist/lint/post-synth/waw040.d.ts +0 -1
- package/dist/lint/post-synth/waw041.d.ts +0 -1
- package/dist/lint/post-synth/waw042.d.ts +0 -1
- package/dist/lint/post-synth/waw043.d.ts +0 -1
- package/dist/lint/post-synth/waw044.d.ts +0 -1
- package/dist/lint/post-synth/waw045.d.ts +0 -1
- package/dist/lint/post-synth/waw046.d.ts +0 -1
- package/dist/lint/post-synth/waw047.d.ts +0 -1
- package/dist/lint/post-synth/waw048.d.ts +0 -1
- package/dist/lint/post-synth/waw049.d.ts +0 -1
- package/dist/lint/post-synth/waw050.d.ts +0 -1
- package/dist/lint/post-synth/waw051.d.ts +0 -1
- package/dist/lint/post-synth/waw052.d.ts +0 -1
- package/dist/lint/post-synth/waw053.d.ts +0 -1
- package/dist/lint/post-synth/waw054.d.ts +0 -1
- package/dist/lint/post-synth/waw055.d.ts +0 -1
- package/dist/lint/post-synth/waw056.d.ts +0 -1
- package/dist/lint/post-synth/waw057.d.ts +0 -1
- package/dist/lint/post-synth/waw058.d.ts +0 -1
- package/dist/lint/post-synth/waw059.d.ts +0 -1
- package/dist/lint/post-synth/waw060.d.ts +0 -1
- package/dist/lint/post-synth/waw061.d.ts +0 -1
- package/dist/lint/post-synth/waw062.d.ts +0 -1
- package/dist/lint/post-synth/waw063.d.ts +0 -1
- package/dist/lint/post-synth/waw064.d.ts +0 -1
- package/dist/lint/post-synth/waw065.d.ts +0 -1
- package/dist/lint/post-synth/waw066.d.ts +0 -1
- package/dist/lint/post-synth/waw067.d.ts +0 -1
- package/dist/lint/post-synth/waw068.d.ts +0 -1
- package/dist/lint/post-synth/waw069.d.ts +0 -1
- package/dist/lint/post-synth/waw070.d.ts +0 -1
- package/dist/lint/post-synth/waw071.d.ts +0 -1
- package/dist/lint/rules/hardcoded-region.d.ts +0 -1
- package/dist/lint/rules/iam-wildcard.d.ts +0 -1
- package/dist/lint/rules/index.d.ts +0 -1
- package/dist/lint/rules/s3-encryption.d.ts +0 -1
- package/dist/listed-types.d.ts +0 -1
- package/dist/live-attrs.d.ts +0 -1
- package/dist/lsp/completions.d.ts +0 -1
- package/dist/lsp/hover.d.ts +0 -1
- package/dist/manifest.json +1 -1
- package/dist/mapping.d.ts +0 -1
- package/dist/nested-stack.d.ts +0 -1
- package/dist/op/activities/aws-apply.d.ts +0 -1
- package/dist/op/activities/floci.d.ts +0 -1
- package/dist/op/activities/index.d.ts +0 -1
- package/dist/op/builders.d.ts +0 -1
- package/dist/ownership.d.ts +0 -1
- package/dist/package-cli.d.ts +0 -1
- package/dist/parameter.d.ts +0 -1
- package/dist/plugin.d.ts +0 -1
- package/dist/properties.d.ts +0 -1
- package/dist/pseudo.d.ts +0 -1
- package/dist/receipt-store.d.ts +0 -1
- package/dist/reference-catalog.d.ts +0 -1
- package/dist/serializer.d.ts +0 -1
- package/dist/spec/fetch.d.ts +0 -1
- package/dist/spec/parse.d.ts +0 -1
- package/dist/spec/pin.d.ts +0 -1
- package/dist/spec/pinned-types.json +1856 -1856
- package/dist/stack-errors.d.ts +0 -1
- package/dist/taggable.d.ts +0 -1
- package/dist/teardown.d.ts +0 -1
- package/dist/template-sections.d.ts +0 -1
- package/dist/template-transform.d.ts +0 -1
- package/dist/validate-cli.d.ts +0 -1
- package/dist/validate.d.ts +0 -1
- package/dist/workspace-member.d.ts +0 -1
- package/package.json +3 -4
- package/dist/actions/dynamodb.d.ts.map +0 -1
- package/dist/actions/ecr.d.ts.map +0 -1
- package/dist/actions/ecs.d.ts.map +0 -1
- package/dist/actions/iam.d.ts.map +0 -1
- package/dist/actions/index.d.ts.map +0 -1
- package/dist/actions/lambda.d.ts.map +0 -1
- package/dist/actions/logs.d.ts.map +0 -1
- package/dist/actions/s3.d.ts.map +0 -1
- package/dist/actions/sns.d.ts.map +0 -1
- package/dist/actions/sqs.d.ts.map +0 -1
- package/dist/agentcore/trace-fetch.d.ts.map +0 -1
- package/dist/agentcore/trace-render.d.ts.map +0 -1
- package/dist/ambient.d.ts.map +0 -1
- package/dist/api/credential-chain.d.ts.map +0 -1
- package/dist/api/read-client.d.ts.map +0 -1
- package/dist/api/signing.d.ts.map +0 -1
- package/dist/behaviour-kinds.d.ts.map +0 -1
- package/dist/caller-identity.d.ts.map +0 -1
- package/dist/capabilities/pack.d.ts.map +0 -1
- package/dist/codegen/docs-cli.d.ts.map +0 -1
- package/dist/codegen/docs.d.ts.map +0 -1
- package/dist/codegen/enum-overlay.d.ts.map +0 -1
- package/dist/codegen/extensions.d.ts.map +0 -1
- package/dist/codegen/fallback.d.ts.map +0 -1
- package/dist/codegen/generate-cli.d.ts.map +0 -1
- package/dist/codegen/generate-lexicon.d.ts.map +0 -1
- package/dist/codegen/generate-typescript.d.ts.map +0 -1
- package/dist/codegen/generate.d.ts.map +0 -1
- package/dist/codegen/naming.d.ts.map +0 -1
- package/dist/codegen/package.d.ts.map +0 -1
- package/dist/codegen/patches.d.ts.map +0 -1
- package/dist/codegen/property-overlay.d.ts.map +0 -1
- package/dist/codegen/sam.d.ts.map +0 -1
- package/dist/codegen/typecheck.d.ts.map +0 -1
- package/dist/codegen/versions.d.ts.map +0 -1
- package/dist/components/__tests__/mock-cloud-executor.d.ts.map +0 -1
- package/dist/components/apply.d.ts.map +0 -1
- package/dist/components/builders.d.ts.map +0 -1
- package/dist/components/capability-plugin.d.ts.map +0 -1
- package/dist/components/cfn-adopt-run.d.ts.map +0 -1
- package/dist/components/cfn-adopt.d.ts.map +0 -1
- package/dist/components/cfn-imports.d.ts.map +0 -1
- package/dist/components/cloud-executor.d.ts.map +0 -1
- package/dist/components/config-bom.d.ts.map +0 -1
- package/dist/components/host-delivery.d.ts.map +0 -1
- package/dist/components/index.d.ts.map +0 -1
- package/dist/components/job-submission.d.ts.map +0 -1
- package/dist/components/publish.d.ts.map +0 -1
- package/dist/components/safety.d.ts.map +0 -1
- package/dist/components/wait-aws.d.ts.map +0 -1
- package/dist/composites/agentcore-agent.d.ts.map +0 -1
- package/dist/composites/agentcore-trust-policy.d.ts.map +0 -1
- package/dist/composites/alb-shared.d.ts.map +0 -1
- package/dist/composites/bucket-deployment.d.ts.map +0 -1
- package/dist/composites/catalog.d.ts.map +0 -1
- package/dist/composites/dynamodb-table.d.ts.map +0 -1
- package/dist/composites/ec2-instance-bundle.d.ts.map +0 -1
- package/dist/composites/ec2-instance-role.d.ts.map +0 -1
- package/dist/composites/ecr-repository.d.ts.map +0 -1
- package/dist/composites/ecs-trust-policy.d.ts.map +0 -1
- package/dist/composites/efs-with-access-point.d.ts.map +0 -1
- package/dist/composites/eks-cluster.d.ts.map +0 -1
- package/dist/composites/fargate-alb.d.ts.map +0 -1
- package/dist/composites/fargate-service.d.ts.map +0 -1
- package/dist/composites/index.d.ts.map +0 -1
- package/dist/composites/lambda-api.d.ts.map +0 -1
- package/dist/composites/lambda-dynamodb.d.ts.map +0 -1
- package/dist/composites/lambda-eventbridge.d.ts.map +0 -1
- package/dist/composites/lambda-function.d.ts.map +0 -1
- package/dist/composites/lambda-s3.d.ts.map +0 -1
- package/dist/composites/lambda-sns.d.ts.map +0 -1
- package/dist/composites/lambda-sqs.d.ts.map +0 -1
- package/dist/composites/landing-zone.d.ts.map +0 -1
- package/dist/composites/latency-entry.d.ts.map +0 -1
- package/dist/composites/microvm-app.d.ts.map +0 -1
- package/dist/composites/minimal-vpc.d.ts.map +0 -1
- package/dist/composites/monitoring-stack.d.ts.map +0 -1
- package/dist/composites/nlb-service.d.ts.map +0 -1
- package/dist/composites/rds-instance.d.ts.map +0 -1
- package/dist/composites/scheduled-lambda.d.ts.map +0 -1
- package/dist/composites/solr-fargate-service.d.ts.map +0 -1
- package/dist/composites/step-functions-workflow.d.ts.map +0 -1
- package/dist/composites/vpc-default.d.ts.map +0 -1
- package/dist/condition.d.ts.map +0 -1
- package/dist/coverage.d.ts.map +0 -1
- package/dist/deep-observe.d.ts.map +0 -1
- package/dist/deep-topology.d.ts.map +0 -1
- package/dist/default-tags.d.ts.map +0 -1
- package/dist/defaults.d.ts.map +0 -1
- package/dist/dependencies.d.ts.map +0 -1
- package/dist/detect.d.ts.map +0 -1
- package/dist/disruption.d.ts.map +0 -1
- package/dist/effect-receipt-row.d.ts.map +0 -1
- package/dist/generated/index.d.ts.map +0 -1
- package/dist/generated/runtime.d.ts.map +0 -1
- package/dist/governance.d.ts.map +0 -1
- package/dist/health.d.ts.map +0 -1
- package/dist/identity-observe.d.ts.map +0 -1
- package/dist/import/generator.d.ts.map +0 -1
- package/dist/import/live-export.d.ts.map +0 -1
- package/dist/import/parser.d.ts.map +0 -1
- package/dist/importable.d.ts.map +0 -1
- package/dist/index-identity.d.ts.map +0 -1
- package/dist/index-import.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/intrinsics.d.ts.map +0 -1
- package/dist/lint/audit-catalog.d.ts.map +0 -1
- package/dist/lint/audit-lineage.d.ts.map +0 -1
- package/dist/lint/post-synth/cf-refs.d.ts.map +0 -1
- package/dist/lint/post-synth/cor020.d.ts.map +0 -1
- package/dist/lint/post-synth/ext001.d.ts.map +0 -1
- package/dist/lint/post-synth/index.d.ts.map +0 -1
- package/dist/lint/post-synth/waw010.d.ts.map +0 -1
- package/dist/lint/post-synth/waw011.d.ts.map +0 -1
- package/dist/lint/post-synth/waw013.d.ts.map +0 -1
- package/dist/lint/post-synth/waw014.d.ts.map +0 -1
- package/dist/lint/post-synth/waw015.d.ts.map +0 -1
- package/dist/lint/post-synth/waw016.d.ts.map +0 -1
- package/dist/lint/post-synth/waw017.d.ts.map +0 -1
- package/dist/lint/post-synth/waw018.d.ts.map +0 -1
- package/dist/lint/post-synth/waw019.d.ts.map +0 -1
- package/dist/lint/post-synth/waw020.d.ts.map +0 -1
- package/dist/lint/post-synth/waw021.d.ts.map +0 -1
- package/dist/lint/post-synth/waw022.d.ts.map +0 -1
- package/dist/lint/post-synth/waw023.d.ts.map +0 -1
- package/dist/lint/post-synth/waw024.d.ts.map +0 -1
- package/dist/lint/post-synth/waw025.d.ts.map +0 -1
- package/dist/lint/post-synth/waw026.d.ts.map +0 -1
- package/dist/lint/post-synth/waw027.d.ts.map +0 -1
- package/dist/lint/post-synth/waw028.d.ts.map +0 -1
- package/dist/lint/post-synth/waw029.d.ts.map +0 -1
- package/dist/lint/post-synth/waw030.d.ts.map +0 -1
- package/dist/lint/post-synth/waw031.d.ts.map +0 -1
- package/dist/lint/post-synth/waw032.d.ts.map +0 -1
- package/dist/lint/post-synth/waw033.d.ts.map +0 -1
- package/dist/lint/post-synth/waw034.d.ts.map +0 -1
- package/dist/lint/post-synth/waw035.d.ts.map +0 -1
- package/dist/lint/post-synth/waw036.d.ts.map +0 -1
- package/dist/lint/post-synth/waw037.d.ts.map +0 -1
- package/dist/lint/post-synth/waw038.d.ts.map +0 -1
- package/dist/lint/post-synth/waw039.d.ts.map +0 -1
- package/dist/lint/post-synth/waw040.d.ts.map +0 -1
- package/dist/lint/post-synth/waw041.d.ts.map +0 -1
- package/dist/lint/post-synth/waw042.d.ts.map +0 -1
- package/dist/lint/post-synth/waw043.d.ts.map +0 -1
- package/dist/lint/post-synth/waw044.d.ts.map +0 -1
- package/dist/lint/post-synth/waw045.d.ts.map +0 -1
- package/dist/lint/post-synth/waw046.d.ts.map +0 -1
- package/dist/lint/post-synth/waw047.d.ts.map +0 -1
- package/dist/lint/post-synth/waw048.d.ts.map +0 -1
- package/dist/lint/post-synth/waw049.d.ts.map +0 -1
- package/dist/lint/post-synth/waw050.d.ts.map +0 -1
- package/dist/lint/post-synth/waw051.d.ts.map +0 -1
- package/dist/lint/post-synth/waw052.d.ts.map +0 -1
- package/dist/lint/post-synth/waw053.d.ts.map +0 -1
- package/dist/lint/post-synth/waw054.d.ts.map +0 -1
- package/dist/lint/post-synth/waw055.d.ts.map +0 -1
- package/dist/lint/post-synth/waw056.d.ts.map +0 -1
- package/dist/lint/post-synth/waw057.d.ts.map +0 -1
- package/dist/lint/post-synth/waw058.d.ts.map +0 -1
- package/dist/lint/post-synth/waw059.d.ts.map +0 -1
- package/dist/lint/post-synth/waw060.d.ts.map +0 -1
- package/dist/lint/post-synth/waw061.d.ts.map +0 -1
- package/dist/lint/post-synth/waw062.d.ts.map +0 -1
- package/dist/lint/post-synth/waw063.d.ts.map +0 -1
- package/dist/lint/post-synth/waw064.d.ts.map +0 -1
- package/dist/lint/post-synth/waw065.d.ts.map +0 -1
- package/dist/lint/post-synth/waw066.d.ts.map +0 -1
- package/dist/lint/post-synth/waw067.d.ts.map +0 -1
- package/dist/lint/post-synth/waw068.d.ts.map +0 -1
- package/dist/lint/post-synth/waw069.d.ts.map +0 -1
- package/dist/lint/post-synth/waw070.d.ts.map +0 -1
- package/dist/lint/post-synth/waw071.d.ts.map +0 -1
- package/dist/lint/rules/hardcoded-region.d.ts.map +0 -1
- package/dist/lint/rules/iam-wildcard.d.ts.map +0 -1
- package/dist/lint/rules/index.d.ts.map +0 -1
- package/dist/lint/rules/s3-encryption.d.ts.map +0 -1
- package/dist/listed-types.d.ts.map +0 -1
- package/dist/live-attrs.d.ts.map +0 -1
- package/dist/lsp/completions.d.ts.map +0 -1
- package/dist/lsp/hover.d.ts.map +0 -1
- package/dist/mapping.d.ts.map +0 -1
- package/dist/nested-stack.d.ts.map +0 -1
- package/dist/op/activities/aws-apply.d.ts.map +0 -1
- package/dist/op/activities/floci.d.ts.map +0 -1
- package/dist/op/activities/index.d.ts.map +0 -1
- package/dist/op/builders.d.ts.map +0 -1
- package/dist/ownership.d.ts.map +0 -1
- package/dist/package-cli.d.ts.map +0 -1
- package/dist/parameter.d.ts.map +0 -1
- package/dist/plugin.d.ts.map +0 -1
- package/dist/properties.d.ts.map +0 -1
- package/dist/pseudo.d.ts.map +0 -1
- package/dist/receipt-store.d.ts.map +0 -1
- package/dist/reference-catalog.d.ts.map +0 -1
- package/dist/serializer.d.ts.map +0 -1
- package/dist/spec/fetch.d.ts.map +0 -1
- package/dist/spec/parse.d.ts.map +0 -1
- package/dist/spec/pin.d.ts.map +0 -1
- package/dist/stack-errors.d.ts.map +0 -1
- package/dist/taggable.d.ts.map +0 -1
- package/dist/teardown.d.ts.map +0 -1
- package/dist/template-sections.d.ts.map +0 -1
- package/dist/template-transform.d.ts.map +0 -1
- package/dist/validate-cli.d.ts.map +0 -1
- package/dist/validate.d.ts.map +0 -1
- package/dist/workspace-member.d.ts.map +0 -1
- package/src/actions/actions.test.ts +0 -89
- package/src/actions/dynamodb.ts +0 -47
- package/src/actions/ecr.ts +0 -9
- package/src/actions/ecs.ts +0 -5
- package/src/actions/iam.ts +0 -3
- package/src/actions/index.ts +0 -9
- package/src/actions/lambda.ts +0 -11
- package/src/actions/logs.ts +0 -4
- package/src/actions/s3.ts +0 -46
- package/src/actions/sns.ts +0 -5
- package/src/actions/sqs.ts +0 -15
- package/src/agentcore/trace-fetch.test.ts +0 -605
- package/src/agentcore/trace-fetch.ts +0 -761
- package/src/agentcore/trace-render.test.ts +0 -366
- package/src/agentcore/trace-render.ts +0 -589
- package/src/ambient.test.ts +0 -92
- package/src/ambient.ts +0 -163
- package/src/api/credential-chain.test.ts +0 -70
- package/src/api/credential-chain.ts +0 -646
- package/src/api/credential-isolation.test.ts +0 -72
- package/src/api/read-client-chain.test.ts +0 -159
- package/src/api/read-client.test.ts +0 -413
- package/src/api/read-client.ts +0 -632
- package/src/api/signing.test.ts +0 -248
- package/src/api/signing.ts +0 -130
- package/src/behaviour-kinds.ts +0 -121
- package/src/caller-identity.test.ts +0 -476
- package/src/caller-identity.ts +0 -169
- package/src/capabilities/mapping.json +0 -150
- package/src/capabilities/pack.ts +0 -9
- package/src/capabilities.test.ts +0 -182
- package/src/codegen/__snapshots__/snapshot.test.ts.snap +0 -196
- package/src/codegen/any-budget.test.ts +0 -76
- package/src/codegen/docs-cli.ts +0 -3
- package/src/codegen/docs-links.test.ts +0 -158
- package/src/codegen/docs.ts +0 -133
- package/src/codegen/enum-overlay.json +0 -1843
- package/src/codegen/enum-overlay.test.ts +0 -298
- package/src/codegen/enum-overlay.ts +0 -245
- package/src/codegen/extensions.ts +0 -171
- package/src/codegen/fallback.ts +0 -36
- package/src/codegen/generate-cli.ts +0 -17
- package/src/codegen/generate-lexicon.ts +0 -115
- package/src/codegen/generate-typescript.ts +0 -281
- package/src/codegen/generate.test.ts +0 -125
- package/src/codegen/generate.ts +0 -298
- package/src/codegen/idempotency.test.ts +0 -28
- package/src/codegen/naming.ts +0 -149
- package/src/codegen/package.e2e.test.ts +0 -78
- package/src/codegen/package.ts +0 -90
- package/src/codegen/patches.test.ts +0 -95
- package/src/codegen/patches.ts +0 -142
- package/src/codegen/property-overlay.json +0 -4
- package/src/codegen/property-overlay.test.ts +0 -61
- package/src/codegen/property-overlay.ts +0 -125
- package/src/codegen/sam.ts +0 -414
- package/src/codegen/snapshot.test.ts +0 -84
- package/src/codegen/typecheck.test.ts +0 -50
- package/src/codegen/typecheck.ts +0 -4
- package/src/codegen/versions.ts +0 -41
- package/src/components/__fixtures__/schemas/cyclonedx-1.5.schema.json +0 -3800
- package/src/components/__fixtures__/schemas/cyclonedx-spdx-license.schema.json +0 -621
- package/src/components/__fixtures__/schemas/jsf-0.82.schema.json +0 -240
- package/src/components/__fixtures__/schemas/spdx-2.3.schema.json +0 -740
- package/src/components/__fixtures__/synthesized-template.json +0 -53
- package/src/components/__tests__/mock-cloud-executor.ts +0 -487
- package/src/components/apply.test.ts +0 -474
- package/src/components/apply.ts +0 -1495
- package/src/components/builders.test.ts +0 -49
- package/src/components/builders.ts +0 -59
- package/src/components/capability-plugin.test.ts +0 -19
- package/src/components/capability-plugin.ts +0 -81
- package/src/components/cfn-adopt-run.test.ts +0 -227
- package/src/components/cfn-adopt-run.ts +0 -141
- package/src/components/cfn-adopt.test.ts +0 -284
- package/src/components/cfn-adopt.ts +0 -340
- package/src/components/cfn-exports-in-use.test.ts +0 -146
- package/src/components/cfn-imports-preview.test.ts +0 -178
- package/src/components/cfn-imports-three-stacks.test.ts +0 -107
- package/src/components/cfn-imports.test.ts +0 -213
- package/src/components/cfn-imports.ts +0 -246
- package/src/components/cfn-plan-floci.e2e.test.ts +0 -129
- package/src/components/cfn-plan-shape-conformance.test.ts +0 -83
- package/src/components/cfn-plan.test.ts +0 -760
- package/src/components/cloud-executor.test.ts +0 -105
- package/src/components/cloud-executor.ts +0 -1136
- package/src/components/config-bom.test.ts +0 -273
- package/src/components/config-bom.ts +0 -310
- package/src/components/demo-composed-stacks-floci.e2e.test.ts +0 -235
- package/src/components/ecs-rollback-real-executor.test.ts +0 -135
- package/src/components/host-delivery.test.ts +0 -141
- package/src/components/host-delivery.ts +0 -199
- package/src/components/index.ts +0 -19
- package/src/components/job-submission.test.ts +0 -97
- package/src/components/job-submission.ts +0 -138
- package/src/components/pilots-e2e.test.ts +0 -468
- package/src/components/presets-e2e.test.ts +0 -204
- package/src/components/publish.test.ts +0 -318
- package/src/components/publish.ts +0 -224
- package/src/components/safety.test.ts +0 -75
- package/src/components/safety.ts +0 -119
- package/src/components/wait-aws.test.ts +0 -79
- package/src/components/wait-aws.ts +0 -132
- package/src/composites/agentcore-agent.test.ts +0 -315
- package/src/composites/agentcore-agent.ts +0 -327
- package/src/composites/agentcore-trust-policy.ts +0 -13
- package/src/composites/alb-shared.ts +0 -123
- package/src/composites/barrel.test.ts +0 -32
- package/src/composites/bucket-deployment.test.ts +0 -84
- package/src/composites/bucket-deployment.ts +0 -153
- package/src/composites/catalog.test.ts +0 -39
- package/src/composites/catalog.ts +0 -2851
- package/src/composites/composites.test.ts +0 -1257
- package/src/composites/dynamodb-table.test.ts +0 -154
- package/src/composites/dynamodb-table.ts +0 -125
- package/src/composites/ec2-instance-bundle.ts +0 -134
- package/src/composites/ec2-instance-role.ts +0 -40
- package/src/composites/ecr-repository.test.ts +0 -118
- package/src/composites/ecr-repository.ts +0 -118
- package/src/composites/ecs-trust-policy.ts +0 -10
- package/src/composites/efs-with-access-point.ts +0 -81
- package/src/composites/eks-cluster.test.ts +0 -73
- package/src/composites/eks-cluster.ts +0 -164
- package/src/composites/fargate-alb.ts +0 -309
- package/src/composites/fargate-service.ts +0 -353
- package/src/composites/index.ts +0 -68
- package/src/composites/lambda-api.ts +0 -30
- package/src/composites/lambda-dynamodb.ts +0 -109
- package/src/composites/lambda-eventbridge.ts +0 -43
- package/src/composites/lambda-function.ts +0 -88
- package/src/composites/lambda-s3.ts +0 -135
- package/src/composites/lambda-sns.ts +0 -38
- package/src/composites/lambda-sqs.ts +0 -52
- package/src/composites/landing-zone.test.ts +0 -53
- package/src/composites/landing-zone.ts +0 -152
- package/src/composites/latency-entry.test.ts +0 -99
- package/src/composites/latency-entry.ts +0 -121
- package/src/composites/microvm-app.test.ts +0 -272
- package/src/composites/microvm-app.ts +0 -463
- package/src/composites/minimal-vpc.ts +0 -72
- package/src/composites/monitoring-stack.test.ts +0 -130
- package/src/composites/monitoring-stack.ts +0 -164
- package/src/composites/nlb-service.ts +0 -118
- package/src/composites/rds-instance.ts +0 -168
- package/src/composites/scheduled-lambda.ts +0 -44
- package/src/composites/solr-fargate-service.ts +0 -50
- package/src/composites/step-functions-workflow.ts +0 -128
- package/src/composites/vpc-default.ts +0 -217
- package/src/condition.test.ts +0 -160
- package/src/condition.ts +0 -54
- package/src/coverage.test.ts +0 -31
- package/src/coverage.ts +0 -14
- package/src/deep-observe.test.ts +0 -1063
- package/src/deep-observe.ts +0 -881
- package/src/deep-topology.test.ts +0 -396
- package/src/deep-topology.ts +0 -237
- package/src/default-tags.test.ts +0 -38
- package/src/default-tags.ts +0 -77
- package/src/defaults.test.ts +0 -73
- package/src/defaults.ts +0 -97
- package/src/dependencies.test.ts +0 -208
- package/src/dependencies.ts +0 -328
- package/src/derived-edges.test.ts +0 -142
- package/src/detect.ts +0 -19
- package/src/disruption.test.ts +0 -198
- package/src/disruption.ts +0 -155
- package/src/effect-receipt-row.test.ts +0 -164
- package/src/effect-receipt-row.ts +0 -147
- package/src/generated/index.d.ts +0 -158317
- package/src/generated/index.ts +0 -12385
- package/src/generated/runtime.ts +0 -4
- package/src/governance.test.ts +0 -81
- package/src/governance.ts +0 -249
- package/src/graph-sub-edges.test.ts +0 -101
- package/src/health.test.ts +0 -136
- package/src/health.ts +0 -281
- package/src/identity-observe.test.ts +0 -146
- package/src/identity-observe.ts +0 -138
- package/src/import/generator.test.ts +0 -313
- package/src/import/generator.ts +0 -820
- package/src/import/live-export-io.test.ts +0 -79
- package/src/import/live-export.test.ts +0 -96
- package/src/import/live-export.ts +0 -43
- package/src/import/parser.test.ts +0 -330
- package/src/import/parser.ts +0 -502
- package/src/import/roundtrip-build.test.ts +0 -388
- package/src/import/roundtrip-fixtures.test.ts +0 -190
- package/src/import/roundtrip.test.ts +0 -196
- package/src/importable.test.ts +0 -86
- package/src/importable.ts +0 -83
- package/src/index-identity.test.ts +0 -134
- package/src/index-identity.ts +0 -98
- package/src/index-import.test.ts +0 -257
- package/src/index-import.ts +0 -158
- package/src/index-search.test.ts +0 -87
- package/src/index.ts +0 -223
- package/src/integration.test.ts +0 -200
- package/src/intrinsics.test.ts +0 -188
- package/src/intrinsics.ts +0 -488
- package/src/lifecycle-integration.test.ts +0 -621
- package/src/lint/audit-catalog.ts +0 -98
- package/src/lint/audit-lineage.ts +0 -167
- package/src/lint/post-synth/cf-refs.ts +0 -285
- package/src/lint/post-synth/cor020.ts +0 -72
- package/src/lint/post-synth/ext001.test.ts +0 -365
- package/src/lint/post-synth/ext001.ts +0 -388
- package/src/lint/post-synth/index.ts +0 -131
- package/src/lint/post-synth/post-synth.test.ts +0 -280
- package/src/lint/post-synth/waw010.ts +0 -49
- package/src/lint/post-synth/waw011.ts +0 -49
- package/src/lint/post-synth/waw013.test.ts +0 -120
- package/src/lint/post-synth/waw013.ts +0 -45
- package/src/lint/post-synth/waw014.test.ts +0 -121
- package/src/lint/post-synth/waw014.ts +0 -50
- package/src/lint/post-synth/waw015.test.ts +0 -147
- package/src/lint/post-synth/waw015.ts +0 -100
- package/src/lint/post-synth/waw016.test.ts +0 -348
- package/src/lint/post-synth/waw016.ts +0 -135
- package/src/lint/post-synth/waw017.test.ts +0 -130
- package/src/lint/post-synth/waw017.ts +0 -54
- package/src/lint/post-synth/waw018.test.ts +0 -109
- package/src/lint/post-synth/waw018.ts +0 -71
- package/src/lint/post-synth/waw019.test.ts +0 -170
- package/src/lint/post-synth/waw019.ts +0 -82
- package/src/lint/post-synth/waw020.test.ts +0 -125
- package/src/lint/post-synth/waw020.ts +0 -64
- package/src/lint/post-synth/waw021.test.ts +0 -81
- package/src/lint/post-synth/waw021.ts +0 -53
- package/src/lint/post-synth/waw022.test.ts +0 -54
- package/src/lint/post-synth/waw022.ts +0 -43
- package/src/lint/post-synth/waw023.test.ts +0 -53
- package/src/lint/post-synth/waw023.ts +0 -47
- package/src/lint/post-synth/waw024.test.ts +0 -64
- package/src/lint/post-synth/waw024.ts +0 -54
- package/src/lint/post-synth/waw025.test.ts +0 -42
- package/src/lint/post-synth/waw025.ts +0 -43
- package/src/lint/post-synth/waw026.test.ts +0 -54
- package/src/lint/post-synth/waw026.ts +0 -46
- package/src/lint/post-synth/waw027.test.ts +0 -63
- package/src/lint/post-synth/waw027.ts +0 -50
- package/src/lint/post-synth/waw028.test.ts +0 -68
- package/src/lint/post-synth/waw028.ts +0 -47
- package/src/lint/post-synth/waw029.test.ts +0 -179
- package/src/lint/post-synth/waw029.ts +0 -62
- package/src/lint/post-synth/waw030.test.ts +0 -1008
- package/src/lint/post-synth/waw030.ts +0 -301
- package/src/lint/post-synth/waw031.test.ts +0 -273
- package/src/lint/post-synth/waw031.ts +0 -66
- package/src/lint/post-synth/waw032.test.ts +0 -83
- package/src/lint/post-synth/waw032.ts +0 -52
- package/src/lint/post-synth/waw033.test.ts +0 -68
- package/src/lint/post-synth/waw033.ts +0 -86
- package/src/lint/post-synth/waw034.test.ts +0 -54
- package/src/lint/post-synth/waw034.ts +0 -63
- package/src/lint/post-synth/waw035.test.ts +0 -74
- package/src/lint/post-synth/waw035.ts +0 -71
- package/src/lint/post-synth/waw036.test.ts +0 -217
- package/src/lint/post-synth/waw036.ts +0 -88
- package/src/lint/post-synth/waw037.test.ts +0 -155
- package/src/lint/post-synth/waw037.ts +0 -81
- package/src/lint/post-synth/waw038.test.ts +0 -78
- package/src/lint/post-synth/waw038.ts +0 -50
- package/src/lint/post-synth/waw039.test.ts +0 -72
- package/src/lint/post-synth/waw039.ts +0 -51
- package/src/lint/post-synth/waw040.test.ts +0 -71
- package/src/lint/post-synth/waw040.ts +0 -54
- package/src/lint/post-synth/waw041.test.ts +0 -72
- package/src/lint/post-synth/waw041.ts +0 -48
- package/src/lint/post-synth/waw042.test.ts +0 -166
- package/src/lint/post-synth/waw042.ts +0 -108
- package/src/lint/post-synth/waw043.test.ts +0 -84
- package/src/lint/post-synth/waw043.ts +0 -57
- package/src/lint/post-synth/waw044.test.ts +0 -112
- package/src/lint/post-synth/waw044.ts +0 -68
- package/src/lint/post-synth/waw045.test.ts +0 -101
- package/src/lint/post-synth/waw045.ts +0 -58
- package/src/lint/post-synth/waw046.test.ts +0 -112
- package/src/lint/post-synth/waw046.ts +0 -59
- package/src/lint/post-synth/waw047.test.ts +0 -64
- package/src/lint/post-synth/waw047.ts +0 -50
- package/src/lint/post-synth/waw048.test.ts +0 -77
- package/src/lint/post-synth/waw048.ts +0 -47
- package/src/lint/post-synth/waw049.test.ts +0 -139
- package/src/lint/post-synth/waw049.ts +0 -100
- package/src/lint/post-synth/waw050.test.ts +0 -75
- package/src/lint/post-synth/waw050.ts +0 -54
- package/src/lint/post-synth/waw051.test.ts +0 -78
- package/src/lint/post-synth/waw051.ts +0 -49
- package/src/lint/post-synth/waw052.test.ts +0 -54
- package/src/lint/post-synth/waw052.ts +0 -51
- package/src/lint/post-synth/waw053.test.ts +0 -59
- package/src/lint/post-synth/waw053.ts +0 -53
- package/src/lint/post-synth/waw054.test.ts +0 -49
- package/src/lint/post-synth/waw054.ts +0 -49
- package/src/lint/post-synth/waw055.test.ts +0 -43
- package/src/lint/post-synth/waw055.ts +0 -49
- package/src/lint/post-synth/waw056.test.ts +0 -78
- package/src/lint/post-synth/waw056.ts +0 -67
- package/src/lint/post-synth/waw057.test.ts +0 -65
- package/src/lint/post-synth/waw057.ts +0 -48
- package/src/lint/post-synth/waw058.test.ts +0 -82
- package/src/lint/post-synth/waw058.ts +0 -71
- package/src/lint/post-synth/waw059.test.ts +0 -309
- package/src/lint/post-synth/waw059.ts +0 -353
- package/src/lint/post-synth/waw060.test.ts +0 -131
- package/src/lint/post-synth/waw060.ts +0 -91
- package/src/lint/post-synth/waw061.test.ts +0 -99
- package/src/lint/post-synth/waw061.ts +0 -67
- package/src/lint/post-synth/waw062.test.ts +0 -109
- package/src/lint/post-synth/waw062.ts +0 -0
- package/src/lint/post-synth/waw063.test.ts +0 -220
- package/src/lint/post-synth/waw063.ts +0 -0
- package/src/lint/post-synth/waw064.test.ts +0 -79
- package/src/lint/post-synth/waw064.ts +0 -52
- package/src/lint/post-synth/waw065.test.ts +0 -90
- package/src/lint/post-synth/waw065.ts +0 -110
- package/src/lint/post-synth/waw066.test.ts +0 -108
- package/src/lint/post-synth/waw066.ts +0 -155
- package/src/lint/post-synth/waw067.test.ts +0 -79
- package/src/lint/post-synth/waw067.ts +0 -114
- package/src/lint/post-synth/waw068.test.ts +0 -74
- package/src/lint/post-synth/waw068.ts +0 -78
- package/src/lint/post-synth/waw069.test.ts +0 -94
- package/src/lint/post-synth/waw069.ts +0 -0
- package/src/lint/post-synth/waw070.test.ts +0 -59
- package/src/lint/post-synth/waw070.ts +0 -89
- package/src/lint/post-synth/waw071.test.ts +0 -50
- package/src/lint/post-synth/waw071.ts +0 -85
- package/src/lint/rules/hardcoded-region.ts +0 -44
- package/src/lint/rules/iam-wildcard.ts +0 -67
- package/src/lint/rules/index.ts +0 -7
- package/src/lint/rules/rules.test.ts +0 -175
- package/src/lint/rules/s3-encryption.ts +0 -69
- package/src/listed-types.test.ts +0 -97
- package/src/listed-types.ts +0 -56
- package/src/live-attrs.test.ts +0 -54
- package/src/live-attrs.ts +0 -40
- package/src/lsp/completions.test.ts +0 -74
- package/src/lsp/completions.ts +0 -21
- package/src/lsp/hover.test.ts +0 -53
- package/src/lsp/hover.ts +0 -83
- package/src/mapping.test.ts +0 -64
- package/src/mapping.ts +0 -41
- package/src/nested-stack-integration.test.ts +0 -100
- package/src/nested-stack.test.ts +0 -83
- package/src/nested-stack.ts +0 -125
- package/src/op/activities/aws-apply.test.ts +0 -290
- package/src/op/activities/aws-apply.ts +0 -302
- package/src/op/activities/floci.test.ts +0 -119
- package/src/op/activities/floci.ts +0 -145
- package/src/op/activities/index.ts +0 -69
- package/src/op/builders.test.ts +0 -61
- package/src/op/builders.ts +0 -72
- package/src/ownership.test.ts +0 -41
- package/src/ownership.ts +0 -52
- package/src/package-cli.ts +0 -30
- package/src/parameter.ts +0 -37
- package/src/plugin.test.ts +0 -341
- package/src/plugin.ts +0 -1179
- package/src/properties.test.ts +0 -146
- package/src/properties.ts +0 -193
- package/src/pseudo.test.ts +0 -55
- package/src/pseudo.ts +0 -29
- package/src/receipt-store.test.ts +0 -204
- package/src/receipt-store.ts +0 -316
- package/src/reference-catalog.test.ts +0 -102
- package/src/reference-catalog.ts +0 -153
- package/src/serializer-foreign-attr.test.ts +0 -43
- package/src/serializer-ownership.test.ts +0 -55
- package/src/serializer-tag-shapes.test.ts +0 -83
- package/src/serializer.test.ts +0 -1011
- package/src/serializer.ts +0 -757
- package/src/skills/chant-aws-carve-terraform.md +0 -115
- package/src/skills/chant-aws-eks.md +0 -178
- package/src/skills/chant-aws.md +0 -430
- package/src/spec/fetch.test.ts +0 -167
- package/src/spec/fetch.ts +0 -286
- package/src/spec/parse.test.ts +0 -552
- package/src/spec/parse.ts +0 -458
- package/src/spec/pin.test.ts +0 -263
- package/src/spec/pin.ts +0 -254
- package/src/spec/pinned-types.json +0 -1858
- package/src/stack-errors.ts +0 -15
- package/src/taggable.ts +0 -111
- package/src/teardown.test.ts +0 -258
- package/src/teardown.ts +0 -276
- package/src/template-sections.ts +0 -71
- package/src/template-transform.ts +0 -68
- package/src/testdata/capabilities-ledger/estate.ts +0 -161
- package/src/testdata/cdk-member/cdk.json +0 -1
- package/src/testdata/cdk-member/cdk.out/AppStack.template.json +0 -20
- package/src/testdata/cdk-member/cdk.out/manifest.json +0 -1
- package/src/testdata/cdk-unsynthesized/cdk.json +0 -1
- package/src/testdata/cfn-member/README.txt +0 -1
- package/src/testdata/cfn-member/stack.yaml +0 -36
- package/src/testdata/indexed/identity.listing.json +0 -65
- package/src/testdata/indexed/import.listing.json +0 -126
- package/src/testdata/indexed/listing.json +0 -69
- package/src/testdata/indexed/topology.listing.json +0 -350
- package/src/testdata/load-fixtures.ts +0 -17
- package/src/testdata/nested-stacks/app.ts +0 -26
- package/src/testdata/nested-stacks/network/outputs.ts +0 -17
- package/src/testdata/nested-stacks/network/security.ts +0 -17
- package/src/testdata/nested-stacks/network/vpc.ts +0 -54
- package/src/testdata/roundtrip/conditions.json +0 -21
- package/src/testdata/roundtrip/intrinsic-calls.json +0 -31
- package/src/testdata/roundtrip/intrinsics.json +0 -18
- package/src/testdata/roundtrip/multi-resource.json +0 -37
- package/src/testdata/roundtrip/parameters.json +0 -23
- package/src/testdata/roundtrip/simple.json +0 -12
- package/src/testdata/roundtrip/with-conditions.json +0 -16
- package/src/testdata/sam-fixtures/api.yaml +0 -14
- package/src/testdata/sam-fixtures/application.yaml +0 -13
- package/src/testdata/sam-fixtures/function.yaml +0 -22
- package/src/testdata/sam-fixtures/graphql-api.yaml +0 -13
- package/src/testdata/sam-fixtures/http-api.yaml +0 -15
- package/src/testdata/sam-fixtures/layer-version.yaml +0 -15
- package/src/testdata/sam-fixtures/multi-type-a.yaml +0 -23
- package/src/testdata/sam-fixtures/multi-type-b.yaml +0 -29
- package/src/testdata/sam-fixtures/simple-table.yaml +0 -12
- package/src/testdata/sam-fixtures/state-machine.yaml +0 -14
- package/src/testdata/schemas/aws-dynamodb-table.json +0 -126
- package/src/testdata/schemas/aws-iam-role.json +0 -85
- package/src/testdata/schemas/aws-lambda-function.json +0 -90
- package/src/testdata/schemas/aws-s3-bucket.json +0 -83
- package/src/testdata/schemas/aws-sns-topic.json +0 -71
- package/src/testdata/three-cloud/dns.graph.json +0 -336
- package/src/three-cloud-parity.test.ts +0 -49
- package/src/validate-cli.ts +0 -19
- package/src/validate.e2e.test.ts +0 -34
- package/src/validate.ts +0 -39
- package/src/workspace-kinds.test.ts +0 -47
- package/src/workspace-member.test.ts +0 -94
- package/src/workspace-member.ts +0 -197
- /package/{src → dist}/generated/lexicon-aws.json +0 -0
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The aws lexicon's `chant audit` catalog — metadata (title/tier/fix/authority/
|
|
3
|
-
* category) for the WAW* CloudFormation post-synth rules this lexicon ships.
|
|
4
|
-
* Contributed to core's aggregate via `awsPlugin.auditCatalog()` (#687, epic
|
|
5
|
-
* #350); core keeps only the generic catalog machinery + cross-cutting ids.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
import { auditRule, type RuleMeta, type Authority, applyLineage } from "@intentius/chant/audit/catalog";
|
|
9
|
-
import { awsAuditLineage } from "./audit-lineage";
|
|
10
|
-
|
|
11
|
-
/** AWS Well-Architected Security Pillar — the authority chant cites for AWS security findings. */
|
|
12
|
-
const AWS_SEC: Authority = {
|
|
13
|
-
name: "AWS — Security Pillar (Well-Architected)",
|
|
14
|
-
url: "https://docs.aws.amazon.com/wellarchitected/latest/security-pillar/welcome.html",
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** Every WAW* audit rule's catalog entry. */
|
|
18
|
-
export const awsAuditCatalog: Record<string, RuleMeta> = {
|
|
19
|
-
WAW010: auditRule("WAW010", "report-only", "guidance", "Redundant DependsOn", "Remove DependsOn already implied by a Ref/GetAtt.", { category: "best-practice" }),
|
|
20
|
-
WAW011: auditRule("WAW011", "report-only", "guidance", "Deprecated Lambda runtime", "Upgrade to a supported Lambda runtime.", { category: "best-practice" }),
|
|
21
|
-
WAW013: auditRule("WAW013", "merge-worthy", "guidance", "Child stack exports nothing", "Add stackOutput() exports the parent can reference.", { category: "correctness" }),
|
|
22
|
-
WAW014: auditRule("WAW014", "report-only", "guidance", "Nested stack outputs never referenced", "Reference the outputs or split into a separate build.", { category: "best-practice" }),
|
|
23
|
-
WAW015: auditRule("WAW015", "merge-worthy", "guidance", "Circular dependency between nested stacks", "Break the cycle between nested stacks.", { category: "correctness" }),
|
|
24
|
-
WAW016: auditRule("WAW016", "report-only", "guidance", "Deprecated property", "Replace the deprecated CloudFormation property.", { category: "best-practice" }),
|
|
25
|
-
WAW017: auditRule("WAW017", "report-only", "guidance", "Missing tags on a taggable resource", "Add tags for cost allocation and compliance.", { category: "best-practice" }),
|
|
26
|
-
WAW018: auditRule("WAW018", "merge-worthy", "guidance", "S3 bucket missing public access block", "Add a PublicAccessBlockConfiguration blocking all public access.", { authority: [AWS_SEC] }),
|
|
27
|
-
WAW019: auditRule("WAW019", "merge-worthy", "guidance", "Security group allows unrestricted ingress on a sensitive port", "Restrict the CIDR on SSH/RDP/database ports to known sources.", { authority: [AWS_SEC] }),
|
|
28
|
-
WAW020: auditRule("WAW020", "merge-worthy", "guidance", "IAM policy uses a wildcard Action", "Scope the policy to specific actions (least privilege).", { authority: [AWS_SEC] }),
|
|
29
|
-
WAW021: auditRule("WAW021", "merge-worthy", "guidance", "RDS storage not encrypted", "Enable StorageEncrypted for encryption at rest.", { authority: [AWS_SEC] }),
|
|
30
|
-
WAW022: auditRule("WAW022", "report-only", "guidance", "Lambda has no VpcConfig", "Consider a VpcConfig for network isolation if the function needs VPC resources.", { category: "best-practice" }),
|
|
31
|
-
WAW023: auditRule("WAW023", "report-only", "guidance", "CloudFront has no WAF web ACL", "Consider attaching a WAF web ACL.", { category: "best-practice" }),
|
|
32
|
-
WAW024: auditRule("WAW024", "report-only", "guidance", "ALB access logging disabled", "Enable access logging for audit trails.", { category: "best-practice" }),
|
|
33
|
-
WAW025: auditRule("WAW025", "merge-worthy", "guidance", "SNS topic not encrypted", "Set KmsMasterKeyId for encryption at rest.", { authority: [AWS_SEC] }),
|
|
34
|
-
WAW026: auditRule("WAW026", "merge-worthy", "guidance", "SQS queue not encrypted", "Enable SqsManagedSseEnabled or set KmsMasterKeyId.", { authority: [AWS_SEC] }),
|
|
35
|
-
WAW027: auditRule("WAW027", "report-only", "guidance", "DynamoDB point-in-time recovery disabled", "Enable PITR for recovery.", { category: "best-practice" }),
|
|
36
|
-
WAW028: auditRule("WAW028", "merge-worthy", "guidance", "EBS volume not encrypted", "Enable encryption at rest.", { authority: [AWS_SEC] }),
|
|
37
|
-
WAW029: auditRule("WAW029", "merge-worthy", "guidance", "Invalid DependsOn target", "Fix the dangling/self DependsOn reference.", { category: "correctness" }),
|
|
38
|
-
WAW030: auditRule("WAW030", "report-only", "guidance", "Missing DependsOn for a known ordering pattern", "Add the DependsOn the pattern requires.", { category: "best-practice" }),
|
|
39
|
-
WAW031: auditRule("WAW031", "report-only", "guidance", "EKS Addon missing ServiceAccountRoleArn", "Set ServiceAccountRoleArn (IRSA) for addons that need it.", { category: "best-practice" }),
|
|
40
|
-
WAW032: auditRule("WAW032", "merge-worthy", "guidance", "EFS transit encryption disabled on Fargate", "Enable transit encryption for the EFS volume.", { authority: [AWS_SEC] }),
|
|
41
|
-
WAW033: auditRule("WAW033", "merge-worthy", "guidance", "Solr heap exceeds Fargate task memory", "Lower SOLR_HEAP or raise task memory.", { category: "correctness" }),
|
|
42
|
-
WAW034: auditRule("WAW034", "report-only", "guidance", "Fargate Solr task under-provisioned", "Allocate >= 2048MB for the Solr task.", { category: "best-practice" }),
|
|
43
|
-
WAW035: auditRule("WAW035", "report-only", "guidance", "Solr container missing nofile ulimit", "Set a nofile ulimit >= 65535.", { category: "best-practice" }),
|
|
44
|
-
WAW036: auditRule("WAW036", "merge-worthy", "guidance", "Non-ASCII characters in resource properties", "Remove non-ASCII characters rejected at changeset time.", { category: "correctness" }),
|
|
45
|
-
WAW037: auditRule("WAW037", "merge-worthy", "guidance", "Null values in resource properties", "Fix the invalid AttrRef producing null property values.", { category: "correctness" }),
|
|
46
|
-
|
|
47
|
-
// #894 — production-hardening rules (RDS/S3/KMS/ALB/ECS/SG/Cognito/ECR/Logs).
|
|
48
|
-
WAW038: auditRule("WAW038", "merge-worthy", "guidance", "RDS instance is publicly accessible", "Set PubliclyAccessible: false and reach the database through the VPC.", { authority: [AWS_SEC] }),
|
|
49
|
-
WAW039: auditRule("WAW039", "merge-worthy", "guidance", "RDS automated backups disabled", "Set a positive BackupRetentionPeriod.", { category: "best-practice" }),
|
|
50
|
-
WAW040: auditRule("WAW040", "merge-worthy", "guidance", "RDS deletion protection disabled (full tier)", "Set DeletionProtection: true on the full/production tier.", { category: "best-practice" }),
|
|
51
|
-
WAW041: auditRule("WAW041", "merge-worthy", "guidance", "RDS Proxy does not require TLS", "Set RequireTLS: true on the DB proxy.", { authority: [AWS_SEC] }),
|
|
52
|
-
WAW042: auditRule("WAW042", "merge-worthy", "guidance", "S3 bucket missing a TLS-only bucket policy", "Add a Deny statement keyed on aws:SecureTransport = false.", { authority: [AWS_SEC] }),
|
|
53
|
-
WAW043: auditRule("WAW043", "merge-worthy", "guidance", "KMS key rotation disabled", "Set EnableKeyRotation: true on the customer-managed key.", { authority: [AWS_SEC] }),
|
|
54
|
-
WAW044: auditRule("WAW044", "merge-worthy", "guidance", "ALB HTTP listener does not redirect to HTTPS (full tier)", "Add a redirect DefaultAction (Protocol: HTTPS) to the HTTP listener on the full/production tier.", { authority: [AWS_SEC] }),
|
|
55
|
-
WAW045: auditRule("WAW045", "merge-worthy", "guidance", "ALB listener uses a weak or missing TLS policy", "Set SslPolicy to a TLS 1.2+ predefined policy.", { authority: [AWS_SEC] }),
|
|
56
|
-
WAW046: auditRule("WAW046", "merge-worthy", "guidance", "ECS container passes a secret via plaintext Environment", "Move the value to Secrets (Secrets Manager/SSM Parameter Store).", { authority: [AWS_SEC] }),
|
|
57
|
-
WAW047: auditRule("WAW047", "merge-worthy", "guidance", "ECS container runs privileged", "Remove Privileged: true from the container definition.", { authority: [AWS_SEC] }),
|
|
58
|
-
WAW048: auditRule("WAW048", "report-only", "guidance", "ECS container missing log configuration", "Add a LogConfiguration (e.g. awslogs) to the container.", { category: "best-practice" }),
|
|
59
|
-
WAW049: auditRule("WAW049", "merge-worthy", "guidance", "Security group allows unrestricted ingress on a non-ALB port", "Restrict the CIDR; only ALB:80/443 is exempt from this rule.", { authority: [AWS_SEC] }),
|
|
60
|
-
WAW050: auditRule("WAW050", "merge-worthy", "guidance", "Cognito advanced security disabled", "Set UserPoolAddOns.AdvancedSecurityMode to AUDIT or ENFORCED.", { authority: [AWS_SEC] }),
|
|
61
|
-
WAW051: auditRule("WAW051", "merge-worthy", "guidance", "Cognito UserPoolClient allows the implicit OAuth grant", "Drop \"implicit\" from AllowedOAuthFlows; use the code grant.", { authority: [AWS_SEC] }),
|
|
62
|
-
WAW052: auditRule("WAW052", "merge-worthy", "guidance", "Cognito MFA not required (full tier)", "Set MfaConfiguration: ON on the full/production tier.", { authority: [AWS_SEC] }),
|
|
63
|
-
WAW053: auditRule("WAW053", "merge-worthy", "guidance", "ECR repository does not scan images on push", "Set ImageScanningConfiguration.ScanOnPush: true.", { authority: [AWS_SEC] }),
|
|
64
|
-
WAW054: auditRule("WAW054", "merge-worthy", "guidance", "ECR repository allows mutable image tags", "Set ImageTagMutability: IMMUTABLE.", { authority: [AWS_SEC] }),
|
|
65
|
-
WAW055: auditRule("WAW055", "report-only", "guidance", "CloudWatch Logs log group has no retention period", "Set an explicit RetentionInDays.", { category: "best-practice" }),
|
|
66
|
-
|
|
67
|
-
// governance posture regressions.
|
|
68
|
-
WAW056: auditRule("WAW056", "merge-worthy", "guidance", "SCP guardrail has no Deny statement", "Add a Deny statement — SCPs only filter permissions, so a Deny-less SCP guards nothing.", { authority: [AWS_SEC] }),
|
|
69
|
-
WAW057: auditRule("WAW057", "merge-worthy", "guidance", "SCP guardrail attached to no targets", "Attach the SCP to the organization root or an OU via TargetIds.", { authority: [AWS_SEC] }),
|
|
70
|
-
WAW058: auditRule("WAW058", "merge-worthy", "guidance", "Organization audit trail dropped or scoped down", "Keep an organization CloudTrail with IsLogging: true and IsMultiRegionTrail: true.", { authority: [AWS_SEC] }),
|
|
71
|
-
|
|
72
|
-
// #1225 — least-privilege tightening the declared graph can prove. Report-only,
|
|
73
|
-
// so no authority citation (those are reserved for merge-worthy entries).
|
|
74
|
-
WAW059: auditRule("WAW059", "report-only", "guidance", "Wildcard Resource where the declared graph enumerates the touched set", "Tighten Resource from \"*\" to the Fn::GetAtt Arn list of the declared resources the role's consumers touch.", { category: "security" }),
|
|
75
|
-
WAW060: auditRule("WAW060", "report-only", "guidance", "IAM policy attached to no principal", "Attach the policy via Roles/Users/Groups or reference it from a principal's ManagedPolicyArns — unattached it grants nothing.", { category: "security" }),
|
|
76
|
-
|
|
77
|
-
// #1140 — error-injection benchmark family (companion to epic #1139): static
|
|
78
|
-
// catches for the deploy-time/runtime failure class stock CDK can't see pre-synth.
|
|
79
|
-
WAW061: auditRule("WAW061", "merge-worthy", "guidance", "Subnet CidrBlock not contained in its VPC's CidrBlock", "Fix the subnet's CidrBlock so it falls within the VPC's CidrBlock range.", { category: "correctness" }),
|
|
80
|
-
WAW062: auditRule("WAW062", "merge-worthy", "guidance", "Duplicate export name or explicit resource name within a template", "Give each duplicated Export/name a distinct literal value.", { category: "correctness" }),
|
|
81
|
-
WAW063: auditRule("WAW063", "merge-worthy", "guidance", "IAM policy denies an action another attached policy on the same role allows", "Remove or narrow the Deny, or move the Allow off this role — the explicit Deny always wins.", { category: "correctness" }),
|
|
82
|
-
|
|
83
|
-
// #826 — network-topology resiliency (Well-Architected Reliability Pillar):
|
|
84
|
-
// TGW route hygiene, private-subnet and NAT-gateway cross-resource joins,
|
|
85
|
-
// VPN redundancy. No live state needed — all determinable from the
|
|
86
|
-
// declared template.
|
|
87
|
-
WAW064: auditRule("WAW064", "report-only", "guidance", "Transit Gateway route table declares a Blackhole route", "Confirm the traffic drop is intentional; remove the route if it isn't.", { category: "best-practice" }),
|
|
88
|
-
WAW065: auditRule("WAW065", "report-only", "guidance", "Transit Gateway route table wiring is incomplete", "Add the missing TransitGatewayRouteTablePropagation, or wire the orphaned attachment into a route table.", { category: "best-practice" }),
|
|
89
|
-
WAW066: auditRule("WAW066", "merge-worthy", "guidance", "Private subnet's route table has no working default route", "Add a 0.0.0.0/0 route to a NAT gateway/Transit Gateway that exists in the template.", { category: "correctness" }),
|
|
90
|
-
WAW067: auditRule("WAW067", "report-only", "guidance", "Single-AZ NAT gateway serves multi-AZ private subnets", "Add one NAT gateway per Availability Zone and point each AZ's subnets at its own.", { category: "best-practice" }),
|
|
91
|
-
WAW068: auditRule("WAW068", "report-only", "guidance", "VPN Gateway or Transit Gateway has only one attached VPN Connection", "Attach a second VPNConnection (ideally to a separate Customer Gateway) for redundancy.", { category: "best-practice" }),
|
|
92
|
-
WAW069: auditRule("WAW069", "merge-worthy", "guidance", "Template references a condition it never declares", "Declare the condition in the Conditions section (new Condition(...)), or fix the referenced name.", { category: "correctness" }),
|
|
93
|
-
WAW070: auditRule("WAW070", "merge-worthy", "guidance", "Ref or Fn::GetAtt names something the template doesn't declare", "Reference a resource or parameter in this template. A value from another lexicon's resource arrives as a parameter.", { category: "correctness" }),
|
|
94
|
-
WAW071: auditRule("WAW071", "merge-worthy", "guidance", "Tags are in the wrong property or the wrong shape for the resource type", "Write the tags in the property the type uses and in the shape it takes, which is a list of Key and Value pairs for most types and a map for some, such as UserPoolTags on AWS::Cognito::UserPool.", { category: "correctness" }),
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
// Prior art credits live beside the rules in ./audit-lineage.ts (see core audit/prior-art.ts).
|
|
98
|
-
applyLineage(awsAuditCatalog, awsAuditLineage);
|
|
@@ -1,167 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Prior art for these audit rules: the open-source tools whose checks cover the
|
|
3
|
-
* same condition, credited per rule. See packages/core/src/audit/prior-art.ts for
|
|
4
|
-
* the registry, the relation vocabulary, and why this is credit rather than
|
|
5
|
-
* authority. Kept by hand; the prior-art sweep (scripts/prior-art-sweep.ts) reports
|
|
6
|
-
* when a credited tool's index no longer lists a rule cited here.
|
|
7
|
-
*/
|
|
8
|
-
import type { Lineage } from "@intentius/chant/audit/catalog";
|
|
9
|
-
|
|
10
|
-
export const awsAuditLineage: Record<string, Lineage[]> = {
|
|
11
|
-
WAW010: [
|
|
12
|
-
{ tool: "cfn-lint", rule: "W3005", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#W3005", relation: "equivalent" },
|
|
13
|
-
],
|
|
14
|
-
WAW011: [
|
|
15
|
-
{ tool: "cfn-lint", rule: "W2531", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#W2531", relation: "equivalent" },
|
|
16
|
-
{ tool: "checkov", rule: "CKV_AWS_363", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
17
|
-
],
|
|
18
|
-
WAW017: [
|
|
19
|
-
{ tool: "kics", rule: "Lambda Function Without Tags", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/8df8e857-bd59-44fa-9f4c-d77594b95b46/", relation: "extends" },
|
|
20
|
-
{ tool: "kics", rule: "EFS Without Tags", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/08e39832-5e42-4304-98a0-aa5b43393162/", relation: "extends" },
|
|
21
|
-
],
|
|
22
|
-
WAW018: [
|
|
23
|
-
{ tool: "guard-rules-registry", rule: "S3_BUCKET_LEVEL_PUBLIC_ACCESS_PROHIBITED", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_s3/s3_bucket_level_public_access_prohibited.guard", relation: "equivalent" },
|
|
24
|
-
{ tool: "checkov", rule: "CKV_AWS_53", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "extends" },
|
|
25
|
-
{ tool: "checkov", rule: "CKV_AWS_56", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "extends" },
|
|
26
|
-
],
|
|
27
|
-
WAW019: [
|
|
28
|
-
{ tool: "guard-rules-registry", rule: "RESTRICTED_INCOMING_TRAFFIC", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_ec2/restricted_common_ports.guard", relation: "overlaps" },
|
|
29
|
-
{ tool: "kics", rule: "EC2 Sensitive Port Is Publicly Exposed", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/494b03d3-bf40-4464-8524-7c56ad0700ed/", relation: "overlaps" },
|
|
30
|
-
{ tool: "checkov", rule: "CKV_AWS_24", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "extends" },
|
|
31
|
-
],
|
|
32
|
-
WAW020: [
|
|
33
|
-
{ tool: "checkov", rule: "CKV_AWS_63", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
34
|
-
{ tool: "cfn-nag", rule: "F4", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/IamPolicyWildcardActionRule.rb", relation: "overlaps" },
|
|
35
|
-
{ tool: "guard-rules-registry", rule: "IAM_ROLE_NO_WILDCARD_ACTIONS_ON_PERMISSIONS", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/iam/iam_role_no_wildcard_actions_on_permissions.guard", relation: "overlaps" },
|
|
36
|
-
],
|
|
37
|
-
WAW021: [
|
|
38
|
-
{ tool: "cfn-nag", rule: "F27", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/RDSDBInstanceStorageEncryptedRule.rb", relation: "equivalent" },
|
|
39
|
-
{ tool: "checkov", rule: "CKV_AWS_16", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
40
|
-
{ tool: "guard-rules-registry", rule: "RDS_STORAGE_ENCRYPTED", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_rds/rds_storage_encrypted.guard", relation: "equivalent" },
|
|
41
|
-
],
|
|
42
|
-
WAW022: [
|
|
43
|
-
{ tool: "cfn-nag", rule: "W89", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/LambdaFunctionInsideVPCRule.rb", relation: "equivalent" },
|
|
44
|
-
{ tool: "checkov", rule: "CKV_AWS_117", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
45
|
-
{ tool: "guard-rules-registry", rule: "LAMBDA_INSIDE_VPC", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/lambda/lambda_inside_vpc.guard", relation: "equivalent" },
|
|
46
|
-
],
|
|
47
|
-
WAW023: [
|
|
48
|
-
{ tool: "checkov", rule: "CKV_AWS_68", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
49
|
-
{ tool: "kics", rule: "CloudFront Without WAF", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/0f139403-303f-467c-96bd-e717e6cfd62d/", relation: "equivalent" },
|
|
50
|
-
],
|
|
51
|
-
WAW024: [
|
|
52
|
-
{ tool: "cfn-nag", rule: "W52", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/ElasticLoadBalancerV2AccessLoggingRule.rb", relation: "equivalent" },
|
|
53
|
-
{ tool: "checkov", rule: "CKV_AWS_91", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
54
|
-
{ tool: "kics", rule: "ELBv2 ALB Access Log Disabled", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/c62e8b7d-1fdf-4050-ac4c-76ba9e1d9621/", relation: "equivalent" },
|
|
55
|
-
],
|
|
56
|
-
WAW025: [
|
|
57
|
-
{ tool: "cfn-nag", rule: "W47", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/SnsTopicKmsMasterKeyIdRule.rb", relation: "equivalent" },
|
|
58
|
-
{ tool: "checkov", rule: "CKV_AWS_26", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
59
|
-
{ tool: "guard-rules-registry", rule: "SNS_ENCRYPTED_KMS", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_sns/sns_encrypted_kms.guard", relation: "equivalent" },
|
|
60
|
-
],
|
|
61
|
-
WAW026: [
|
|
62
|
-
{ tool: "checkov", rule: "CKV_AWS_27", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
63
|
-
{ tool: "kics", rule: "SQS With SSE Disabled", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/12726829-93ed-4d51-9cbe-13423f4299e1/", relation: "equivalent" },
|
|
64
|
-
{ tool: "cfn-nag", rule: "W48", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/SqsQueueKmsMasterKeyIdRule.rb", relation: "overlaps" },
|
|
65
|
-
],
|
|
66
|
-
WAW027: [
|
|
67
|
-
{ tool: "cfn-nag", rule: "W78", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/DynamoDBBackupRule.rb", relation: "equivalent" },
|
|
68
|
-
{ tool: "checkov", rule: "CKV_AWS_28", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
69
|
-
{ tool: "guard-rules-registry", rule: "DYNAMODB_PITR_ENABLED", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/dynamodb/dynamodb_pitr_enabled.guard", relation: "equivalent" },
|
|
70
|
-
],
|
|
71
|
-
WAW028: [
|
|
72
|
-
{ tool: "cfn-nag", rule: "F1", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/EbsVolumeHasSseRule.rb", relation: "equivalent" },
|
|
73
|
-
{ tool: "checkov", rule: "CKV_AWS_3", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
74
|
-
{ tool: "guard-rules-registry", rule: "ENCRYPTED_VOLUMES", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_ec2/encrypted_volumes.guard", relation: "equivalent" },
|
|
75
|
-
],
|
|
76
|
-
WAW029: [
|
|
77
|
-
{ tool: "cfn-lint", rule: "E3005", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E3005", relation: "equivalent" },
|
|
78
|
-
],
|
|
79
|
-
WAW032: [
|
|
80
|
-
{ tool: "checkov", rule: "CKV_AWS_97", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
81
|
-
{ tool: "kics", rule: "EFS Volume With Disabled Transit Encryption", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/c1282e03-b285-4637-aee7-eefe3a7bb658/", relation: "equivalent" },
|
|
82
|
-
],
|
|
83
|
-
WAW038: [
|
|
84
|
-
{ tool: "cfn-nag", rule: "F22", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/RDSInstancePubliclyAccessibleRule.rb", relation: "equivalent" },
|
|
85
|
-
{ tool: "checkov", rule: "CKV_AWS_17", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
86
|
-
{ tool: "kics", rule: "RDS DB Instance Publicly Accessible", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/de38e1d5-54cb-4111-a868-6f7722695007/", relation: "equivalent" },
|
|
87
|
-
],
|
|
88
|
-
WAW039: [
|
|
89
|
-
{ tool: "cfn-nag", rule: "W75", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/RDSInstanceBackupRetentionPeriodRule.rb", relation: "equivalent" },
|
|
90
|
-
{ tool: "guard-rules-registry", rule: "DB_INSTANCE_BACKUP_ENABLED", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_rds/db_instance_backup_enabled.guard", relation: "equivalent" },
|
|
91
|
-
{ tool: "kics", rule: "RDS With Backup Disabled", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/8c415f6f-7b90-4a27-a44a-51047e1506f9/", relation: "equivalent" },
|
|
92
|
-
],
|
|
93
|
-
WAW040: [
|
|
94
|
-
{ tool: "cfn-nag", rule: "F80", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/RDSInstanceDeletionProtectionRule.rb", relation: "equivalent" },
|
|
95
|
-
{ tool: "guard-rules-registry", rule: "RDS_INSTANCE_DELETION_PROTECTION_ENABLED", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_rds/rds_instance_deletion_protection_enabled.guard", relation: "equivalent" },
|
|
96
|
-
{ tool: "kics", rule: "RDS DB Instance With Deletion Protection Disabled", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/2c161e58-cb52-454f-abea-6470c37b5e6e/", relation: "equivalent" },
|
|
97
|
-
],
|
|
98
|
-
WAW042: [
|
|
99
|
-
{ tool: "guard-rules-registry", rule: "S3_BUCKET_SSL_REQUESTS_ONLY", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_s3/s3_bucket_ssl_requests_only.guard", relation: "equivalent" },
|
|
100
|
-
{ tool: "kics", rule: "S3 Bucket Without SSL In Write Actions", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/38c64e76-c71e-4d92-a337-60174d1de1c9/", relation: "overlaps" },
|
|
101
|
-
],
|
|
102
|
-
WAW043: [
|
|
103
|
-
{ tool: "cfn-nag", rule: "F19", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/KMSKeyRotationRule.rb", relation: "equivalent" },
|
|
104
|
-
{ tool: "checkov", rule: "CKV_AWS_7", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
105
|
-
{ tool: "guard-rules-registry", rule: "CMK_BACKING_KEY_ROTATION_ENABLED", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/aws_kms/cmk_backing_key_rotation_enabled.guard", relation: "equivalent" },
|
|
106
|
-
],
|
|
107
|
-
WAW044: [
|
|
108
|
-
{ tool: "checkov", rule: "CKV_AWS_2", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "overlaps" },
|
|
109
|
-
{ tool: "cfn-nag", rule: "W56", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/ElasticLoadBalancerV2ListenerProtocolRule.rb", relation: "overlaps" },
|
|
110
|
-
],
|
|
111
|
-
WAW045: [
|
|
112
|
-
{ tool: "cfn-nag", rule: "W55", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/ElasticLoadBalancerV2ListenerSslPolicyRule.rb", relation: "equivalent" },
|
|
113
|
-
{ tool: "checkov", rule: "CKV_AWS_103", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
114
|
-
{ tool: "guard-rules-registry", rule: "ELBV2_LISTENER_SSL_POLICY_RULE", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/elastic_load_balancing_v2/elbv2_listener_ssl_policy_rule.guard", relation: "equivalent" },
|
|
115
|
-
],
|
|
116
|
-
WAW049: [
|
|
117
|
-
{ tool: "cfn-nag", rule: "W2", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/SecurityGroupIngressOpenToWorldRule.rb", relation: "overlaps" },
|
|
118
|
-
{ tool: "guard-rules-registry", rule: "EC2_SECURITY_GROUP_INGRESS_OPEN_TO_WORLD_RULE", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/amazon_ec2/ec2_security_group_ingress_open_to_world_rule.guard", relation: "overlaps" },
|
|
119
|
-
{ tool: "kics", rule: "Unrestricted Security Group Ingress", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/4a1e6b34-1008-4e61-a5f2-1f7c276f8d14/", relation: "overlaps" },
|
|
120
|
-
],
|
|
121
|
-
WAW052: [
|
|
122
|
-
{ tool: "cfn-nag", rule: "F78", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/CognitoUserPoolMfaConfigurationOnorOptionalRule.rb", relation: "overlaps" },
|
|
123
|
-
{ tool: "guard-rules-registry", rule: "COGNITO_USER_POOL_MFA_CONFIGURATION_RULE", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/aws_cognito/cognito_user_pool_mfa_configuration_rule.guard", relation: "overlaps" },
|
|
124
|
-
{ tool: "kics", rule: "Cognito UserPool Without MFA", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/74a18d1a-cf02-4a31-8791-ed0967ad7fdc/", relation: "overlaps" },
|
|
125
|
-
],
|
|
126
|
-
WAW053: [
|
|
127
|
-
{ tool: "cfn-nag", rule: "W79", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/ECRRepositoryScanOnPushRule.rb", relation: "equivalent" },
|
|
128
|
-
{ tool: "checkov", rule: "CKV_AWS_163", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
129
|
-
{ tool: "guard-rules-registry", rule: "ECR_REPO_SCAN_ON_PUSH", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/aws_ecr/ecr_repo_scan_on_push_rule.guard", relation: "equivalent" },
|
|
130
|
-
],
|
|
131
|
-
WAW054: [
|
|
132
|
-
{ tool: "checkov", rule: "CKV_AWS_51", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
133
|
-
{ tool: "kics", rule: "ECR Image Tag Not Immutable", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/33f41d31-86b1-46a4-81f7-9c9a671f59ac/", relation: "equivalent" },
|
|
134
|
-
],
|
|
135
|
-
WAW055: [
|
|
136
|
-
{ tool: "cfn-nag", rule: "W86", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/LogsLogGroupRetentionRule.rb", relation: "equivalent" },
|
|
137
|
-
{ tool: "checkov", rule: "CKV_AWS_66", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "equivalent" },
|
|
138
|
-
{ tool: "guard-rules-registry", rule: "CW_LOGGROUP_RETENTION_PERIOD_CHECK", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/cloudwatch/cw_loggroup_retention_period_check.guard", relation: "equivalent" },
|
|
139
|
-
],
|
|
140
|
-
WAW058: [
|
|
141
|
-
{ tool: "guard-rules-registry", rule: "MULTI_REGION_CLOUD_TRAIL_ENABLED", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/cloudtrail/multi_region_cloud_trail_enabled.guard", relation: "overlaps" },
|
|
142
|
-
{ tool: "checkov", rule: "CKV_AWS_67", url: "https://www.checkov.io/5.Policy%20Index/cloudformation.html", relation: "overlaps" },
|
|
143
|
-
{ tool: "kics", rule: "CloudTrail Logging Disabled", url: "https://docs.kics.io/latest/queries/cloudformation-queries/aws/5c0b06d5-b7a4-484c-aeb0-75a836269ff0/", relation: "overlaps" },
|
|
144
|
-
],
|
|
145
|
-
WAW059: [
|
|
146
|
-
{ tool: "cfn-nag", rule: "W12", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/IamPolicyWildcardResourceRule.rb", relation: "overlaps" },
|
|
147
|
-
{ tool: "cfn-nag", rule: "W11", url: "https://github.com/stelligent/cfn_nag/blob/master/lib/cfn-nag/custom_rules/IamRoleWildcardResourceOnPermissionsPolicyRule.rb", relation: "overlaps" },
|
|
148
|
-
{ tool: "guard-rules-registry", rule: "IAM_POLICYDOCUMENT_NO_WILDCARD_RESOURCE", url: "https://github.com/aws-cloudformation/aws-guard-rules-registry/blob/main/rules/aws/iam/iam_policydocument_no_wildcard_resource.guard", relation: "overlaps" },
|
|
149
|
-
],
|
|
150
|
-
WAW061: [
|
|
151
|
-
{ tool: "cfn-lint", rule: "E3059", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E3059", relation: "equivalent" },
|
|
152
|
-
],
|
|
153
|
-
WAW062: [
|
|
154
|
-
{ tool: "cfn-lint", rule: "E3019", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E3019", relation: "overlaps" },
|
|
155
|
-
],
|
|
156
|
-
WAW069: [
|
|
157
|
-
{ tool: "cfn-lint", rule: "E8002", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E8002", relation: "equivalent" },
|
|
158
|
-
],
|
|
159
|
-
WAW070: [
|
|
160
|
-
{ tool: "cfn-lint", rule: "E1012", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E1012", relation: "equivalent" },
|
|
161
|
-
{ tool: "cfn-lint", rule: "E1010", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E1010", relation: "overlaps" },
|
|
162
|
-
],
|
|
163
|
-
WAW071: [
|
|
164
|
-
{ tool: "cfn-lint", rule: "E3002", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E3002", relation: "overlaps" },
|
|
165
|
-
{ tool: "cfn-lint", rule: "E3012", url: "https://github.com/aws-cloudformation/cfn-lint/blob/main/docs/rules.md#E3012", relation: "overlaps" },
|
|
166
|
-
],
|
|
167
|
-
};
|
|
@@ -1,285 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared utility for extracting CloudFormation resource references
|
|
3
|
-
* from template properties.
|
|
4
|
-
*
|
|
5
|
-
* Used by WAW010 (redundant DependsOn) and COR020 (circular deps).
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Parsed CloudFormation template structure.
|
|
10
|
-
*/
|
|
11
|
-
export interface CFTemplate {
|
|
12
|
-
AWSTemplateFormatVersion?: string;
|
|
13
|
-
Resources?: Record<string, CFResource>;
|
|
14
|
-
[key: string]: unknown;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export interface CFResource {
|
|
18
|
-
Type: string;
|
|
19
|
-
Properties?: Record<string, unknown>;
|
|
20
|
-
DependsOn?: string | string[];
|
|
21
|
-
[key: string]: unknown;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Parse a serialized CloudFormation template from build output.
|
|
26
|
-
* Accepts either a raw string or a SerializerResult (extracts primary).
|
|
27
|
-
*/
|
|
28
|
-
export function parseCFTemplate(output: string | { primary: string }): CFTemplate | null {
|
|
29
|
-
const raw = typeof output === "string" ? output : output.primary;
|
|
30
|
-
try {
|
|
31
|
-
const parsed = JSON.parse(raw);
|
|
32
|
-
if (typeof parsed === "object" && parsed !== null) {
|
|
33
|
-
return parsed as CFTemplate;
|
|
34
|
-
}
|
|
35
|
-
} catch {
|
|
36
|
-
// Not valid JSON
|
|
37
|
-
}
|
|
38
|
-
return null;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Recursively walk a CloudFormation property value and extract all logical IDs
|
|
43
|
-
* referenced via Ref and Fn::GetAtt.
|
|
44
|
-
*
|
|
45
|
-
* Skips pseudo-parameters (those starting with "AWS::").
|
|
46
|
-
*/
|
|
47
|
-
export function findResourceRefs(value: unknown): Set<string> {
|
|
48
|
-
const refs = new Set<string>();
|
|
49
|
-
walkValue(value, refs);
|
|
50
|
-
return refs;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Build the reverse of `findResourceRefs` for a whole template: logical id →
|
|
55
|
-
* the set of logical ids whose Properties reference it via Ref/Fn::GetAtt.
|
|
56
|
-
* Lets a check walk the graph consumer-ward (who uses this role?) instead of
|
|
57
|
-
* dependency-ward. Used by WAW059.
|
|
58
|
-
*/
|
|
59
|
-
export function buildReverseRefIndex(template: CFTemplate): Map<string, Set<string>> {
|
|
60
|
-
const index = new Map<string, Set<string>>();
|
|
61
|
-
for (const [logicalId, resource] of Object.entries(template.Resources ?? {})) {
|
|
62
|
-
for (const target of findResourceRefs(resource.Properties)) {
|
|
63
|
-
if (target === logicalId) continue;
|
|
64
|
-
let consumers = index.get(target);
|
|
65
|
-
if (!consumers) {
|
|
66
|
-
consumers = new Set();
|
|
67
|
-
index.set(target, consumers);
|
|
68
|
-
}
|
|
69
|
-
consumers.add(logicalId);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
return index;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Check if a value is a CloudFormation intrinsic function (Ref, Fn::*, etc.)
|
|
77
|
-
* that cannot be statically evaluated.
|
|
78
|
-
*/
|
|
79
|
-
export function isIntrinsic(value: unknown): boolean {
|
|
80
|
-
if (typeof value !== "object" || value === null || Array.isArray(value)) return false;
|
|
81
|
-
const obj = value as Record<string, unknown>;
|
|
82
|
-
return "Ref" in obj || Object.keys(obj).some((k) => k.startsWith("Fn::"));
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* Walk IAM policy statements from a resource's properties.
|
|
87
|
-
* Handles IAM::Policy, IAM::Role, and IAM::ManagedPolicy layouts.
|
|
88
|
-
*/
|
|
89
|
-
export function walkPolicyStatements(
|
|
90
|
-
resource: CFResource,
|
|
91
|
-
): Array<Record<string, unknown>> {
|
|
92
|
-
const statements: Array<Record<string, unknown>> = [];
|
|
93
|
-
const props = resource.Properties ?? {};
|
|
94
|
-
|
|
95
|
-
// PolicyDocument.Statement (IAM::Policy, IAM::ManagedPolicy)
|
|
96
|
-
collectStatements(props.PolicyDocument, statements);
|
|
97
|
-
|
|
98
|
-
// AssumeRolePolicyDocument.Statement (IAM::Role)
|
|
99
|
-
collectStatements(props.AssumeRolePolicyDocument, statements);
|
|
100
|
-
|
|
101
|
-
// Policies[].PolicyDocument.Statement (IAM::Role inline policies)
|
|
102
|
-
if (Array.isArray(props.Policies)) {
|
|
103
|
-
for (const policy of props.Policies) {
|
|
104
|
-
if (typeof policy === "object" && policy !== null) {
|
|
105
|
-
collectStatements((policy as Record<string, unknown>).PolicyDocument, statements);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
return statements;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
function collectStatements(
|
|
114
|
-
policyDoc: unknown,
|
|
115
|
-
out: Array<Record<string, unknown>>,
|
|
116
|
-
): void {
|
|
117
|
-
if (typeof policyDoc !== "object" || policyDoc === null) return;
|
|
118
|
-
const doc = policyDoc as Record<string, unknown>;
|
|
119
|
-
if (Array.isArray(doc.Statement)) {
|
|
120
|
-
for (const stmt of doc.Statement) {
|
|
121
|
-
if (typeof stmt === "object" && stmt !== null) {
|
|
122
|
-
out.push(stmt as Record<string, unknown>);
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
/**
|
|
129
|
-
* Normalize security group ingress rules from inline SecurityGroupIngress
|
|
130
|
-
* property and standalone SecurityGroupIngress resources.
|
|
131
|
-
*/
|
|
132
|
-
export function getSecurityGroupIngress(
|
|
133
|
-
resource: CFResource,
|
|
134
|
-
): Array<Record<string, unknown>> {
|
|
135
|
-
const rules: Array<Record<string, unknown>> = [];
|
|
136
|
-
const props = resource.Properties ?? {};
|
|
137
|
-
|
|
138
|
-
if (Array.isArray(props.SecurityGroupIngress)) {
|
|
139
|
-
for (const rule of props.SecurityGroupIngress) {
|
|
140
|
-
if (typeof rule === "object" && rule !== null) {
|
|
141
|
-
rules.push(rule as Record<string, unknown>);
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
return rules;
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
/**
|
|
150
|
-
* Extract an ECS TaskDefinition's container definitions (shared by the
|
|
151
|
-
* WAW046/047/048 ECS checks).
|
|
152
|
-
*/
|
|
153
|
-
export function getContainerDefinitions(resource: CFResource): Array<Record<string, unknown>> {
|
|
154
|
-
const props = resource.Properties ?? {};
|
|
155
|
-
const defs = props.ContainerDefinitions;
|
|
156
|
-
if (!Array.isArray(defs)) return [];
|
|
157
|
-
return defs.filter((d): d is Record<string, unknown> => typeof d === "object" && d !== null);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Whether a build's `env` (from `--env` or the project's `ownership.env`, see
|
|
162
|
-
* PostSynthContext#env and #201) should be treated as the strict "full"/
|
|
163
|
-
* production tier for tier-gated checks, vs a relaxed "light" tier acceptable
|
|
164
|
-
* for local/Floci-style stacks. Reuses the existing `ctx.env` seam — no new
|
|
165
|
-
* tier field. An undefined or unrecognized env is treated as non-strict so a
|
|
166
|
-
* project that never sets `--env`/`ownership.env` isn't unexpectedly hard-failed.
|
|
167
|
-
*/
|
|
168
|
-
export function isFullTierEnv(env: string | undefined): boolean {
|
|
169
|
-
return env === "prod" || env === "production" || env === "full";
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
/**
|
|
173
|
-
* Parse an IPv4 CIDR literal ("10.0.0.0/16") into its numeric base address
|
|
174
|
-
* and prefix length. Returns null for anything that isn't a plain IPv4 CIDR
|
|
175
|
-
* (IPv6, malformed octets, out-of-range prefix) — callers treat that as
|
|
176
|
-
* "can't prove statically" rather than an error.
|
|
177
|
-
*/
|
|
178
|
-
export function parseIpv4Cidr(cidr: string): { base: number; prefix: number } | null {
|
|
179
|
-
const m = /^(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\/(\d{1,2})$/.exec(cidr.trim());
|
|
180
|
-
if (!m) return null;
|
|
181
|
-
const octets = m.slice(1, 5).map(Number);
|
|
182
|
-
if (octets.some((o) => o < 0 || o > 255)) return null;
|
|
183
|
-
const prefix = Number(m[5]);
|
|
184
|
-
if (prefix < 0 || prefix > 32) return null;
|
|
185
|
-
const base = ((octets[0] << 24) | (octets[1] << 16) | (octets[2] << 8) | octets[3]) >>> 0;
|
|
186
|
-
return { base, prefix };
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
/** [networkAddress, broadcastAddress] for a parsed IPv4 CIDR block. */
|
|
190
|
-
function ipv4Range(cidr: { base: number; prefix: number }): [number, number] {
|
|
191
|
-
const maskBits = cidr.prefix === 0 ? 0 : (0xffffffff << (32 - cidr.prefix)) >>> 0;
|
|
192
|
-
const network = (cidr.base & maskBits) >>> 0;
|
|
193
|
-
const broadcast = (network | (~maskBits >>> 0)) >>> 0;
|
|
194
|
-
return [network, broadcast];
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/**
|
|
198
|
-
* Whether `inner` (an IPv4 CIDR literal) falls entirely within `outer`.
|
|
199
|
-
* Returns null — not false — when either literal isn't a plain, parseable
|
|
200
|
-
* IPv4 CIDR (e.g. IPv6, or a CloudFormation intrinsic already stringified
|
|
201
|
-
* elsewhere); a null means "statically unprovable", not "violation".
|
|
202
|
-
*/
|
|
203
|
-
export function ipv4CidrContains(outer: string, inner: string): boolean | null {
|
|
204
|
-
const outerCidr = parseIpv4Cidr(outer);
|
|
205
|
-
const innerCidr = parseIpv4Cidr(inner);
|
|
206
|
-
if (!outerCidr || !innerCidr) return null;
|
|
207
|
-
const [oStart, oEnd] = ipv4Range(outerCidr);
|
|
208
|
-
const [iStart, iEnd] = ipv4Range(innerCidr);
|
|
209
|
-
return iStart >= oStart && iEnd <= oEnd;
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
/**
|
|
213
|
-
* A port as a number. CloudFormation accepts `"80"` as well as `80`, so a
|
|
214
|
-
* string of digits counts; anything else reads as -1, which means all ports.
|
|
215
|
-
*/
|
|
216
|
-
function portNumber(port: unknown): number {
|
|
217
|
-
if (typeof port === "number") return port;
|
|
218
|
-
if (typeof port === "string" && /^-?\d+$/.test(port.trim())) return Number(port);
|
|
219
|
-
return -1;
|
|
220
|
-
}
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* Check if a port range [fromPort, toPort] contains any of the sensitive ports.
|
|
224
|
-
*/
|
|
225
|
-
export function portRangeContainsSensitive(
|
|
226
|
-
fromPort: unknown,
|
|
227
|
-
toPort: unknown,
|
|
228
|
-
sensitivePorts: number[],
|
|
229
|
-
): boolean {
|
|
230
|
-
// Missing ports means all ports
|
|
231
|
-
if (fromPort === undefined && toPort === undefined) return true;
|
|
232
|
-
|
|
233
|
-
const from = portNumber(fromPort);
|
|
234
|
-
const to = portNumber(toPort);
|
|
235
|
-
|
|
236
|
-
// If either is an intrinsic, we can't statically verify
|
|
237
|
-
if (isIntrinsic(fromPort) || isIntrinsic(toPort)) return false;
|
|
238
|
-
|
|
239
|
-
if (from === -1 && to === -1) return true;
|
|
240
|
-
|
|
241
|
-
for (const port of sensitivePorts) {
|
|
242
|
-
if (from <= port && port <= to) return true;
|
|
243
|
-
}
|
|
244
|
-
return false;
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
function walkValue(value: unknown, refs: Set<string>): void {
|
|
248
|
-
if (value === null || value === undefined) return;
|
|
249
|
-
if (typeof value !== "object") return;
|
|
250
|
-
|
|
251
|
-
if (Array.isArray(value)) {
|
|
252
|
-
for (const item of value) {
|
|
253
|
-
walkValue(item, refs);
|
|
254
|
-
}
|
|
255
|
-
return;
|
|
256
|
-
}
|
|
257
|
-
|
|
258
|
-
const obj = value as Record<string, unknown>;
|
|
259
|
-
|
|
260
|
-
// Check for Ref
|
|
261
|
-
if ("Ref" in obj && typeof obj.Ref === "string") {
|
|
262
|
-
if (!obj.Ref.startsWith("AWS::")) {
|
|
263
|
-
refs.add(obj.Ref);
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
|
-
// Check for Fn::GetAtt
|
|
268
|
-
if ("Fn::GetAtt" in obj) {
|
|
269
|
-
const getAtt = obj["Fn::GetAtt"];
|
|
270
|
-
if (Array.isArray(getAtt) && getAtt.length >= 1 && typeof getAtt[0] === "string") {
|
|
271
|
-
refs.add(getAtt[0]);
|
|
272
|
-
} else if (typeof getAtt === "string") {
|
|
273
|
-
// Dot-delimited form: "LogicalId.Attribute"
|
|
274
|
-
const logicalId = getAtt.split(".")[0];
|
|
275
|
-
if (logicalId) refs.add(logicalId);
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
// Recurse into all object values (including intrinsic function arguments)
|
|
280
|
-
for (const val of Object.values(obj)) {
|
|
281
|
-
if (typeof val === "object" && val !== null) {
|
|
282
|
-
walkValue(val, refs);
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
}
|