fix(gen2-migration): tarball installation cannot find proxyAgent#14755
Merged
iliapolo merged 2 commits intogen2-migrationfrom Apr 6, 2026
Merged
fix(gen2-migration): tarball installation cannot find proxyAgent#14755iliapolo merged 2 commits intogen2-migrationfrom
proxyAgent#14755iliapolo merged 2 commits intogen2-migrationfrom
Conversation
9pace
approved these changes
Apr 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of changes
Re-implement
proxyAgentinstead of callingprovider.proxyAgent. In thedevbranch,proxyAgentis not exported from the cloudformation provider package:amplify-cli/packages/amplify-provider-awscloudformation/src/index.ts
Lines 216 to 218 in e366e6f
Since the
gen2-migrationtarball only packages theamplify-clipackage, all other packages are consumed via normal dependencies that were published from thedevbranch.Note that in the
gen2-migrationbranch,proxyAgentis exported since we added it:amplify-cli/packages/amplify-provider-awscloudformation/src/index.ts
Lines 216 to 219 in 64edeeb
Meaning that when we merge
gen2-migrationwithdev, we can remove this.The implementation of
proxyAgentcame from here:amplify-cli/packages/amplify-provider-awscloudformation/src/aws-utils/aws-globals.ts
Lines 1 to 10 in e366e6f
Issue #, if available
#14754
Description of how you validated changes
npx amplify gen2-migration assesChecklist
yarn testpassesBy submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.