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

Conversation

@pmugdhamz
Copy link

[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.

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

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<>();

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))

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 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants