-
Couldn't load subscription status.
- Fork 16
Tags support added for cluster subnet group #187
base: master
Are you sure you want to change the base?
Tags support added for cluster subnet group #187
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.
Let's get rid of these SAM files, if not needed.
| MAX_SUBNET_GROUP_NAME_LENGTH).toLowerCase()); | ||
| } | ||
|
|
||
| // Resource level + stack level 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.
Missing system tags. All 3 - resource, system, stack tags are required to be merged.
| desiredResourceState.getClusterSubnetGroupName()); | ||
|
|
||
| // Handle tags | ||
| Map<String, String> allDesiredTags = new HashMap<>(); |
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.
missing system tags
| return ProgressEvent.progress(desiredResourceState, callbackContext) | ||
| // Read current tags | ||
| .then(progress -> proxy.initiate(String.format("%s::Update::ReadTags", CALL_GRAPH_TYPE_NAME), proxyClient, progress.getResourceModel(), progress.getCallbackContext()) | ||
| .translateToServiceRequest(rm -> Translator.translateToReadTagsRequest(resourceName)) |
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.
this call is not required. We don't need to read live tags in update. Instead read tags using CFN request request.getPreviousResource .
[Motivation]:
As part of the new initiative to support RBAC policies using Tags every resource on CFN need to support tags and should throw the appropriate errors in case of permission issues with creating/updating tags. This CR provides the use of tags for cluster subnet group API
[Testing]:
Issue #, if available:
Description of changes:
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.