From 56907eb09a5c3ac464545ac437c2b738a4c004b4 Mon Sep 17 00:00:00 2001 From: Kaustav Ghosh Date: Fri, 9 Apr 2021 15:47:54 -0700 Subject: [PATCH] feat: differ metric agent for admin generated stacks (#6978) --- .../src/aws-utils/user-agent.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/amplify-provider-awscloudformation/src/aws-utils/user-agent.js b/packages/amplify-provider-awscloudformation/src/aws-utils/user-agent.js index c1cd1ad1fb9..753c1ef793d 100644 --- a/packages/amplify-provider-awscloudformation/src/aws-utils/user-agent.js +++ b/packages/amplify-provider-awscloudformation/src/aws-utils/user-agent.js @@ -1,6 +1,7 @@ // TODO: Put this in package.json and integrate with lerna to bump up version -const userAgent = 'aws-amplify-cli/0.1.0'; +// Track Amplify Admin generated stacks +const userAgent = !!process.env.CLI_DEV_INTERNAL_DISABLE_AMPLIFY_APP_DELETION ? 'aws-amplify-admin/0.1.0' : 'aws-amplify-cli/0.1.0'; function formUserAgentParam(context, userAgentAction) { const { amplify } = context;