diff --git a/packages/amplify-category-auth/src/provider-utils/awscloudformation/index.js b/packages/amplify-category-auth/src/provider-utils/awscloudformation/index.js index 30515f4181f..4a4251d7a46 100644 --- a/packages/amplify-category-auth/src/provider-utils/awscloudformation/index.js +++ b/packages/amplify-category-auth/src/provider-utils/awscloudformation/index.js @@ -148,7 +148,7 @@ async function updateConfigOnEnvInit(context, category, service) { const isPullingOrEnv = context.input.command === 'pull' || (context.input.command === 'env' && context.input.subCommands && !context.input.subCommands.includes('add')); - // don't ask for env_specific params when creating a new env or pulling + // don't ask for env_specific params when checking out env or pulling srvcMetaData.inputs = srvcMetaData.inputs.filter( input => ENV_SPECIFIC_PARAMS.includes(input.key) && !Object.keys(currentEnvSpecificValues).includes(input.key) && !isPullingOrEnv, );