driftctl icon indicating copy to clipboard operation
driftctl copied to clipboard

Driftcl scan is not showing drifted rescources

Open alikakhare3 opened this issue 2 years ago • 4 comments

Description I am currently testing driftctl on our pipelines. In the project I am running it on, it is not showing drifted resources when i try manually update resources from console. Still O/P doesn't show that resource is drift. As well it claims that our aws_db_instance is not covered by IaC. This seems to be a false positive, as it is created and managed by Terraform.

Environment

  • OS: ubuntu
  • driftctl version: v0.39.0
  • terraform version: 1.0.10
  • terraform providers versions: aws = 3.63.0

Could you please help me how i can resolve this issue.

Regards, Alika Khare

alikakhare3 avatar Oct 25 '23 11:10 alikakhare3

Team Could you please help to resolve the issue.

alikakhare3 avatar Oct 27 '23 06:10 alikakhare3

Team,

Can i get some help on the reported observation to fix.

alikakhare3 avatar Nov 06 '23 06:11 alikakhare3

Uploading bucketdetails.png… Hi Team,

Please find the attached log details to support the it is not showing the drifted resources.

  1. Created bucket "my-drift-bucket" via terraform . Please find the attached terraform state file.
  2. After creating the above bucket it is currently showing that it is managed by terraform .

Report ( Attaching the report for reference as well )

"summary": {
	"total_resources": 434,
	"total_changed": 0,
	"total_unmanaged": 433,
	"total_missing": 0,
	**"total_managed": 1,**
	"total_iac_source_count": 1
},
**"managed": [
	{
		"id": "my-drift-bucket",
		"type": "aws_s3_bucket",
		"source": {
			"source": "tfstate://terraform.tfstate",
			"namespace": "",
			"internal_name": "example"
		}
	}
],**
  1. After this we made change to s3 bucket from aws console and enabled the versioning for bucket. And after that as well there was no change to report.```

Can someone share the input on this issue to resolve the issue so that we can adopt the driftctl managment tool to find out the drifted resources

alikakhare3 avatar Nov 08 '23 07:11 alikakhare3

@alikakhare3 hi did you ever find a solution to this?

kaykhan avatar Nov 30 '23 14:11 kaykhan