Skip to content

Add ignore_resource_types to drift command#402

Closed
cmc-ron wants to merge 1 commit intomasterfrom
cmc-ron/ignore-unsupported-drift-resource-types
Closed

Add ignore_resource_types to drift command#402
cmc-ron wants to merge 1 commit intomasterfrom
cmc-ron/ignore-unsupported-drift-resource-types

Conversation

@cmc-ron
Copy link

@cmc-ron cmc-ron commented Mar 13, 2026

Context

AWS CloudFormation drift detection does not support all resource types. Resources like AWS::ElastiCache::ParameterGroup and AWS::ElastiCache::SubnetGroup return UNKNOWN drift status, causing stack_master drift to exit 1 even when all supported resources are in sync. This triggers false-positive CI failures in drift detection pipelines daily.

Problem

No mechanism exists to exclude specific resource types from drift failure evaluation.

Solution

Add an optional ignore_resource_types key to the stack definition. When set, resources whose resource_type matches an entry in the list are excluded before evaluating whether to call failed. All resources are still displayed for visibility — only the failure gate is affected.

Example stack_master.yml:

market-redis-blue:
  template: redis-replication-group.yml.erb
  ignore_resource_types:
    - AWS::ElastiCache::ParameterGroup
    - AWS::ElastiCache::SubnetGroup

Checklist

  • Existing tests pass
  • New spec covers ignore_resource_types filtering
  • Behaviour is unchanged when ignore_resource_types is not set

🤖 Generated with Claude Code

@cmc-ron cmc-ron closed this Mar 13, 2026
@cmc-ron cmc-ron deleted the cmc-ron/ignore-unsupported-drift-resource-types branch March 13, 2026 07:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant