Skip to content

CloudControlApi GetResource fails with validation error at 'dBProxyName' #34

@greg5123334

Description

@greg5123334

When trying to get details for a AWS::RDS::DBProxyTargetGroup via the Cloud Control API, the request fails with a validation error.

Reproduction

Deploy AWS::RDS::DBProxyTargetGroup

cluster = rds.DatabaseCluster(self, "Database",
                                cluster_identifier=cluster_identifier,
                                engine=rds.DatabaseClusterEngine.aurora_postgres(
                                    version=rds.AuroraPostgresEngineVersion.VER_15_2),
                                credentials=rds.Credentials.from_generated_secret(
                                    "syscdk"),
                                instance_props=rds.InstanceProps(
                                    instance_type=instance_type,
                                    vpc_subnets=ec2.SubnetSelection(
                                        subnet_type=ec2.SubnetType.PUBLIC),
                                    vpc=vpc
                                ),
                                storage_type=rds.DBClusterStorageType.AURORA_IOPT1,
                                removal_policy=removal_policy,
                                )

proxy = rds.DatabaseProxy(self, "Proxy",
    proxy_target=rds.ProxyTarget.from_cluster(cluster),
    secrets=[cluster.secret],
    vpc=vpc
)

Test

aws cloudcontrol get-resource --type-name AWS::RDS::DBProxyTargetGroup --identifier "arn:aws:rds:eu-west-1:00000000000:target-group:prx-tg-xxxxxxxxxxxxx"

An error occurred (GeneralServiceException) when calling the GetResource operation: AWS::RDS::DBProxyTargetGroup Handler returned status FAILED: 1 validation error detected: Value null at 'dBProxyName' failed to satisfy constraint: Member must not be null (Service: AmazonRDS; Status Code: 400; Error Code: ValidationError; Request ID: 6b64eeb9-74d4-4943-ad63-xxxxxxxxxxxxx; Proxy: null) (HandlerErrorCode: GeneralServiceException, RequestToken: 9a18e255-a56b-42ab-a1c6-xxxxxxxxxxxx)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions