Skip to content
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.

Add metadata tags to azure_policy_definition #377

Merged
merged 1 commit into from
Jun 6, 2021

Conversation

ndowmon
Copy link
Contributor

@ndowmon ndowmon commented Jun 4, 2021

Fixes #375

### Added

- New properties added to resources:

  | Entity                    | Properties                                  |
  | ------------------------- | ------------------------------------------- |
  | `azure_policy_definition` | Automatically convert `metadata` to J1 tags |

@ndowmon ndowmon requested a review from a team as a code owner June 4, 2021 20:33
* including arrays and objects. JupiterOne requires tags of type `string | number | boolean`,
* so this filters out incompatible properties.
*/
function getCompatibleTagProperties(metadata: { [s: string]: any }) {
Copy link
Contributor

Choose a reason for hiding this comment

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

We could also stringify the properties that didn't meet that criteria.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ah good thought! I opened this to track and implement later: #382

@ndowmon ndowmon merged commit 4cbcb79 into master Jun 6, 2021
@ndowmon ndowmon deleted the 375-policy-definition-metadata branch June 6, 2021 15:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Ingest azure policy definition metadata as tags
2 participants