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

feat: AWS GovCloud Config integration #421

Merged
merged 13 commits into from
May 26, 2021

Conversation

dmurray-lacework
Copy link
Collaborator

@dmurray-lacework dmurray-lacework commented May 21, 2021

AWS Gov Cloud Config integration

Signed-off-by: Darren Murray [email protected]

api/integrations_aws_gov_cloud.go Outdated Show resolved Hide resolved
cli/cmd/integration.go Outdated Show resolved Hide resolved
cli/cmd/integration.go Outdated Show resolved Hide resolved
@afiune afiune changed the title feat(cli): AWS Gov Cloud Config integration feat: AWS GovCloud Config integration May 21, 2021
api/integrations_aws.go Outdated Show resolved Hide resolved
Copy link
Contributor

@afiune afiune left a comment

Choose a reason for hiding this comment

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

would be nice to add more tests for this new integration type...

tenor-194735931

api/integrations.go Outdated Show resolved Hide resolved
cli/cmd/integration.go Outdated Show resolved Hide resolved
assert.Equal(t, 1, data.Enabled, "a new GCP integration should be enabled")
assert.Equal(t, "integration_name", data.Name, "AWS integration name mismatch")
assert.Equal(t, "AWS_CT_SQS", data.Type, "a new AWS integration should match its type")
assert.Equal(t, 1, data.Enabled, "a new AWS integration should be enabled")
Copy link
Contributor

Choose a reason for hiding this comment

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

thank you!

case "AWS GovCloud Config":
return createAwsGovCloudConfigIntegration()
case "AWS GovCloud CloudTrail":
return createAwsGovCloudCTIntegration()
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: If we change the Integration type, would be nice to change these functions too

Suggested change
return createAwsGovCloudCTIntegration()
return createAwsGovCloudCloudTrailIntegration()

Copy link
Contributor

@afiune afiune left a comment

Choose a reason for hiding this comment

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

That is it!

tenor-24089157

@dmurray-lacework dmurray-lacework merged commit 68d7087 into main May 26, 2021
@dmurray-lacework dmurray-lacework deleted the dmurray-lacework/aws-gov-cfg branch May 26, 2021 19:22
@lacework-releng lacework-releng mentioned this pull request Jun 7, 2021
@lacework-releng lacework-releng mentioned this pull request Jun 7, 2021
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.

2 participants