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

Updates aws.account.id resource #4020

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

scottford-io
Copy link
Contributor

This PR updates the aws.account.id resource to only return the account ID. The previous version concatenates the string "aws.account/" to the account id. That string is redundant because the resource is already aws.account.id

OLD VERSION:

cnspec> aws.account.id 
aws.account.id: "aws.account/177043759666"

NEW VERSION:

cnquery> aws.account.id
aws.account.id: "177043759666"

Signed-off-by: Scott Ford <scott@scottford.io>
@scottford-io scottford-io requested a review from arlimus May 16, 2024 22:34
@@ -16,7 +16,7 @@ import (
)

func (a *mqlAwsAccount) id() (string, error) {
return "aws.account/" + a.Id.Data, nil
Copy link
Contributor

Choose a reason for hiding this comment

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

just a heads up, there are a couple other adjustments around discovery that we will need to do if this change goes in

Copy link
Member

Choose a reason for hiding this comment

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

This change feels worth it IMO. The old output didn't really make sense. This output is better for asset inventory and customer usage. We should definitely understand the impact of this breaking change though anywhere else in the product.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants