Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Driftcl scan is not showing drifted rescources #1694

Open
alikakhare3 opened this issue Oct 25, 2023 · 4 comments
Open

Driftcl scan is not showing drifted rescources #1694

alikakhare3 opened this issue Oct 25, 2023 · 4 comments
Labels
kind/bug Something isn't working

Comments

@alikakhare3
Copy link

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 alikakhare3 added the kind/bug Something isn't working label Oct 25, 2023
@alikakhare3
Copy link
Author

Team Could you please help to resolve the issue.

@alikakhare3
Copy link
Author

Team,

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

@alikakhare3
Copy link
Author

alikakhare3 commented Nov 8, 2023

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

@kaykhan
Copy link

kaykhan commented Nov 30, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants