Description
Imaging having a .driftignore file with these contents:
aws_iam_role.foo
aws_iam_role.bar
aws_iam_role.baz # created manually as a test
Running driftctl scan on this will still show aws_iam_role.baz as existing without it being created via IaC.
Changing the .driftignore file to this:
aws_iam_role.foo
aws_iam_role.bar
# created manually as a test
aws_iam_role.baz
results in driftctl properly ignoring the aws_iam_role.baz entry.
Environment
- OS: Ubuntu / Alpine
- driftctl version: v0.39.0
- terraform version: v1.5.6
- terraform providers versions:
How to reproduce
See above
Possible Solution
Allow in-line comments to be placed, anything besides a # should be ignored. To my knowledge there are no entities that contain a #?
Additional context
Description
Imaging having a
.driftignorefile with these contents:Running
driftctl scanon this will still showaws_iam_role.bazas existing without it being created via IaC.Changing the
.driftignorefile to this:results in
driftctlproperly ignoring theaws_iam_role.bazentry.Environment
How to reproduce
See above
Possible Solution
Allow in-line comments to be placed, anything besides a
#should be ignored. To my knowledge there are no entities that contain a#?Additional context