cdk-preflight 1.17.2 → 1.19.0
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/.claude/skills/add-preflight-rule/SKILL.md +1 -0
- package/.jsii +3 -3
- package/AGENTS.md +18 -2
- package/README.md +1 -1
- package/docs/rules.md +44 -44
- package/lib/index.js +1 -1
- package/lib/private/conditions.d.ts +52 -0
- package/lib/private/conditions.js +387 -0
- package/lib/private/enforce.d.ts +15 -1
- package/lib/private/enforce.js +112 -47
- package/lib/rules.generated.js +290 -285
- package/package.json +2 -1
package/docs/rules.md
CHANGED
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
| `pf-apigw-regional-certificate-property` | AWS::ApiGateway::DomainName | REGIONAL domain names read RegionalCertificateArn, not CertificateArn | ERROR | none |
|
|
74
74
|
| `pf-apigw-regional-certificate-region` | AWS::ApiGateway::DomainName | A REGIONAL domain name needs a certificate from the deployment region | ERROR | none |
|
|
75
75
|
| `pf-apigw-request-authorizer-identity-source` | AWS::ApiGateway::Authorizer | REQUEST authorizer identity sources are mapping expressions | ERROR | none |
|
|
76
|
-
| `pf-apigw-resource-path-part` | AWS::ApiGateway::Resource | PathPart allows a-zA-Z0-9._-: or one curly-brace variable |
|
|
76
|
+
| `pf-apigw-resource-path-part` | AWS::ApiGateway::Resource | PathPart allows a-zA-Z0-9._-: or one curly-brace variable | WARN | none |
|
|
77
77
|
| `pf-apigw-rest-api-policy-document` | AWS::ApiGateway::RestApi | A REST API policy must be a policy document | ERROR | none |
|
|
78
78
|
| `pf-apigw-stage-access-log-destination-arn` | AWS::ApiGateway::Stage | Access logs go to CloudWatch Logs or Firehose only | ERROR | none |
|
|
79
79
|
| `pf-apigw-stage-access-log-firehose-prefix` | AWS::ApiGateway::Stage | An access log delivery stream is named amazon-apigateway-* | ERROR | none |
|
|
80
80
|
| `pf-apigw-stage-cache-ttl-range` | AWS::ApiGateway::Stage | Method setting cache TTL tops out at 3600 seconds | ERROR | none |
|
|
81
81
|
| `pf-apigw-stage-method-setting-http-method` | AWS::ApiGateway::Stage | Method setting HttpMethod is a verb or * | ERROR | none |
|
|
82
82
|
| `pf-apigw-stage-method-setting-resource-path` | AWS::ApiGateway::Stage | Method setting paths start with / and encode slashes as ~1 | ERROR | retired: engine E3723 covers it from aws-cdk-lib 2.271.0 |
|
|
83
|
-
| `pf-apigw-stage-name-charset` | AWS::ApiGateway::Stage | Stage names allow only a-zA-Z0-9_ | ERROR | none |
|
|
83
|
+
| `pf-apigw-stage-name-charset` | AWS::ApiGateway::Stage | Stage names allow only a-zA-Z0-9_- | ERROR | none |
|
|
84
84
|
| `pf-apigw-stage-variable-name` | AWS::ApiGateway::Stage | Stage variable names allow only word characters | ERROR | none |
|
|
85
85
|
| `pf-apigw-stage-variable-value` | AWS::ApiGateway::Stage | Stage variable values have a restricted character set | ERROR | none |
|
|
86
86
|
| `pf-apigw-token-authorizer-identity-source` | AWS::ApiGateway::Authorizer | TOKEN authorizers need IdentitySource | ERROR | none |
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
| `pf-apigwv2-cors-credentials-wildcard` | AWS::ApiGatewayV2::Api | CORS AllowCredentials cannot pair with a wildcard origin | ERROR | none |
|
|
101
101
|
| `pf-apigwv2-domain-certificate-region` | AWS::ApiGatewayV2::DomainName | A custom domain needs a certificate from the deployment region | ERROR | none |
|
|
102
102
|
| `pf-apigwv2-domain-endpoint-type-regional` | AWS::ApiGatewayV2::DomainName | HTTP/WebSocket custom domains are REGIONAL only | ERROR | none |
|
|
103
|
-
| `pf-apigwv2-domain-name-charset` | AWS::ApiGatewayV2::DomainName | Custom domain names
|
|
103
|
+
| `pf-apigwv2-domain-name-charset` | AWS::ApiGatewayV2::DomainName | Custom domain names cannot contain an underscore | ERROR | none |
|
|
104
104
|
| `pf-apigwv2-http-identity-source-expression` | AWS::ApiGatewayV2::Authorizer | HTTP API identity sources are $-prefixed selection expressions | ERROR | none |
|
|
105
105
|
| `pf-apigwv2-http-proxy-integration-method` | AWS::ApiGatewayV2::Integration | An HTTP_PROXY integration needs an IntegrationMethod | ERROR | none |
|
|
106
106
|
| `pf-apigwv2-http-proxy-payload-version` | AWS::ApiGatewayV2::Integration | HTTP_PROXY integrations only take PayloadFormatVersion 1.0 | ERROR | none |
|
|
@@ -109,7 +109,7 @@
|
|
|
109
109
|
| `pf-apigwv2-http-route-selection` | AWS::ApiGatewayV2::Api | HTTP APIs accept only the method-path route selection expression | ERROR | none |
|
|
110
110
|
| `pf-apigwv2-integration-response-websocket-only` | AWS::ApiGatewayV2::IntegrationResponse | Integration responses exist on WebSocket APIs only | ERROR | none |
|
|
111
111
|
| `pf-apigwv2-integration-subtype-credentials` | AWS::ApiGatewayV2::Integration | A subtype integration needs a CredentialsArn | ERROR | none |
|
|
112
|
-
| `pf-apigwv2-integration-subtype-known` | AWS::ApiGatewayV2::Integration | IntegrationSubtype is one of the ten AWS service subtypes |
|
|
112
|
+
| `pf-apigwv2-integration-subtype-known` | AWS::ApiGatewayV2::Integration | IntegrationSubtype is one of the ten AWS service subtypes | WARN | none |
|
|
113
113
|
| `pf-apigwv2-integration-subtype-payload-version` | AWS::ApiGatewayV2::Integration | Subtype integrations are payload format 1.0 only | ERROR | none |
|
|
114
114
|
| `pf-apigwv2-integration-subtype-required-parameters` | AWS::ApiGatewayV2::Integration | Each integration subtype has mandatory request parameters | ERROR | none |
|
|
115
115
|
| `pf-apigwv2-integration-timeout-range` | AWS::ApiGatewayV2::Integration | HTTP API integration timeouts are 50-30000 ms | ERROR | none |
|
|
@@ -293,7 +293,7 @@
|
|
|
293
293
|
| `pf-appsync-schema-requires-query-root` | AWS::AppSync::GraphQLSchema | A schema needs a query root type | ERROR | none |
|
|
294
294
|
| `pf-appsync-schema-root-type-missing` | AWS::AppSync::GraphQLSchema | The schema block may only name declared types | ERROR | none |
|
|
295
295
|
| `pf-appsync-schema-undefined-type-reference` | AWS::AppSync::GraphQLSchema | Every field type must be declared in the schema | ERROR | none |
|
|
296
|
-
| `pf-appsync-schema-unknown-scalar` | AWS::AppSync::GraphQLSchema | Only AppSync's own AWS scalars exist |
|
|
296
|
+
| `pf-appsync-schema-unknown-scalar` | AWS::AppSync::GraphQLSchema | Only AppSync's own AWS scalars exist | WARN | none |
|
|
297
297
|
| `pf-appsync-source-api-merge-type-value` | AWS::AppSync::SourceApiAssociation | MergeType is AUTO_MERGE or MANUAL_MERGE | ERROR | cfn-schema |
|
|
298
298
|
| `pf-appsync-source-api-merged-not-source` | AWS::AppSync::SourceApiAssociation | A merged API cannot be a source API | ERROR | none |
|
|
299
299
|
| `pf-appsync-source-api-not-merged-target` | AWS::AppSync::SourceApiAssociation | The association target must be a MERGED API | ERROR | none |
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
| `pf-asg-lifecyclehookspec-max-5` | AWS::AutoScaling::AutoScalingGroup | A group creates at most five lifecycle hooks inline | ERROR | none |
|
|
376
376
|
| `pf-asg-max-instance-lifetime-range` | AWS::AutoScaling::AutoScalingGroup | MaxInstanceLifetime is zero or a day to a year | ERROR | none |
|
|
377
377
|
| `pf-asg-metrics-granularity-enum` | AWS::AutoScaling::AutoScalingGroup | Group metrics come at one-minute granularity | ERROR | none |
|
|
378
|
-
| `pf-asg-metrics-name-enum` | AWS::AutoScaling::AutoScalingGroup | Collected group metrics come from the published list |
|
|
378
|
+
| `pf-asg-metrics-name-enum` | AWS::AutoScaling::AutoScalingGroup | Collected group metrics come from the published list | WARN | none |
|
|
379
379
|
| `pf-asg-minadjustmagnitude-positive` | AWS::AutoScaling::ScalingPolicy | MinAdjustmentMagnitude is greater than zero | ERROR | none |
|
|
380
380
|
| `pf-asg-minadjustmagnitude-requires-percent` | AWS::AutoScaling::ScalingPolicy | MinAdjustmentMagnitude only goes with PercentChangeInCapacity | ERROR | none |
|
|
381
381
|
| `pf-asg-notification-sns-topics-max-10` | AWS::AutoScaling::AutoScalingGroup | A group notifies at most ten topics | ERROR | none |
|
|
@@ -432,7 +432,7 @@
|
|
|
432
432
|
| `pf-asg-tags-aws-prefix-rejected` | AWS::AutoScaling::AutoScalingGroup | A group tag key does not start with the reserved aws: prefix | ERROR | none |
|
|
433
433
|
| `pf-asg-tags-max-50` | AWS::AutoScaling::AutoScalingGroup | A group carries at most 50 tags | ERROR | none |
|
|
434
434
|
| `pf-asg-target-value-positive` | AWS::AutoScaling::ScalingPolicy | Target tracking needs a positive TargetValue | ERROR | none |
|
|
435
|
-
| `pf-asg-termination-policy-lambda-arn-format` | AWS::AutoScaling::AutoScalingGroup | A termination policy is a published name or a Lambda ARN |
|
|
435
|
+
| `pf-asg-termination-policy-lambda-arn-format` | AWS::AutoScaling::AutoScalingGroup | A termination policy is a published name or a Lambda ARN | WARN | none |
|
|
436
436
|
| `pf-asg-tt-alb-requires-resourcelabel` | AWS::AutoScaling::ScalingPolicy | The ALB request-count metric needs a ResourceLabel | ERROR | none |
|
|
437
437
|
| `pf-asg-tt-custom-metrics-array-exclusive` | AWS::AutoScaling::ScalingPolicy | A metric-math specification takes none of the single-metric fields | ERROR | none |
|
|
438
438
|
| `pf-asg-tt-custom-simple-requires-namespace-and-statistic` | AWS::AutoScaling::ScalingPolicy | A single-metric specification names its Namespace and Statistic | ERROR | none |
|
|
@@ -716,7 +716,7 @@
|
|
|
716
716
|
| `pf-bedrock-guardrail-pii-entity-unique` | AWS::Bedrock::Guardrail | A guardrail must not configure the same PII entity type twice | ERROR | none |
|
|
717
717
|
| `pf-bedrock-guardrail-policy-required` | AWS::Bedrock::Guardrail | A guardrail needs at least one policy | ERROR | none |
|
|
718
718
|
| `pf-bedrock-guardrail-profile-account` | AWS::Bedrock::Guardrail | A guardrail profile ARN must carry the deploying account | ERROR | none |
|
|
719
|
-
| `pf-bedrock-guardrail-profile-geo` | AWS::Bedrock::Guardrail | A guardrail profile must belong to the deploy Region's geography |
|
|
719
|
+
| `pf-bedrock-guardrail-profile-geo` | AWS::Bedrock::Guardrail | A guardrail profile must belong to the deploy Region's geography | WARN | none |
|
|
720
720
|
| `pf-bedrock-guardrail-profile-region` | AWS::Bedrock::Guardrail | A guardrail profile ARN must carry the guardrail's own Region | ERROR | none |
|
|
721
721
|
| `pf-bedrock-guardrail-prompt-attack-output-strength` | AWS::Bedrock::Guardrail | The PROMPT_ATTACK content filter must use OutputStrength NONE | ERROR | none |
|
|
722
722
|
| `pf-bedrock-guardrail-regex-pattern-length` | AWS::Bedrock::Guardrail | A guardrail regex pattern is limited to 500 characters | ERROR | none |
|
|
@@ -958,7 +958,7 @@
|
|
|
958
958
|
| `pf-cloudfront-public-key-pem-format` | AWS::CloudFront::PublicKey | PublicKey EncodedKey must be a PEM-encoded public key | ERROR | none |
|
|
959
959
|
| `pf-cloudfront-realtime-log-endpoint-count` | AWS::CloudFront::RealtimeLogConfig | A real-time log configuration takes exactly one endpoint | ERROR | none |
|
|
960
960
|
| `pf-cloudfront-realtime-log-endpoint-stream-type` | AWS::CloudFront::RealtimeLogConfig | Real-time log endpoints must have StreamType Kinesis | ERROR | none |
|
|
961
|
-
| `pf-cloudfront-realtime-log-field-names` | AWS::CloudFront::RealtimeLogConfig | Real-time log Fields must name fields CloudFront defines |
|
|
961
|
+
| `pf-cloudfront-realtime-log-field-names` | AWS::CloudFront::RealtimeLogConfig | Real-time log Fields must name fields CloudFront defines | WARN | none |
|
|
962
962
|
| `pf-cloudfront-response-headers-policy-name-charset` | AWS::CloudFront::ResponseHeadersPolicy | Response headers policy names allow only alphanumerics, dash and underscore | ERROR | none |
|
|
963
963
|
| `pf-cloudfront-rhp-cors-allow-methods-enum` | AWS::CloudFront::ResponseHeadersPolicy | AccessControlAllowMethods accepts only the eight documented values | ERROR | pending-engine |
|
|
964
964
|
| `pf-cloudfront-rhp-custom-header-blocklist` | AWS::CloudFront::ResponseHeadersPolicy | CustomHeadersConfig cannot carry headers CloudFront reserves | ERROR | none |
|
|
@@ -1203,7 +1203,7 @@
|
|
|
1203
1203
|
| `pf-cognito-email-developer-requires-sourcearn` | AWS::Cognito::UserPool | DEVELOPER email sending needs a SES SourceArn | ERROR | none |
|
|
1204
1204
|
| `pf-cognito-email-from-format` | AWS::Cognito::UserPool | EmailConfiguration.From must be an email address | ERROR | none |
|
|
1205
1205
|
| `pf-cognito-email-reply-to-format` | AWS::Cognito::UserPool | ReplyToEmailAddress must be an email address | ERROR | retired: engine F3031 covers it from aws-cdk-lib 2.268.0 |
|
|
1206
|
-
| `pf-cognito-email-sourcearn-region` | AWS::Cognito::UserPool | The SES SourceArn must be in a Cognito-supported SES region |
|
|
1206
|
+
| `pf-cognito-email-sourcearn-region` | AWS::Cognito::UserPool | The SES SourceArn must be in a Cognito-supported SES region | WARN | none |
|
|
1207
1207
|
| `pf-cognito-email-verification-message-placeholder` | AWS::Cognito::UserPool | EmailVerificationMessage needs the {####} code placeholder | ERROR | retired: engine F3031 covers it from aws-cdk-lib 2.268.0 |
|
|
1208
1208
|
| `pf-cognito-explicit-auth-flows-legacy-mix` | AWS::Cognito::UserPoolClient | Legacy and ALLOW_ auth flow names cannot be mixed | ERROR | none |
|
|
1209
1209
|
| `pf-cognito-group-role-arn-account` | AWS::Cognito::UserPoolGroup | A group role must be in the deploying account | ERROR | none |
|
|
@@ -1252,7 +1252,7 @@
|
|
|
1252
1252
|
| `pf-cognito-risk-compromised-event-filter-enum` | AWS::Cognito::UserPoolRiskConfigurationAttachment | Compromised credentials event filter takes three values | ERROR | none |
|
|
1253
1253
|
| `pf-cognito-risk-ip-range-cidr` | AWS::Cognito::UserPoolRiskConfigurationAttachment | Blocked and skipped IP ranges are CIDR blocks | ERROR | none |
|
|
1254
1254
|
| `pf-cognito-risk-ip-range-max` | AWS::Cognito::UserPoolRiskConfigurationAttachment | At most 200 blocked IP ranges | ERROR | none |
|
|
1255
|
-
| `pf-cognito-risk-notify-source-arn-region` | AWS::Cognito::UserPoolRiskConfigurationAttachment | The notification SourceArn must be in a Cognito-supported SES region |
|
|
1255
|
+
| `pf-cognito-risk-notify-source-arn-region` | AWS::Cognito::UserPoolRiskConfigurationAttachment | The notification SourceArn must be in a Cognito-supported SES region | WARN | none |
|
|
1256
1256
|
| `pf-cognito-role-attachment-roles-keys` | AWS::Cognito::IdentityPoolRoleAttachment | Roles keys are authenticated and unauthenticated | ERROR | none |
|
|
1257
1257
|
| `pf-cognito-role-mapping-rule-match-type` | AWS::Cognito::IdentityPoolRoleAttachment | MatchType is Equals, Contains, StartsWith or NotEqual | ERROR | none |
|
|
1258
1258
|
| `pf-cognito-role-mapping-rules-max` | AWS::Cognito::IdentityPoolRoleAttachment | At most 25 rules per role mapping | ERROR | none |
|
|
@@ -1273,7 +1273,7 @@
|
|
|
1273
1273
|
| `pf-cognito-sms-caller-arn-account` | AWS::Cognito::UserPool | The SMS caller role must be in the deploying account | ERROR | none |
|
|
1274
1274
|
| `pf-cognito-sms-configuration-sns-region` | AWS::Cognito::UserPool | SnsRegion must be the region the pool deploys to | ERROR | none |
|
|
1275
1275
|
| `pf-cognito-sms-verification-message-placeholder` | AWS::Cognito::UserPool | SmsVerificationMessage needs the {####} code placeholder | ERROR | retired: engine F3031 covers it from aws-cdk-lib 2.268.0 |
|
|
1276
|
-
| `pf-cognito-supported-identity-providers-exists` | AWS::Cognito::UserPoolClient<br>AWS::Cognito::UserPoolIdentityProvider | Supported identity providers must exist on the pool |
|
|
1276
|
+
| `pf-cognito-supported-identity-providers-exists` | AWS::Cognito::UserPoolClient<br>AWS::Cognito::UserPoolIdentityProvider | Supported identity providers must exist on the pool | WARN | none |
|
|
1277
1277
|
| `pf-cognito-temporary-password-validity-range` | AWS::Cognito::UserPool | TemporaryPasswordValidityDays must be between 0 and 365 | ERROR | retired: engine F3034 covers it from aws-cdk-lib 2.268.0 |
|
|
1278
1278
|
| `pf-cognito-token-expiration-order` | AWS::Cognito::UserPoolClient | Access and id tokens cannot outlive the refresh token | ERROR | none |
|
|
1279
1279
|
| `pf-cognito-token-validity-range` | AWS::Cognito::UserPoolClient | Token validity ranges depend on token type and unit | ERROR | none |
|
|
@@ -1413,7 +1413,7 @@
|
|
|
1413
1413
|
| `pf-ec2-eni-public-ip-device-index` | AWS::EC2::Instance | AssociatePublicIpAddress is only valid on device index 0 | ERROR | none |
|
|
1414
1414
|
| `pf-ec2-flow-log-aggregation-interval` | AWS::EC2::FlowLog | Flow log MaxAggregationInterval accepts only 60 or 600 seconds | ERROR | none |
|
|
1415
1415
|
| `pf-ec2-flow-log-destination-config` | AWS::EC2::FlowLog | Flow log destination type requires its matching destination property | ERROR | none |
|
|
1416
|
-
| `pf-ec2-flow-log-format-fields` | AWS::EC2::FlowLog | Flow log LogFormat accepts only documented field names |
|
|
1416
|
+
| `pf-ec2-flow-log-format-fields` | AWS::EC2::FlowLog | Flow log LogFormat accepts only documented field names | WARN | none |
|
|
1417
1417
|
| `pf-ec2-flow-log-transit-gateway-traffic-type` | AWS::EC2::FlowLog | A Transit Gateway flow log cannot take TrafficType | ERROR | none |
|
|
1418
1418
|
| `pf-ec2-host-resource-group-tenancy` | AWS::EC2::Instance | HostResourceGroupArn requires Tenancy host | ERROR | none |
|
|
1419
1419
|
| `pf-ec2-instance-ami-arch` | AWS::EC2::Instance | Instance type architecture must match the SSM public-parameter AMI architecture | ERROR | none |
|
|
@@ -1585,7 +1585,7 @@
|
|
|
1585
1585
|
| `pf-ecs-svc-placement-strategies-max6` | AWS::ECS::Service | A service accepts at most 5 placement strategies | ERROR | none |
|
|
1586
1586
|
| `pf-ecs-svc-random-with-field` | AWS::ECS::Service | A random placement strategy takes no Field | ERROR | none |
|
|
1587
1587
|
| `pf-ecs-svc-registries-multiple` | AWS::ECS::Service | A service accepts at most one service registry | ERROR | none |
|
|
1588
|
-
| `pf-ecs-svc-registries-port-with-awsvpc` | AWS::ECS::Service | awsvpc services address a registry by Port, not ContainerName/ContainerPort | ERROR | none |
|
|
1588
|
+
| `pf-ecs-svc-registries-port-with-awsvpc` | AWS::ECS::Service<br>AWS::ServiceDiscovery::Service | awsvpc services address a registry by Port, not ContainerName/ContainerPort | ERROR | none |
|
|
1589
1589
|
| `pf-ecs-svc-role-with-awsvpc` | AWS::ECS::Service | awsvpc services must use the service-linked role, not Role | ERROR | none |
|
|
1590
1590
|
| `pf-ecs-svc-role-without-load-balancers` | AWS::ECS::Service | Service Role is only valid together with LoadBalancers | ERROR | none |
|
|
1591
1591
|
| `pf-ecs-taskdef-family` | AWS::ECS::TaskDefinition | Task definition Family allows only letters, numbers, hyphen and underscore | ERROR | none |
|
|
@@ -1725,7 +1725,7 @@
|
|
|
1725
1725
|
| `pf-elasticbeanstalk-opt-instances-type-count` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | InstanceTypes takes 1 to 40 distinct instance types | ERROR | none |
|
|
1726
1726
|
| `pf-elasticbeanstalk-opt-logs-retention` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | Log retention takes a supported number of days | ERROR | none |
|
|
1727
1727
|
| `pf-elasticbeanstalk-opt-managed-actions-requires` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | Managed actions need PreferredStartTime and UpdateLevel | ERROR | none |
|
|
1728
|
-
| `pf-elasticbeanstalk-opt-namespace-known` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | OptionSettings namespaces must exist |
|
|
1728
|
+
| `pf-elasticbeanstalk-opt-namespace-known` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | OptionSettings namespaces must exist | WARN | none |
|
|
1729
1729
|
| `pf-elasticbeanstalk-opt-process-range` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | Environment process port and health check timeout are within range | ERROR | none |
|
|
1730
1730
|
| `pf-elasticbeanstalk-opt-regex-catalog` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | Format-checked options must match their pattern | ERROR | none |
|
|
1731
1731
|
| `pf-elasticbeanstalk-opt-rolling-duration` | AWS::ElasticBeanstalk::ConfigurationTemplate<br>AWS::ElasticBeanstalk::Environment | Rolling update Timeout and PauseTime are ISO 8601 durations within limits | ERROR | none |
|
|
@@ -1769,7 +1769,7 @@
|
|
|
1769
1769
|
| `pf-elbv2-lambda-target-protocol` | AWS::ElasticLoadBalancingV2::TargetGroup | Lambda target groups cannot specify Protocol | ERROR | none |
|
|
1770
1770
|
| `pf-elbv2-lb-attr-access-logs-bucket-required` | AWS::ElasticLoadBalancingV2::LoadBalancer | Enabling access logs needs the destination bucket | ERROR | none |
|
|
1771
1771
|
| `pf-elbv2-lb-attr-alb-cross-zone-immutable` | AWS::ElasticLoadBalancingV2::LoadBalancer | Cross-zone load balancing cannot be turned off on an application load balancer | ERROR | none |
|
|
1772
|
-
| `pf-elbv2-lb-attr-alb-only-on-gwlb` | AWS::ElasticLoadBalancingV2::LoadBalancer | A gateway load balancer takes only the two common attributes |
|
|
1772
|
+
| `pf-elbv2-lb-attr-alb-only-on-gwlb` | AWS::ElasticLoadBalancingV2::LoadBalancer | A gateway load balancer takes only the two common attributes | WARN | none |
|
|
1773
1773
|
| `pf-elbv2-lb-attr-boolean-value` | AWS::ElasticLoadBalancingV2::LoadBalancer | A boolean load balancer attribute takes only true or false | ERROR | none |
|
|
1774
1774
|
| `pf-elbv2-lb-attr-client-keep-alive-range` | AWS::ElasticLoadBalancingV2::LoadBalancer | The client keep-alive duration is 60-604800 seconds | ERROR | none |
|
|
1775
1775
|
| `pf-elbv2-lb-attr-connection-logs-bucket-required` | AWS::ElasticLoadBalancingV2::LoadBalancer | Enabling connection logs needs the destination bucket | ERROR | none |
|
|
@@ -1777,8 +1777,8 @@
|
|
|
1777
1777
|
| `pf-elbv2-lb-attr-desync-mitigation-mode` | AWS::ElasticLoadBalancingV2::LoadBalancer | Desync mitigation mode is monitor, defensive or strictest | ERROR | none |
|
|
1778
1778
|
| `pf-elbv2-lb-attr-dns-record-client-routing-policy` | AWS::ElasticLoadBalancingV2::LoadBalancer | The DNS client routing policy is one of three zonal affinity values | ERROR | none |
|
|
1779
1779
|
| `pf-elbv2-lb-attr-duplicate-key` | AWS::ElasticLoadBalancingV2::LoadBalancer | A load balancer attribute key appears at most once | ERROR | none |
|
|
1780
|
-
| `pf-elbv2-lb-attr-key-known` | AWS::ElasticLoadBalancingV2::LoadBalancer | A load balancer attribute key must be one the service recognises |
|
|
1781
|
-
| `pf-elbv2-lb-attr-key-lb-type` | AWS::ElasticLoadBalancingV2::LoadBalancer | A load balancer attribute key is bound to the load balancer type |
|
|
1780
|
+
| `pf-elbv2-lb-attr-key-known` | AWS::ElasticLoadBalancingV2::LoadBalancer | A load balancer attribute key must be one the service recognises | WARN | none |
|
|
1781
|
+
| `pf-elbv2-lb-attr-key-lb-type` | AWS::ElasticLoadBalancingV2::LoadBalancer | A load balancer attribute key is bound to the load balancer type | WARN | none |
|
|
1782
1782
|
| `pf-elbv2-lb-attr-secondary-ips-range` | AWS::ElasticLoadBalancingV2::LoadBalancer | Auto-assigned secondary IPs per subnet are 0-7 | ERROR | none |
|
|
1783
1783
|
| `pf-elbv2-lb-attr-xff-header-processing-mode` | AWS::ElasticLoadBalancingV2::LoadBalancer | X-Forwarded-For processing is append, preserve or remove | ERROR | none |
|
|
1784
1784
|
| `pf-elbv2-lb-dualstack-no-public-ipv4-alb-only` | AWS::ElasticLoadBalancingV2::LoadBalancer | dualstack-without-public-ipv4 is an application load balancer address type | ERROR | none |
|
|
@@ -1805,8 +1805,8 @@
|
|
|
1805
1805
|
| `pf-elbv2-listener-alpn-tls-only` | AWS::ElasticLoadBalancingV2::Listener | ALPN is negotiated on a TLS listener only | ERROR | none |
|
|
1806
1806
|
| `pf-elbv2-listener-alpn-values` | AWS::ElasticLoadBalancingV2::Listener | An ALPN policy is one of five named values | ERROR | none |
|
|
1807
1807
|
| `pf-elbv2-listener-attr-header-name-format` | AWS::ElasticLoadBalancingV2::Listener | A renamed request header is a valid HTTP header name | ERROR | none |
|
|
1808
|
-
| `pf-elbv2-listener-attr-key-known` | AWS::ElasticLoadBalancingV2::Listener | A listener attribute key is one the service knows |
|
|
1809
|
-
| `pf-elbv2-listener-attr-key-lb-type` | AWS::ElasticLoadBalancingV2::Listener<br>AWS::ElasticLoadBalancingV2::LoadBalancer | A listener attribute belongs to the load balancer type it is set on |
|
|
1808
|
+
| `pf-elbv2-listener-attr-key-known` | AWS::ElasticLoadBalancingV2::Listener | A listener attribute key is one the service knows | WARN | none |
|
|
1809
|
+
| `pf-elbv2-listener-attr-key-lb-type` | AWS::ElasticLoadBalancingV2::Listener<br>AWS::ElasticLoadBalancingV2::LoadBalancer | A listener attribute belongs to the load balancer type it is set on | WARN | none |
|
|
1810
1810
|
| `pf-elbv2-listener-attr-server-enabled-value` | AWS::ElasticLoadBalancingV2::Listener | The response server header switch is true or false | ERROR | none |
|
|
1811
1811
|
| `pf-elbv2-listener-attr-tcp-idle-timeout-range` | AWS::ElasticLoadBalancingV2::Listener | The TCP idle timeout runs from 60 to 6000 seconds | ERROR | none |
|
|
1812
1812
|
| `pf-elbv2-listener-attr-x-content-type-options-value` | AWS::ElasticLoadBalancingV2::Listener | X-Content-Type-Options is nosniff | ERROR | none |
|
|
@@ -2010,7 +2010,7 @@
|
|
|
2010
2010
|
| `pf-firehose-snowflake-variant-columns` | AWS::KinesisFirehose::DeliveryStream | Variant content and metadata mapping needs both column names | ERROR | none |
|
|
2011
2011
|
| `pf-firehose-splunk-hec-endpoint-https` | AWS::KinesisFirehose::DeliveryStream | A Splunk HEC endpoint must be an HTTPS URL | ERROR | none |
|
|
2012
2012
|
| `pf-fsx-windows-ad-fqdn-max-47` | AWS::FSx::FileSystem | FSx for Windows Single-AZ 2 and Multi-AZ need an AD FQDN of at most 47 characters | ERROR | none |
|
|
2013
|
-
| `pf-ga-endpoint-group-region-supported` | AWS::GlobalAccelerator::EndpointGroup | EndpointGroupRegion must be a real AWS Region |
|
|
2013
|
+
| `pf-ga-endpoint-group-region-supported` | AWS::GlobalAccelerator::EndpointGroup | EndpointGroupRegion must be a real AWS Region | WARN | none |
|
|
2014
2014
|
| `pf-ga-endpoint-group-unique-per-listener-region` | AWS::GlobalAccelerator::EndpointGroup | A listener holds at most one endpoint group per Region | ERROR | none |
|
|
2015
2015
|
| `pf-ga-flow-logs-require-bucket-and-prefix` | AWS::GlobalAccelerator::Accelerator | Flow logs need both FlowLogsS3Bucket and FlowLogsS3Prefix | ERROR | none |
|
|
2016
2016
|
| `pf-ga-health-check-interval-10-or-30` | AWS::GlobalAccelerator::EndpointGroup | HealthCheckIntervalSeconds must be 10 or 30 | ERROR | none |
|
|
@@ -2018,11 +2018,11 @@
|
|
|
2018
2018
|
| `pf-ga-listener-port-ranges-unique-per-accelerator` | AWS::GlobalAccelerator::Listener | Listeners on one accelerator must not share port ranges | ERROR | none |
|
|
2019
2019
|
| `pf-ga-port-override-endpoint-port-not-in-listener-range` | AWS::GlobalAccelerator::EndpointGroup | A port override must not target a listener port of the accelerator | ERROR | none |
|
|
2020
2020
|
| `pf-ga-port-override-listener-port-in-range` | AWS::GlobalAccelerator::EndpointGroup | A port override must name a listener port the listener accepts | ERROR | none |
|
|
2021
|
-
| `pf-glue-classifier-csv-custom-datatype` | AWS::Glue::Classifier | Custom CSV datatypes come from the supported set |
|
|
2021
|
+
| `pf-glue-classifier-csv-custom-datatype` | AWS::Glue::Classifier | Custom CSV datatypes come from the supported set | WARN | pending-engine |
|
|
2022
2022
|
| `pf-glue-classifier-csv-custom-datatype-flag` | AWS::Glue::Classifier | ContainsCustomDatatype and CustomDatatypeConfigured travel together | ERROR | none |
|
|
2023
2023
|
| `pf-glue-classifier-csv-quote-symbol` | AWS::Glue::Classifier | The CSV quote symbol differs from the delimiter | ERROR | none |
|
|
2024
2024
|
| `pf-glue-classifier-csv-single-char` | AWS::Glue::Classifier | The CSV delimiter and quote symbol are one character each | ERROR | retired: engine F3031, F3033 covers it from aws-cdk-lib 2.268.0 |
|
|
2025
|
-
| `pf-glue-classifier-grok-pattern-names` | AWS::Glue::Classifier | A grok pattern only names built-in or custom patterns |
|
|
2025
|
+
| `pf-glue-classifier-grok-pattern-names` | AWS::Glue::Classifier | A grok pattern only names built-in or custom patterns | WARN | none |
|
|
2026
2026
|
| `pf-glue-classifier-grok-pattern-single-line` | AWS::Glue::Classifier | A grok pattern holds no line break | ERROR | pending-engine |
|
|
2027
2027
|
| `pf-glue-connection-jdbc-credentials` | AWS::Glue::Connection | A JDBC connection needs USERNAME and PASSWORD, or SECRET_ID | ERROR | none |
|
|
2028
2028
|
| `pf-glue-connection-network-physical-requirements` | AWS::Glue::Connection | A NETWORK connection needs PhysicalConnectionRequirements | ERROR | none |
|
|
@@ -2063,7 +2063,7 @@
|
|
|
2063
2063
|
| `pf-glue-ml-transform-max-capacity-with-worker-type` | AWS::Glue::MLTransform | MLTransform MaxCapacity cannot be combined with WorkerType | ERROR | none |
|
|
2064
2064
|
| `pf-glue-ml-transform-worker-type-and-number-of-workers` | AWS::Glue::MLTransform | MLTransform WorkerType and NumberOfWorkers have to be set together | ERROR | none |
|
|
2065
2065
|
| `pf-glue-partition-values-match-partition-keys` | AWS::Glue::Partition | Partition Values must be as many as the table's PartitionKeys | ERROR | none |
|
|
2066
|
-
| `pf-glue-schema-compatibility` | AWS::Glue::Schema | Schema Compatibility must be one of the seven documented modes |
|
|
2066
|
+
| `pf-glue-schema-compatibility` | AWS::Glue::Schema | Schema Compatibility must be one of the seven documented modes | WARN | cfn-schema |
|
|
2067
2067
|
| `pf-glue-schema-definition-format` | AWS::Glue::Schema | SchemaDefinition must parse as the declared DataFormat | ERROR | none |
|
|
2068
2068
|
| `pf-glue-schema-name-charset` | AWS::Glue::Schema | A schema name is limited to letters, digits and - _ $ | ERROR | pending-engine |
|
|
2069
2069
|
| `pf-glue-security-configuration-kms-key` | AWS::Glue::SecurityConfiguration | KMS encryption modes need a KmsKeyArn | ERROR | none |
|
|
@@ -2220,7 +2220,7 @@
|
|
|
2220
2220
|
| `pf-lambda-alias-version-weight-range` | AWS::Lambda::Alias | A routing weight is a fraction between 0 and 1 | ERROR | none |
|
|
2221
2221
|
| `pf-lambda-capacity-provider-arn-region` | AWS::Lambda::Function | A capacity provider lives in the deploy region | ERROR | none |
|
|
2222
2222
|
| `pf-lambda-capacity-provider-json-log-only` | AWS::Lambda::Function | Managed-instance functions log in JSON | ERROR | none |
|
|
2223
|
-
| `pf-lambda-capacity-provider-runtime` | AWS::Lambda::Function | Managed instances support only the newer runtimes |
|
|
2223
|
+
| `pf-lambda-capacity-provider-runtime` | AWS::Lambda::Function | Managed instances support only the newer runtimes | WARN | none |
|
|
2224
2224
|
| `pf-lambda-cfnresponse-import` | AWS::Lambda::Function | Inline Python code must import cfnresponse with the exact statement 'import cfnresponse' | ERROR | none |
|
|
2225
2225
|
| `pf-lambda-code-s3-pair` | AWS::Lambda::Function | S3-based Code needs both S3Bucket and S3Key | ERROR | none |
|
|
2226
2226
|
| `pf-lambda-code-signing-arn-region` | AWS::Lambda::Function | A code signing config lives in the deploy region | ERROR | none |
|
|
@@ -2302,7 +2302,7 @@
|
|
|
2302
2302
|
| `pf-lambda-imageconfig-requires-image` | AWS::Lambda::Function | ImageConfig belongs to container-image functions | ERROR | none |
|
|
2303
2303
|
| `pf-lambda-layer-arn-region` | AWS::Lambda::Function | A layer lives in the deploy region | ERROR | none |
|
|
2304
2304
|
| `pf-lambda-layer-compatible-architectures-enum` | AWS::Lambda::LayerVersion | CompatibleArchitectures are x86_64 or arm64 | ERROR | pending-engine |
|
|
2305
|
-
| `pf-lambda-layer-compatible-runtimes-enum` | AWS::Lambda::LayerVersion | CompatibleRuntimes are known runtime identifiers |
|
|
2305
|
+
| `pf-lambda-layer-compatible-runtimes-enum` | AWS::Lambda::LayerVersion | CompatibleRuntimes are known runtime identifiers | WARN | pending-engine |
|
|
2306
2306
|
| `pf-lambda-layer-content-storage-mode-enum` | AWS::Lambda::LayerVersion | S3ObjectStorageMode is COPY or REFERENCE | ERROR | pending-engine |
|
|
2307
2307
|
| `pf-lambda-layer-cross-account-needs-permission` | AWS::Lambda::Function | A cross-account layer needs a share | WARN | none |
|
|
2308
2308
|
| `pf-lambda-layer-name-pattern` | AWS::Lambda::LayerVersion | A layer name is letters, digits, dashes and underscores | ERROR | retired: engine F3031 covers it from aws-cdk-lib 2.278.0 |
|
|
@@ -2388,7 +2388,7 @@
|
|
|
2388
2388
|
| `pf-logs-subscription-firehose-role` | AWS::Logs::SubscriptionFilter | A Firehose destination needs RoleArn | ERROR | none |
|
|
2389
2389
|
| `pf-logs-subscription-kinesis-role` | AWS::Logs::SubscriptionFilter | A Kinesis destination needs RoleArn | ERROR | none |
|
|
2390
2390
|
| `pf-logs-subscription-lambda-no-role` | AWS::Logs::SubscriptionFilter | A Lambda destination must not carry RoleArn | ERROR | none |
|
|
2391
|
-
| `pf-logs-transformer-grok-pattern` | AWS::Logs::Transformer | A grok match may only use supported pattern names |
|
|
2391
|
+
| `pf-logs-transformer-grok-pattern` | AWS::Logs::Transformer | A grok match may only use supported pattern names | WARN | none |
|
|
2392
2392
|
| `pf-logs-transformer-parser-first` | AWS::Logs::Transformer | A transformer config must begin with a parser | ERROR | none |
|
|
2393
2393
|
| `pf-mediaconvert-aud-aac-cbr-combo` | AWS::MediaConvert::Preset | AAC CBR needs a supported profile / coding mode / sample rate / bitrate combination | ERROR | none |
|
|
2394
2394
|
| `pf-mediaconvert-aud-aac-vbr-combo` | AWS::MediaConvert::Preset | AAC VBR needs VbrQuality and the LC profile | ERROR | none |
|
|
@@ -2431,7 +2431,7 @@
|
|
|
2431
2431
|
| `pf-mediaconvert-rc-interlace-optimize` | AWS::MediaConvert::Preset | Optimized interlacing needs an interlaced output and no hard telecine | ERROR | none |
|
|
2432
2432
|
| `pf-mediaconvert-rc-qvbr-maxbitrate` | AWS::MediaConvert::Preset | AV1 QVBR needs MaxBitrate | ERROR | none |
|
|
2433
2433
|
| `pf-mediaconvert-rc-slowpal-framerate` | AWS::MediaConvert::Preset | SlowPal needs a specified 25 fps framerate | ERROR | none |
|
|
2434
|
-
| `pf-mediaconvert-sj-enum-value` | AWS::MediaConvert::Preset | The video codec and the container must be values the service lists |
|
|
2434
|
+
| `pf-mediaconvert-sj-enum-value` | AWS::MediaConvert::Preset | The video codec and the container must be values the service lists | WARN | none |
|
|
2435
2435
|
| `pf-mediaconvert-sj-string-format` | AWS::MediaConvert::JobTemplate | An HLS output group Destination must be an s3:// URL | ERROR | none |
|
|
2436
2436
|
| `pf-memorydb-data-tiering-node-type` | AWS::MemoryDB::Cluster | DataTiering only works on r6gd node types | ERROR | none |
|
|
2437
2437
|
| `pf-memorydb-engine` | AWS::MemoryDB::Cluster | MemoryDB runs Valkey or Redis, not Memcached | ERROR | none |
|
|
@@ -2452,9 +2452,9 @@
|
|
|
2452
2452
|
| `pf-msk-cluster-name-pattern` | AWS::MSK::Cluster | An MSK cluster name must be alphanumeric and may only contain hyphens after the first character | ERROR | none |
|
|
2453
2453
|
| `pf-msk-clusterpolicy-resource-matches-cluster` | AWS::MSK::ClusterPolicy | A cluster policy's Resource must be the cluster the policy is attached to | ERROR | none |
|
|
2454
2454
|
| `pf-msk-config-custom-advertised-listeners-format` | AWS::MSK::Configuration | custom.advertised.listeners must use the LISTENER_NAME://host:port+{broker_id} form | ERROR | none |
|
|
2455
|
-
| `pf-msk-config-kafka-versions-unknown` | AWS::MSK::Configuration | KafkaVersionsList must name Apache Kafka versions Amazon MSK knows |
|
|
2455
|
+
| `pf-msk-config-kafka-versions-unknown` | AWS::MSK::Configuration | KafkaVersionsList must name Apache Kafka versions Amazon MSK knows | WARN | none |
|
|
2456
2456
|
| `pf-msk-config-name-pattern` | AWS::MSK::Configuration | An MSK configuration name must be alphanumeric and may only contain hyphens after the first character | ERROR | none |
|
|
2457
|
-
| `pf-msk-config-server-properties-allowed-keys` | AWS::MSK::Configuration | An MSK configuration may only set Amazon MSK's supported Apache Kafka properties |
|
|
2457
|
+
| `pf-msk-config-server-properties-allowed-keys` | AWS::MSK::Configuration | An MSK configuration may only set Amazon MSK's supported Apache Kafka properties | WARN | none |
|
|
2458
2458
|
| `pf-msk-express-kafka-version` | AWS::MSK::Cluster | Express brokers do not run every Apache Kafka version | ERROR | none |
|
|
2459
2459
|
| `pf-msk-express-no-ebs-storage` | AWS::MSK::Cluster | An MSK cluster with Express brokers may not declare StorageInfo | ERROR | none |
|
|
2460
2460
|
| `pf-msk-express-no-storage-mode` | AWS::MSK::Cluster | An MSK cluster with Express brokers may not declare StorageMode | ERROR | none |
|
|
@@ -2636,7 +2636,7 @@
|
|
|
2636
2636
|
| `pf-pipes-cross-region` | AWS::Pipes::Pipe | A pipe's source and target must be in the pipe's Region | ERROR | none |
|
|
2637
2637
|
| `pf-pipes-enrichment-type` | AWS::Pipes::Pipe | Pipe enrichment must be Lambda, Step Functions, API Gateway or an API destination | ERROR | none |
|
|
2638
2638
|
| `pf-pipes-filter-pattern` | AWS::Pipes::Pipe | A pipe filter Pattern must be a valid, non-empty event pattern | ERROR | none |
|
|
2639
|
-
| `pf-pipes-input-template-variables` | AWS::Pipes::Pipe | InputTemplate may only use the aws.pipes.* reserved variables |
|
|
2639
|
+
| `pf-pipes-input-template-variables` | AWS::Pipes::Pipe | InputTemplate may only use the aws.pipes.* reserved variables | WARN | none |
|
|
2640
2640
|
| `pf-pipes-log-configuration` | AWS::Pipes::Pipe | A log level other than OFF needs a destination, and S3 logs must be JSON | ERROR | none |
|
|
2641
2641
|
| `pf-pipes-source-parameters` | AWS::Pipes::Pipe | Source parameters must match the source, and stream sources require theirs | ERROR | none |
|
|
2642
2642
|
| `pf-pipes-target-parameters` | AWS::Pipes::Pipe | Target parameters must match the target's resource type | ERROR | none |
|
|
@@ -2783,9 +2783,9 @@
|
|
|
2783
2783
|
| `pf-route53-geolocation-duplicate-location` | AWS::Route53::RecordSetGroup | Two geolocation record sets cannot claim the same location | ERROR | none |
|
|
2784
2784
|
| `pf-route53-geolocation-exclusive` | AWS::Route53::RecordSet | GeoLocation cannot specify both ContinentCode and CountryCode | ERROR | retired: engine F3018 covers it from aws-cdk-lib 2.269.0 |
|
|
2785
2785
|
| `pf-route53-geolocation-subdivision-code-value` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoLocation.SubdivisionCode must be a US state or territory code | ERROR | none |
|
|
2786
|
-
| `pf-route53-geolocation-subdivision-requires-us` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoLocation.SubdivisionCode is only valid with CountryCode US |
|
|
2786
|
+
| `pf-route53-geolocation-subdivision-requires-us` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoLocation.SubdivisionCode is only valid with CountryCode US or UA | WARN | none |
|
|
2787
2787
|
| `pf-route53-geolocation-unsupported-country` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | Four ISO country codes have no Route 53 geolocation coverage | ERROR | none |
|
|
2788
|
-
| `pf-route53-geoproximity-awsregion-value` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoProximityLocation.AWSRegion must be an existing AWS Region |
|
|
2788
|
+
| `pf-route53-geoproximity-awsregion-value` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoProximityLocation.AWSRegion must be an existing AWS Region | WARN | none |
|
|
2789
2789
|
| `pf-route53-geoproximity-bias-range` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoProximityLocation.Bias must be -99 to 99 | ERROR | retired: engine F3034 covers it from aws-cdk-lib 2.269.0 |
|
|
2790
2790
|
| `pf-route53-geoproximity-exclusive` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoProximityLocation takes exactly one of AWSRegion, LocalZoneGroup or Coordinates | ERROR | retired: engine F3018 covers it from aws-cdk-lib 2.269.0 |
|
|
2791
2791
|
| `pf-route53-geoproximity-localzonegroup-format` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | GeoProximityLocation.LocalZoneGroup must be a Local Zone group name | ERROR | none |
|
|
@@ -2812,14 +2812,14 @@
|
|
|
2812
2812
|
| `pf-route53-healthcheck-port-calculated` | AWS::Route53::HealthCheck | Port cannot be set on a CALCULATED health check | ERROR | none |
|
|
2813
2813
|
| `pf-route53-healthcheck-port-cloudwatch-metric` | AWS::Route53::HealthCheck | Port cannot be set on a CLOUDWATCH_METRIC health check | ERROR | none |
|
|
2814
2814
|
| `pf-route53-healthcheck-regions-endpoint-types-only` | AWS::Route53::HealthCheck | Regions is only valid on an endpoint health check | ERROR | none |
|
|
2815
|
-
| `pf-route53-healthcheck-regions-enum` | AWS::Route53::HealthCheck | Health checkers can only be placed in the eight regions Route 53 offers |
|
|
2815
|
+
| `pf-route53-healthcheck-regions-enum` | AWS::Route53::HealthCheck | Health checkers can only be placed in the eight regions Route 53 offers | WARN | none |
|
|
2816
2816
|
| `pf-route53-healthcheck-requestinterval-discrete` | AWS::Route53::HealthCheck | RequestInterval must be exactly 10 or 30 seconds | ERROR | none |
|
|
2817
2817
|
| `pf-route53-healthcheck-requestinterval-recovery-control` | AWS::Route53::HealthCheck | RequestInterval cannot be set on a RECOVERY_CONTROL health check | WARN | none |
|
|
2818
2818
|
| `pf-route53-healthcheck-resourcepath-http-only` | AWS::Route53::HealthCheck | ResourcePath is only valid on an HTTP or HTTPS health check | ERROR | none |
|
|
2819
2819
|
| `pf-route53-healthcheck-routingcontrolarn-required` | AWS::Route53::HealthCheck | A RECOVERY_CONTROL health check needs a RoutingControlArn | ERROR | none |
|
|
2820
2820
|
| `pf-route53-healthcheck-searchstring-required-strmatch` | AWS::Route53::HealthCheck | A string-matching health check needs a SearchString | ERROR | none |
|
|
2821
2821
|
| `pf-route53-healthcheck-searchstring-strmatch-only` | AWS::Route53::HealthCheck | SearchString is only valid on a string-matching health check | ERROR | none |
|
|
2822
|
-
| `pf-route53-healthcheck-type-enum` | AWS::Route53::HealthCheck | HealthCheckConfig.Type must be one of the eight health check types |
|
|
2822
|
+
| `pf-route53-healthcheck-type-enum` | AWS::Route53::HealthCheck | HealthCheckConfig.Type must be one of the eight health check types | WARN | none |
|
|
2823
2823
|
| `pf-route53-hostedzone-duplicate-private-zone-vpc` | AWS::Route53::HostedZone | Two private hosted zones for the same domain cannot share a VPC | ERROR | none |
|
|
2824
2824
|
| `pf-route53-hostedzone-name-charset` | AWS::Route53::HostedZone | A hosted zone name can only hold printable ASCII without spaces | ERROR | none |
|
|
2825
2825
|
| `pf-route53-hostedzone-name-label-63` | AWS::Route53::HostedZone | Every label of a hosted zone name must be 63 bytes or fewer | ERROR | none |
|
|
@@ -2845,7 +2845,7 @@
|
|
|
2845
2845
|
| `pf-route53-keysigningkey-name-unique-per-zone` | AWS::Route53::KeySigningKey | Two key signing keys in one hosted zone cannot share a name | ERROR | retired: engine E3019 covers it from aws-cdk-lib 2.268.0 |
|
|
2846
2846
|
| `pf-route53-keysigningkey-status-enum` | AWS::Route53::KeySigningKey | A key signing key is either ACTIVE or INACTIVE | ERROR | pending-engine |
|
|
2847
2847
|
| `pf-route53-latency-one-record-per-region` | AWS::Route53::RecordSetGroup | A latency group may hold only one record set per Region | ERROR | none |
|
|
2848
|
-
| `pf-route53-latency-region-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | The latency Region must be an existing AWS Region |
|
|
2848
|
+
| `pf-route53-latency-region-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | The latency Region must be an existing AWS Region | WARN | none |
|
|
2849
2849
|
| `pf-route53-mixed-routing-policy-same-name-type` | AWS::Route53::RecordSetGroup | Record sets sharing a name and type must use the same routing policy | ERROR | none |
|
|
2850
2850
|
| `pf-route53-multivalue-alias` | AWS::Route53::RecordSet | MultiValueAnswer cannot be combined with AliasTarget | ERROR | none |
|
|
2851
2851
|
| `pf-route53-naptr-field-count` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | A NAPTR record value needs exactly 6 space-separated fields | ERROR | none |
|
|
@@ -2863,7 +2863,7 @@
|
|
|
2863
2863
|
| `pf-route53-record-name-punycode` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | A record name must be ASCII (IDNs go in as Punycode) | ERROR | none |
|
|
2864
2864
|
| `pf-route53-record-name-total-length` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | A record name is limited to 253 characters | ERROR | none |
|
|
2865
2865
|
| `pf-route53-record-name-wildcard-ns` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | An NS record set cannot use a wildcard name | ERROR | none |
|
|
2866
|
-
| `pf-route53-record-type-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | Type must be one of the 17 record types Route 53 supports |
|
|
2866
|
+
| `pf-route53-record-type-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | Type must be one of the 17 record types Route 53 supports | WARN | none |
|
|
2867
2867
|
| `pf-route53-record-type-routing-policy` | AWS::Route53::RecordSet | NS records take no routing policy; CNAME cannot be multivalue | ERROR | none |
|
|
2868
2868
|
| `pf-route53-record-value-source` | AWS::Route53::RecordSet | A record set needs AliasTarget or the full TTL+ResourceRecords pair | ERROR | none |
|
|
2869
2869
|
| `pf-route53-recordsetgroup-max-1000-elements` | AWS::Route53::RecordSetGroup | One RecordSetGroup may carry at most 1000 ResourceRecords values in total | ERROR | none |
|
|
@@ -2881,7 +2881,7 @@
|
|
|
2881
2881
|
| `pf-route53-sshfp-fingerprint-hex` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | The SSHFP fingerprint must be hexadecimal | ERROR | none |
|
|
2882
2882
|
| `pf-route53-sshfp-hash-type-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | The SSHFP fingerprint type must be 1 or 2 | ERROR | none |
|
|
2883
2883
|
| `pf-route53-svcb-svcpriority-range` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | The SVCB SvcPriority must be 0-32767 | ERROR | none |
|
|
2884
|
-
| `pf-route53-svcparams-key-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | SvcParams keys are limited to the eight defined names |
|
|
2884
|
+
| `pf-route53-svcparams-key-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | SvcParams keys are limited to the eight defined names | WARN | none |
|
|
2885
2885
|
| `pf-route53-svcparams-key-value-format` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | SvcParams that take a value must be written as key=value | ERROR | none |
|
|
2886
2886
|
| `pf-route53-svcparams-no-default-alpn-requires-alpn` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | no-default-alpn may only be used together with alpn | ERROR | none |
|
|
2887
2887
|
| `pf-route53-tlsa-certificate-usage-enum` | AWS::Route53::RecordSet<br>AWS::Route53::RecordSetGroup | The TLSA certificate usage must be 0-3 | ERROR | none |
|
|
@@ -2934,7 +2934,7 @@
|
|
|
2934
2934
|
| `pf-route53resolver-firewallrule-override-attrs-require-override` | AWS::Route53Resolver::FirewallRuleGroup | BlockOverride properties are only allowed when BlockResponse is OVERRIDE | ERROR | none |
|
|
2935
2935
|
| `pf-route53resolver-firewallrule-override-requires-all-three` | AWS::Route53Resolver::FirewallRuleGroup | An OVERRIDE DNS Firewall rule must set all three BlockOverride properties | ERROR | none |
|
|
2936
2936
|
| `pf-route53resolver-firewallrule-priority-unique` | AWS::Route53Resolver::FirewallRuleGroup | DNS Firewall rule priorities must be unique inside a rule group | ERROR | none |
|
|
2937
|
-
| `pf-route53resolver-firewallrule-qtype-values` | AWS::Route53Resolver::FirewallRuleGroup | A DNS Firewall rule Qtype must be a known record type or TYPENUMBER |
|
|
2937
|
+
| `pf-route53resolver-firewallrule-qtype-values` | AWS::Route53Resolver::FirewallRuleGroup | A DNS Firewall rule Qtype must be a known record type or TYPENUMBER | WARN | none |
|
|
2938
2938
|
| `pf-route53resolver-firewallrule-redirectionaction-enum` | AWS::Route53Resolver::FirewallRuleGroup | A DNS Firewall FirewallDomainRedirectionAction must be spelled in upper case | ERROR | pending-engine |
|
|
2939
2939
|
| `pf-route53resolver-firewallrule-ruletype-toplevel-exclusive` | AWS::Route53Resolver::FirewallRuleGroup | FirewallRuleType cannot be combined with FirewallDomainListId or DnsThreatProtection | ERROR | none |
|
|
2940
2940
|
| `pf-route53resolver-firewallrule-threat-action-not-allow` | AWS::Route53Resolver::FirewallRuleGroup | A DnsThreatProtection rule cannot use Action ALLOW | ERROR | none |
|
|
@@ -2994,7 +2994,7 @@
|
|
|
2994
2994
|
| `pf-s3-metadata-v1-v2-exclusive` | AWS::S3::Bucket | MetadataConfiguration and MetadataTableConfiguration cannot both be set | ERROR | none |
|
|
2995
2995
|
| `pf-s3-notification-destination-region` | AWS::S3::Bucket | A notification destination must live in the bucket region | ERROR | none |
|
|
2996
2996
|
| `pf-s3-notification-duplicate-filter-type` | AWS::S3::Bucket | A notification filter may hold one prefix rule and one suffix rule | ERROR | none |
|
|
2997
|
-
| `pf-s3-notification-event-name` | AWS::S3::Bucket | The notification Event must be an S3 event type |
|
|
2997
|
+
| `pf-s3-notification-event-name` | AWS::S3::Bucket | The notification Event must be an S3 event type | WARN | none |
|
|
2998
2998
|
| `pf-s3-notification-fifo-queue` | AWS::S3::Bucket | S3 event notifications cannot target a FIFO SQS queue | ERROR | none |
|
|
2999
2999
|
| `pf-s3-notification-fifo-topic` | AWS::S3::Bucket | S3 event notifications cannot target a FIFO SNS topic | ERROR | none |
|
|
3000
3000
|
| `pf-s3-notification-overlapping-filters` | AWS::S3::Bucket | Notification entries must not overlap for the same event type | ERROR | none |
|
|
@@ -3009,7 +3009,7 @@
|
|
|
3009
3009
|
| `pf-s3-replication-priority-duplicate` | AWS::S3::Bucket | Replication rule priorities must be unique | ERROR | none |
|
|
3010
3010
|
| `pf-s3-replication-requires-versioning` | AWS::S3::Bucket | ReplicationConfiguration requires versioning to be enabled on the source bucket | ERROR | none |
|
|
3011
3011
|
| `pf-s3-replication-rtc-minutes-15` | AWS::S3::Bucket | Replication Time Control accepts only 15 minutes | ERROR | none |
|
|
3012
|
-
| `pf-s3-replication-rtc-needs-metrics` | AWS::S3::Bucket | Replication Time Control needs Metrics
|
|
3012
|
+
| `pf-s3-replication-rtc-needs-metrics` | AWS::S3::Bucket | Replication Time Control (ReplicationTime) needs Metrics | ERROR | none |
|
|
3013
3013
|
| `pf-s3-replication-sse-kms-needs-replica-key` | AWS::S3::Bucket | Replicating SSE-KMS objects requires a replica KMS key | ERROR | none |
|
|
3014
3014
|
| `pf-s3-replication-tag-filter-delete-marker` | AWS::S3::Bucket | A tag-filtered replication rule must disable delete marker replication | ERROR | none |
|
|
3015
3015
|
| `pf-s3-replication-v1-v2-mixed` | AWS::S3::Bucket | A replication rule must not mix the V1 Prefix with the V2 Filter | ERROR | none |
|
|
@@ -3028,7 +3028,7 @@
|
|
|
3028
3028
|
| `pf-s3-website-replace-key-exclusive` | AWS::S3::Bucket | ReplaceKeyWith and ReplaceKeyPrefixWith are mutually exclusive | ERROR | none |
|
|
3029
3029
|
| `pf-s3-website-routing-rules-need-index` | AWS::S3::Bucket | RoutingRules require an IndexDocument | ERROR | none |
|
|
3030
3030
|
| `pf-s3express-ap-name-suffix` | AWS::S3Express::AccessPoint | An S3 Express access point name must end with --<availability-zone-id>--xa-s3 | ERROR | none |
|
|
3031
|
-
| `pf-s3express-ap-scope-permissions` | AWS::S3Express::AccessPoint | Access point scope permissions are bare API names, not s3: actions |
|
|
3031
|
+
| `pf-s3express-ap-scope-permissions` | AWS::S3Express::AccessPoint | Access point scope permissions are bare API names, not s3: actions | WARN | cfn-schema |
|
|
3032
3032
|
| `pf-s3express-ap-zone-mismatch` | AWS::S3Express::AccessPoint | An S3 Express access point must carry the same zone id as its bucket | ERROR | none |
|
|
3033
3033
|
| `pf-s3express-bucket-key-enabled-false` | AWS::S3Express::DirectoryBucket | A directory bucket must keep BucketKeyEnabled true | ERROR | none |
|
|
3034
3034
|
| `pf-s3express-bucket-location-region` | AWS::S3Express::DirectoryBucket | LocationName must name a zone in the region the stack deploys to | ERROR | none |
|
|
@@ -3112,7 +3112,7 @@
|
|
|
3112
3112
|
| `pf-ses-dkim-next-signing-key-length-easy-dkim-only` | AWS::SES::EmailIdentity | NextSigningKeyLength cannot be combined with the BYODKIM selector and key | ERROR | none |
|
|
3113
3113
|
| `pf-ses-dkim-private-key-base64` | AWS::SES::EmailIdentity | A BYODKIM private key must be bare base64, not a PEM block | ERROR | none |
|
|
3114
3114
|
| `pf-ses-dkim-signing-selector-charset` | AWS::SES::EmailIdentity | A BYODKIM selector must be a single DNS label without a leading or trailing hyphen | ERROR | none |
|
|
3115
|
-
| `pf-ses-event-destination-matching-event-types-enum` | AWS::SES::ConfigurationSetEventDestination | MatchingEventTypes takes only the ten SES event types |
|
|
3115
|
+
| `pf-ses-event-destination-matching-event-types-enum` | AWS::SES::ConfigurationSetEventDestination | MatchingEventTypes takes only the ten SES event types | WARN | none |
|
|
3116
3116
|
| `pf-ses-event-destination-matching-event-types-nonempty` | AWS::SES::ConfigurationSetEventDestination | An event destination must match at least one event type | ERROR | none |
|
|
3117
3117
|
| `pf-ses-event-destination-requires-destination` | AWS::SES::ConfigurationSetEventDestination | An event destination must carry one destination block | ERROR | none |
|
|
3118
3118
|
| `pf-ses-eventbridge-destination-bus-region` | AWS::SES::ConfigurationSetEventDestination | An EventBridge event destination must be in the deployment Region | ERROR | none |
|
|
@@ -3244,7 +3244,7 @@
|
|
|
3244
3244
|
| `pf-avp-schema-appliesto-principaltypes-declared` | AWS::VerifiedPermissions::PolicyStore | appliesTo.principalTypes names entity types the schema declares | ERROR | none |
|
|
3245
3245
|
| `pf-avp-schema-appliesto-resourcetypes-declared` | AWS::VerifiedPermissions::PolicyStore | appliesTo.resourceTypes names entity types the schema declares | ERROR | none |
|
|
3246
3246
|
| `pf-avp-schema-attribute-entity-name-declared` | AWS::VerifiedPermissions::PolicyStore | An Entity attribute names an entity type the schema declares | ERROR | none |
|
|
3247
|
-
| `pf-avp-schema-attribute-type-known` | AWS::VerifiedPermissions::PolicyStore | A type name is a Cedar built-in or something the schema declares |
|
|
3247
|
+
| `pf-avp-schema-attribute-type-known` | AWS::VerifiedPermissions::PolicyStore | A type name is a Cedar built-in or something the schema declares | WARN | none |
|
|
3248
3248
|
| `pf-avp-schema-entity-type-identifier` | AWS::VerifiedPermissions::PolicyStore | An entity type name is a Cedar identifier | ERROR | none |
|
|
3249
3249
|
| `pf-avp-schema-entity-type-not-action` | AWS::VerifiedPermissions::PolicyStore | Action is not declared in entityTypes | ERROR | none |
|
|
3250
3250
|
| `pf-avp-schema-entity-type-reserved-word` | AWS::VerifiedPermissions::PolicyStore | An entity type name is not a Cedar reserved word | ERROR | none |
|
package/lib/index.js
CHANGED
|
@@ -19,7 +19,7 @@ const rules_generated_1 = require("./rules.generated");
|
|
|
19
19
|
* Preflight.apply(app);
|
|
20
20
|
*/
|
|
21
21
|
class Preflight {
|
|
22
|
-
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-preflight.Preflight", version: "1.
|
|
22
|
+
static [JSII_RTTI_SYMBOL_1] = { fqn: "cdk-preflight.Preflight", version: "1.19.0" };
|
|
23
23
|
/**
|
|
24
24
|
* Register the cdk-preflight rules on an App or Stage.
|
|
25
25
|
*/
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Which resources a template switches off with a `Condition` that is false
|
|
3
|
+
* under the same values the engine resolves properties with (parameter
|
|
4
|
+
* defaults and the stack's pseudo parameters).
|
|
5
|
+
*
|
|
6
|
+
* The engine resolves a property through a parameter default, but hands every
|
|
7
|
+
* resource to the rules whatever its `Condition` says (issue #408), and walks both
|
|
8
|
+
* branches of every `Fn::If`. A resource whose condition is false under those
|
|
9
|
+
* defaults is never created, and a branch that is never taken is never deployed, so
|
|
10
|
+
* a finding on either is a false positive by construction. Rules cannot see the raw
|
|
11
|
+
* condition expressions (`input.conditions` only carries a lossy summary such as
|
|
12
|
+
* `Not(Equals(?, ""))`), so the plugins evaluate them here, on the raw template, and
|
|
13
|
+
* hand the engine the template specialized to what is proven (`specializeTemplate`).
|
|
14
|
+
*
|
|
15
|
+
* The evaluation is three-valued. Anything it cannot evaluate (a parameter
|
|
16
|
+
* without a default, an unknown pseudo parameter, an intrinsic it does not
|
|
17
|
+
* model) is `undefined`, and an undefined condition keeps the resource and the whole
|
|
18
|
+
* `Fn::If` — the behaviour before this module existed. Only a proven condition
|
|
19
|
+
* changes anything.
|
|
20
|
+
*/
|
|
21
|
+
/** What the stack's own environment says about the pseudo parameters. */
|
|
22
|
+
export interface PseudoValues {
|
|
23
|
+
readonly region?: string;
|
|
24
|
+
readonly accountId?: string;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Logical IDs of the resources whose `Condition` is proven false.
|
|
28
|
+
* A template that is not an object, or has no conditional resources, gives an empty set.
|
|
29
|
+
*/
|
|
30
|
+
export declare function inactiveResources(template: unknown, pseudo?: PseudoValues): Set<string>;
|
|
31
|
+
/**
|
|
32
|
+
* The template as it is deployed under the defaults, as far as that is proven:
|
|
33
|
+
*
|
|
34
|
+
* - resources (and outputs) whose `Condition` is proven false are removed, and so are
|
|
35
|
+
* `DependsOn` entries that point at a removed resource;
|
|
36
|
+
* - an `Fn::If` whose condition is proven is replaced by the branch that is taken, and a taken
|
|
37
|
+
* `{"Ref": "AWS::NoValue"}` removes the property (or list element) altogether;
|
|
38
|
+
* - a parameter of an SSM type loses its `Default` (the parameter name, not its value).
|
|
39
|
+
*
|
|
40
|
+
* The engine walks both branches of an `Fn::If` (a value in the branch that is never taken still
|
|
41
|
+
* fires a rule), and it hands every resource to the rules whatever its `Condition` says (#408). A
|
|
42
|
+
* reference from a live resource to a removed one can only sit in a branch that is not taken
|
|
43
|
+
* (CloudFormation rejects it anywhere else), so it goes away with the branch.
|
|
44
|
+
*
|
|
45
|
+
* Anything undecided is left exactly as it was. Returns undefined when nothing changes.
|
|
46
|
+
*/
|
|
47
|
+
export declare function specializeTemplate(template: unknown, pseudo?: PseudoValues): unknown | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* specializeTemplate on a file. Writes the specialized template next to a temp dir and returns its
|
|
50
|
+
* path, or undefined when the template is unreadable or nothing changes (then validate the original).
|
|
51
|
+
*/
|
|
52
|
+
export declare function specializeTemplateFile(templatePath: string, pseudo: PseudoValues, tmpDir: string): string | undefined;
|