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

cnquery can read config file from aws ssm parameter store #941

Merged
merged 1 commit into from
Feb 16, 2023

Conversation

vjeffrey
Copy link
Contributor

[15/02/23 12:27:02] ❯ go run apps/cnspec/cnspec.go scan aws --config aws-ssm-ps://region/us-east-1/parameter/MondooAgentConfig
→ loaded configuration from aws-ssm-ps://region/us-east-1/parameter/MondooAgentConfig using source --config
→ using service account credentials

cnspec can read the service account credentials stored in AWS ssm parameter store

@vjeffrey vjeffrey changed the title ⭐ cnquery can read config file from aws ssm parameter store DRAFT: cnquery can read config file from aws ssm parameter store Feb 15, 2023
@vjeffrey vjeffrey force-pushed the vj/config-ssmparam branch 3 times, most recently from d6b1eb5 to 0a00e08 Compare February 15, 2023 20:04
@vjeffrey vjeffrey changed the title DRAFT: cnquery can read config file from aws ssm parameter store cnquery can read config file from aws ssm parameter store Feb 15, 2023
@@ -173,6 +173,17 @@ func initConfig() {
} else {
Source = "default"
}
if len(Path) > 0 {
Copy link
Member

Choose a reason for hiding this comment

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

nit: do we need to check len(Path) > 0? wouldn't the next statement suffice

Copy link
Contributor Author

Choose a reason for hiding this comment

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

oh, good point, we can remove that

Copy link
Member

@arlimus arlimus left a comment

Choose a reason for hiding this comment

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

thank you!

@vjeffrey vjeffrey merged commit b34ae6e into main Feb 16, 2023
@vjeffrey vjeffrey deleted the vj/config-ssmparam branch February 16, 2023 00:55
@github-actions github-actions bot locked and limited conversation to collaborators Feb 16, 2023
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.

2 participants