- Newest
- Most votes
- Most comments
Based on the information available, this appears to be related to how CloudFormation's drift detection interacts with the AWS::RDS::DBProxyTargetGroup resource type. During drift detection, CloudFormation performs a read operation on the resource to compare its actual state with the expected template configuration.
The error you're encountering suggests that during the drift detection read operation, the DBProxyName parameter is not being properly passed or retrieved, even though it's correctly specified in your template via the Ref function. This is likely occurring because drift detection performs independent API calls to describe the resource's current state, and there may be an issue with how the resource provider handles the read operation for this specific resource type.
For AWS::RDS::DBProxyTargetGroup specifically, the TargetGroupName property has a constraint where it must currently be set to "default". This resource type may have specific behaviors during drift detection that differ from standard resource operations.
While drift detection is designed to identify when resources have been modified outside of CloudFormation, certain resource types may not fully support drift detection or may have limitations in how their properties are evaluated. Resources that don't currently support drift detection aren't checked during the drift detection process.
As a potential workaround, you might consider:
- Temporarily excluding the DBProxyTargetGroup resource from drift detection if your drift detection tooling supports resource-level exclusions
- Verifying that the DBProxy resource itself is successfully created and in a stable state before running drift detection
- Checking if there are any IAM permissions issues that might prevent CloudFormation from properly reading the target group configuration during drift detection
This appears to be a resource-specific behavior rather than a general CloudFormation drift detection issue, and may warrant reporting to AWS Support if it's blocking your drift detection workflows.
Sources
CfnDBProxyTargetGroup — AWS Cloud Development Kit 2.245.0 documentation
CfnDBProxyTargetGroupProps — AWS Cloud Development Kit 2.245.0 documentation
describe_stack_resource_drifts - Boto3 1.42.50 documentation
Relevant content
- asked 8 days ago
