-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
add support for cloud-nuke-excluded tag in Cloudtrail resource #839
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Will trigger tests.
Hi @ErezWeiss, did you test your change? I'm seeing this error during build time.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please fix the build failure + test appropriate things.
@@ -23,6 +23,7 @@ func (ct *CloudtrailTrail) getAll(c context.Context, configObj config.Config) ([ | |||
for _, trailInfo := range page.Trails { | |||
if configObj.CloudtrailTrail.ShouldInclude(config.ResourceValue{ | |||
Name: trailInfo.Name, | |||
Tags: util.ConvertTypesTagsToMap(trailInfo.Tags), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The resource you are iterating over lacks the 'Tags' field. You need to call this method for each resource first.
Friendly ping @ErezWeiss . |
@james03160927 thanks for that, hopefully I'll handle it in the upcoming weeks |
Got it. SGTM. Thanks |
Friendly ping @ErezWeiss |
HI @ErezWeiss, friendly ping. Do you plan to continue working on this change? |
I'll take over the change and merge it in! 👍 since we haven't heard back from you for a while. |
add support for cloud-nuke-excluded tag in Cloudtrail resource
missing test, need some help here