{"id":7943,"date":"2024-05-24T02:47:14","date_gmt":"2024-05-24T02:47:14","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=7943"},"modified":"2024-05-24T02:47:16","modified_gmt":"2024-05-24T02:47:16","slug":"cannot-install-the-aws-powershell-for-some-reason","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/cannot-install-the-aws-powershell-for-some-reason","title":{"rendered":"Cannot install the AWS Powershell for some reason"},"content":{"rendered":"\n<p>After running Install-AWSToolsModule , I could not run Set-AWSCredential<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">PS C:\\Users\\pwell> Install-AWSToolsModule AWS.Tools.EC2,AWS.Tools.S3 -CleanUp\nInstall-AWSToolsModule : The term 'Install-AWSToolsModule' is not recognized as the name of a cmdlet, function, script\nfile, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct\nand try again.\nAt line:1 char:1\n+ Install-AWSToolsModule AWS.Tools.EC2,AWS.Tools.S3 -CleanUp\n+ ~~~~~~~~~~~~~~~~~~~~~~\n    + CategoryInfo          : ObjectNotFound: (Install-AWSToolsModule:String) [], CommandNotFoundException\n    + FullyQualifiedErrorId : CommandNotFoundException\n\nPS C:\\Users\\pwell> Install-Module -name AWSPowerShell.NetCore\nPS C:\\Users\\pwell> Set-AWSCredential\nSet-AWSCredential : The term 'Set-AWSCredential' is not recognized as the name of a cmdlet, function, script file, or\noperable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try\nagain.                                                                                                                  At line:1 char:1                                                                                                        + Set-AWSCredential                                                                                                     + ~~~~~~~~~~~~~~~~~                                                                                                         + CategoryInfo          : ObjectNotFound: (Set-AWSCredential:String) [], CommandNotFoundException                       + FullyQualifiedErrorId : CommandNotFoundException\n\nPS C:\\Users\\pwell> Import-Module -Name AWS.Tools.Installer\nImport-Module : The specified module 'AWS.Tools.Installer' was not loaded because no valid module file was found in\nany module directory.\nAt line:1 char:1\n+ Import-Module -Name AWS.Tools.Installer\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    + CategoryInfo          : ResourceUnavailable: (AWS.Tools.Installer:String) [Import-Module], FileNotFoundException\n    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand\n\nPS C:\\Users\\pwell> Import-Module -name AWSPowerShell.NetCore\nImport-Module : The specified module 'AWSPowerShell.NetCore' was not loaded because no valid module file was found in\nany module directory.\nAt line:1 char:1\n+ Import-Module -name AWSPowerShell.NetCore\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    + CategoryInfo          : ResourceUnavailable: (AWSPowerShell.NetCore:String) [Import-Module], FileNotFoundExcepti\n   on\n    + FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand\n\nPS C:\\Users\\pwell>  Install-Module -Name AWSPowerShell\nPS C:\\Users\\pwell>\nPS C:\\Users\\pwell>\nPS C:\\Users\\pwell> Import-Module -Name AWSPowerShell\nImport-Module : The specified module 'AWSPowerShell' was not loaded because no valid module file was found in any\nmodule directory.\nAt line:1 char:1\n+ Import-Module -Name AWSPowerShell\n+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n    + CategoryInfo          : ResourceUnavailable: (AWSPowerShell:String) [Import-Module], FileNotFoundException<\/code><\/pre>\n\n\n\n<p>In the end I had to use the below <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code class=\"\">Invoke-RestMethod -Uri \"github.com\/HP-85\/atp\/raw\/main\/AWS.Tools.Install.ps1\" | Invoke-Expression<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>After running Install-AWSToolsModule , I could not run Set-AWSCredential In the end I had to use the below<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7943","post","type-post","status-publish","format-standard","hentry","category-research"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7943","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=7943"}],"version-history":[{"count":1,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7943\/revisions"}],"predecessor-version":[{"id":7944,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/7943\/revisions\/7944"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=7943"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=7943"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=7943"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}