Skip to content

Commit

Permalink
feat: aaaa
Browse files Browse the repository at this point in the history
  • Loading branch information
wangpand0508 committed Apr 23, 2024
1 parent 9058356 commit e2ba837
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions src/modules/apigw/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,23 @@ export default class Apigw {
outputs.usagePlan = usagePlan;
}

try {
const { tags } = inputs;
if (tags) {
await this.tagClient.deployResourceTags({
tags: tags.map(({ key, value }) => ({ TagKey: key, TagValue: value })),
resourceId: serviceId,
serviceType: ApiServiceType.apigw,
resourcePrefix: 'service',
});
if (tags.length > 0) {
outputs.tags = tags;
}
}
} catch (e) {
console.log(`[TAG] ${e.message}`);
}

// return this.formatApigwOutputs(outputs);
return outputs;
}
Expand Down

0 comments on commit e2ba837

Please sign in to comment.