mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 22:11:36 -05:00
fix(cloudformation): publish RuleName and the RDS group ARNs the current registry schemas declare (#4135)
The current CloudFormation registry schemas changed the readOnlyProperties of six resource types, and CfnSchemaCoverageTest, which only runs where the schema corpus is present, has failed against them since. AWS::Events::Rule now declares RuleName, and AWS::RDS::DBSubnetGroup and AWS::RDS::DBParameterGroup declare DBSubnetGroupArn and DBParameterGroupArn. The provisioners set all three; until now Fn::GetAtt on them resolved to the literal LogicalId.Attribute string. The two RDS models already carry the ARN. AWS::RDS::DBInstance now declares StorageOperationStatus and StorageOperationPercentProgress, which Floci does not emulate, so both are recorded as gaps. AWS::CertificateManager::Certificate and AWS::Route53::RecordSet no longer declare Id, so their gap rows go.
This commit is contained in:
1 parent
69e371721b
commit
a0e3b6b674
7 files changed
+151
-2
No files matched your search
+1
@@ -141,6 +141,7 @@ public class EventsCfnProvisioner implements CfnResourceProvisioner {
|
||||
state, description, roleArn, Map.of(), ctx.region());
|
||||
r.setPhysicalId(ruleName);
|
||||
r.getAttributes().put("Arn", rule.getArn());
|
||||
r.getAttributes().put("RuleName", ruleName);
|
||||
// A rule on a custom bus is keyed by that bus; remember it so the resource delete can target
|
||||
// the right bus (the physical id is only the rule name, which resolves to the default bus).
|
||||
if (busName != null && !busName.isBlank()) {
|
||||
|
||||
+6
@@ -222,6 +222,9 @@ public class RdsCfnProvisioner implements CfnResourceProvisioner {
|
||||
}
|
||||
r.setPhysicalId(group.getDbSubnetGroupName());
|
||||
r.getAttributes().put("DBSubnetGroupName", group.getDbSubnetGroupName());
|
||||
if (group.getDbSubnetGroupArn() != null) {
|
||||
r.getAttributes().put("DBSubnetGroupArn", group.getDbSubnetGroupArn());
|
||||
}
|
||||
}
|
||||
|
||||
private void provisionDbParameterGroup(StackResource r, JsonNode props, CloudFormationTemplateEngine engine,
|
||||
@@ -254,6 +257,9 @@ public class RdsCfnProvisioner implements CfnResourceProvisioner {
|
||||
}
|
||||
r.setPhysicalId(group.getDbParameterGroupName());
|
||||
r.getAttributes().put("DBParameterGroupName", group.getDbParameterGroupName());
|
||||
if (group.getDbParameterGroupArn() != null) {
|
||||
r.getAttributes().put("DBParameterGroupArn", group.getDbParameterGroupArn());
|
||||
}
|
||||
}
|
||||
|
||||
private void provisionDbClusterParameterGroup(StackResource r, JsonNode props,
|
||||
|
||||
Reference in new issue
Block a user