-
Notifications
You must be signed in to change notification settings - Fork 23
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
🧹 aws fixes; make aws ec2 instance-connect and aws ec2 ssm work #1707
Conversation
652ef18
to
e7264de
Compare
the ebs connection is hooked up in here and technically functional but in my testing the setup is being called too many times. i'll work on that today |
e7264de
to
5b6c85c
Compare
5b6c85c
to
5400b87
Compare
scp the built cnquery to a machine in ec2, |
Perhaps, because of:
My EC2 instance is running an AL2023 image. |
hmm, that looks like the wrong platform info.. |
I get the same for ssm connect:
Something for a follow-up: #1812 |
ah, i think im missing some logic in the detect, looking now |
ill push up the change in a sec |
Got EBS scanning working:
And the scan isn't cleaning up afterwards:
I had the same problem with the GCP snapshot scanning. I had to call the cleanup explicitly in the |
instance connect and ssm are now working well:
|
ebs scan is working, but the cleanup isn't working well yet
ill work on the cleanup in a followup pr |
instance-connect is working:
But I had problems with the profile. I created a follow-up for this: #1846 |
ssm connect is working:
But also affected by #1846 |
ebs scan is working:
|
I added an issue for that, so we can track it: #1847 |
e := Provider{scannerRegionEc2svc: ec2svc} | ||
found, _ := e.FindRecentSnapshotForVolume(context.Background(), VolumeId{Id: "vol-0c04d709ea3e59096", Region: "us-east-1", Account: "185972265011"}) | ||
assert.Equal(t, found, true) | ||
// found, _ = e.FindRecentSnapshotForVolume(context.Background(), VolumeId{Id: "vol-0d5df63d656ac4d9c", Region: "us-east-1", Account: "185972265011"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: This can be removed.
return resources.SSMConnectAsset(args, opts) | ||
case "ebs": | ||
return resources.EbsConnectAsset(args, opts) | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we throw an error when there is something unexpected in args[1]
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, just gave it a try:
FTL failed to run query error="cannot connect to asset, no connection info provided"
LGTM.
DEBUG=1 go run apps/cnquery/cnquery.go shell aws ec2 instance-connect ec2-user@i-01cbf9d3b50b96946 --profile home --region us-east-1
DEBUG=1 go run apps/cnquery/cnquery.go shell aws ec2 ssm ec2-user@i-01cbf9d3b50b96946 --profile home --region us-east-1
i transferred the ebs stuff over but it's not all hooked up yet, that's coming in the next pr