Skip to content

Can we load just the .dll's (AWSSDK.EC2.dll) that we need instead of all modules being loaded in powershell? #289

Answered by ashishdhingra
dvsrk asked this question in Q&A
Discussion options

You must be logged in to vote

@dvsrk Not sure whether it would work, you are loading the AWS SDK for .NET assembly, not the PowerShell module assembly. The PowerShell module is named:

  • If using modular AWS Tools for PowerShell, AWS.Tools.S3.dll (for example)
  • If using the single large version, AWSPowerShell.dll.

Based on your scenario above, you are using then 2nd option, hence I do not see any benefit of your approach versus Import-Module approach.

If avoiding to load the single large module is your concern, then I would advise switching to modularized version (refer Installing the AWS Tools for PowerShell on Windows).

Thanks,
Ashish

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@dvsrk
Comment options

Answer selected by ashishdhingra
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
guidance Question that needs advice or information. module/powershell-cmdlets
2 participants