Can we load just the .dll's (AWSSDK.EC2.dll) that we need instead of all modules being loaded in powershell? #289
-
Hi, I'm trying to load/import
It is not throwing any exception but at the same time I'm not seeing any command-lets loaded in powershell. Thank you. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
@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:
Based on your scenario above, you are using then 2nd option, hence I do not see any benefit of your approach versus 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, |
Beta Was this translation helpful? Give feedback.
-
Hello! Reopening this discussion to make it searchable. |
Beta Was this translation helpful? Give feedback.
@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:
AWS.Tools.S3.dll
(for example)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