Skip to content

feat: Add more cases where DateTime types in CSV responses of AWS IAM…#5526

Merged
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
CC11001100:main
Dec 9, 2022
Merged

feat: Add more cases where DateTime types in CSV responses of AWS IAM…#5526
kodiakhq[bot] merged 2 commits intocloudquery:mainfrom
CC11001100:main

Conversation

@CC11001100
Copy link
Copy Markdown
Contributor

Summary

The deserialization of CSV by iam in resource under cloudquery-aws-provider does not cover all cases, which may lead to wrong data pull out. For details, we can read the official AWS documents, as mentioned in this document:

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_finding-unused.html

image

This is also mentioned in another document:

https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_getting-report.html

image

To sum up, we should add the case no_information:

image

Please review my code, thank you

@cq-bot cq-bot added the aws label Dec 9, 2022
@CC11001100 CC11001100 changed the title feat: add more cases where DateTime types in CSV responses of AWS IAM… feat: Add more cases where DateTime types in CSV responses of AWS IAM… Dec 9, 2022
@hermanschaaf
Copy link
Copy Markdown
Contributor

Thanks for this fix @CC11001100 !

@hermanschaaf
Copy link
Copy Markdown
Contributor

It feels like we should be storing this column as a string (so that this information is not lost), but that's a bigger change, I'm happy with this for now.

@hermanschaaf hermanschaaf added the automerge Automatically merge once required checks pass label Dec 9, 2022
Copy link
Copy Markdown
Contributor

@yevgenypats yevgenypats left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thx!

@kodiakhq kodiakhq bot merged commit a43bf39 into cloudquery:main Dec 9, 2022
kodiakhq bot pushed a commit that referenced this pull request Dec 13, 2022
🤖 I have created a release *beep* *boop*
---


## [7.4.0](plugins-source-aws-v7.3.2...plugins-source-aws-v7.4.0) (2022-12-13)


### Features

* Add more cases where DateTime types in CSV responses of AWS IAM… ([#5526](#5526)) ([a43bf39](a43bf39))
* **aws:** Add IAM SSH Public Keys ([#5538](#5538)) ([5bd2b4d](5bd2b4d))


### Bug Fixes

* **aws-functions:** Return error in case of access denied ([#5537](#5537)) ([1fe79d3](1fe79d3))
* **aws:** Deterministic Multiplexer ([#5513](#5513)) ([eaf6e99](eaf6e99))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/appstream to v1.18.2 ([#5566](#5566)) ([e7b7c24](e7b7c24))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/athena to v1.20.2 ([#5523](#5523)) ([9385a69](9385a69))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/autoscaling to v1.25.0 ([#5524](#5524)) ([5009a35](5009a35))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/cloudwatchlogs to v1.17.2 ([#5535](#5535)) ([2ce06fc](2ce06fc))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/ec2 to v1.76.0 ([#5569](#5569)) ([979a780](979a780))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/mq to v1.13.17 ([#5567](#5567)) ([6075e71](6075e71))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/rds to v1.34.0 ([#5570](#5570)) ([8fd69ba](8fd69ba))
* **deps:** Update module github.com/aws/aws-sdk-go-v2/service/wafv2 to v1.23.3 ([#5568](#5568)) ([1782f00](1782f00))
* **deps:** Update module github.com/cloudquery/plugin-sdk to v1.12.0 ([#5539](#5539)) ([fb71293](fb71293))
* Update endpoints ([#5520](#5520)) ([88a88a7](88a88a7))
* Update endpoints ([#5565](#5565)) ([6b8c15d](6b8c15d))

---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

automerge Automatically merge once required checks pass

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants