Skip to content

Commit

Permalink
fix(amplify-category-api): missing custom tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sundersc committed Jul 5, 2024
1 parent 25bda33 commit 499fe41
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ export const getLambdaTags = async (functionArn: string): Promise<Record<string,
const tags = (await lambdaClient.send(command)).Tags ?? {};
const result: Record<string, string>[] = [];
Object.keys(tags).forEach((key) => {
if (key.startsWith('created-by') || key.startsWith('amplify:')) {
// Do not include the cloudformation tags.
// These tags contain information about the lambda function and it is not necessary to include them in the tags of the table.
if (!key.startsWith('aws:cloudformation:')) {
result.push({
key: key,
value: tags[key],
Expand Down

0 comments on commit 499fe41

Please sign in to comment.