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

support route53 services #646

Merged
merged 2 commits into from
Mar 7, 2024
Merged

support route53 services #646

merged 2 commits into from
Mar 7, 2024

Conversation

james03160927
Copy link
Contributor

Description

Fixes #413

TODOs

Read the Gruntwork contribution guidelines.

  • Update the docs.
  • Run the relevant tests successfully, including pre-commit checks.
  • Ensure any 3rd party code adheres with our license policy or delete this line if its not applicable.
  • Include release notes. If this PR is backward incompatible, include a migration guide.
  • Attention Grunts - if this PR adds support for a new resource, ensure the nuke_sandbox and nuke_phxdevops jobs in .circleci/config.yml have been updated with appropriate exclusions (either directly in the job or via the .circleci/nuke_config.yml file) to prevent nuking IAM roles, groups, resources, etc that are important for the test accounts.

Release Notes (draft)

Added / Removed / Updated [X].

Migration Guide

"github.com/gruntwork-io/cloud-nuke/report"
)

func (r Route53CidrCollection) getAll(c context.Context, configObj config.Config) ([]*string, error) {
Copy link
Member

Choose a reason for hiding this comment

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

I was wondering why is used value instead of pointer like in other cases like:

https://github.com/gruntwork-io/cloud-nuke/blob/master/aws/resources/ec2.go#L27

}

// nukeCidrLocations
func (r Route53CidrCollection) nukeCidrLocations(id *string) (err error) {
Copy link
Member

@denis256 denis256 Mar 4, 2024

Choose a reason for hiding this comment

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

I suspect returning only error will be shorter and consistent with code for other resources (same thing for other functions which return (err error))

func (r Route53CidrCollection) nukeCidrLocations(id *string) error

Copy link
Contributor Author

Choose a reason for hiding this comment

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

SGTM

return ids, nil
}

// nukeCidrLocations
Copy link
Member

Choose a reason for hiding this comment

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

I think longer description will be helpful

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Makes sense. Let me address it. I think it makes sense to just remove it as well.

@james03160927 james03160927 merged commit 24dedcf into master Mar 7, 2024
3 checks passed
@james03160927 james03160927 deleted the 22/support-route53 branch March 7, 2024 22:12
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.

Adding support for route53 resources deletion
2 participants