Skip to content
This repository was archived by the owner on Oct 15, 2024. It is now read-only.

make resource ID optional #217

Merged
merged 1 commit into from
Jul 3, 2018
Merged

make resource ID optional #217

merged 1 commit into from
Jul 3, 2018

Conversation

svenwltr
Copy link
Member

Make resource IDs optional (ie IDs from String() function). New resources should use the property feature instead.

Making legacy to avoid awkward resource IDs like this in wafregional-ip-set-ips.go:

return fmt.Sprintf("%s -> %s:%s", *r.ipSetid, *r.descriptor.Type, *r.descriptor.Value)

Describing waf.FieldToMatch in a single string would be even more complex.

@rebuy-de/prp-aws-nuke Please review.

@svenwltr svenwltr self-assigned this Jun 26, 2018
@tomvachon
Copy link
Contributor

tomvachon commented Jun 26, 2018 via email

@svenwltr
Copy link
Member Author

@tomvachon We do not have to refactor every resource, now. Currently, both methods are possible and there is no need to touch the old resources. I would say we put this on the aws-nuke v3 roadmap.

@tomvachon
Copy link
Contributor

tomvachon commented Jun 26, 2018 via email

@svenwltr
Copy link
Member Author

Any clue how close v2 is for the sdk? I don’t track it closely

No, I did not find any roadmap for v2.

@svenwltr svenwltr force-pushed the optional-id branch 2 times, most recently from 3fc5019 to 95ec148 Compare July 2, 2018 15:03
@svenwltr
Copy link
Member Author

svenwltr commented Jul 3, 2018

I had to update the PR, since the resource comparison did not work with the previous one. I am not very satisfied with this solution, but it works.

@svenwltr svenwltr merged commit 0c8084a into master Jul 3, 2018
@svenwltr svenwltr deleted the optional-id branch July 3, 2018 12:37
@svenwltr svenwltr added the kind/enhancement New core feature or improvement of existing ones. label Jul 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind/enhancement New core feature or improvement of existing ones.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants