Questions tagged [aws-powershell]

The AWS Tools for Windows PowerShell are a set of PowerShell cmdlets that are built on top of the functionality exposed by the AWS SDK for .NET.

The AWS Tools for Windows PowerShell are a set of PowerShell cmdlets that are built on top of the functionality exposed by the AWS SDK for .NET. The AWS Tools for Windows PowerShell enable you to script operations on your AWS resources from the PowerShell command line.

Questions involving the AWS Command Line Interface (CLI) should be tagged with instead.

Resources

Books

165 questions
2
votes
1 answer

Get AWS S3 Bucket Object Using PowerShell DSC

Using PowerShell DSC, I'm trying to read an object from within an AWS S3 bucket but I get the following error: Unable to load stored credentials for profile = [default] I have tried using the -ProfileLocation parameter however that then throw the…
cvandal
  • 764
  • 5
  • 18
  • 31
1
vote
1 answer

Install-Package : The following commands are already available on this system

When I try to install AWSPowerShell, I am getting the following error: PackageManagement\Install-Package : The following commands are already available on this…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
1
vote
1 answer

WARNING: Multiple variants of AWS Tools for PowerShell are currently installed

When I run a powershell script, I get the following warning: WARNING: Multiple variants of AWS Tools for PowerShell (AWSPowerShell, AWSPowerShell.NetCore or AWS.Tools) are currently installed. Please run 'Get-Module…
sashoalm
  • 75,001
  • 122
  • 434
  • 781
1
vote
1 answer

How to get checksums of each part of a multipart upload (AWS S3) via AWS Tools for PowerShell?

I'm trying to calculate and compare the hash of a multipart file that was uploaded via S3's Web UI. In order to do that, I need the hashes of each part. I have tried this: $s3Object | Get-S3ObjectAttribute -ObjectAttributes Checksum,ObjectParts…
1
vote
1 answer

AWS PowerShell module - Get-RSCluster does not return Endpoint

When I execute Get-RSCluster | Select Endpoint the only thing returned is 'Amazon.Redshift.Model.Endpoint'. How am I able to use PowerShell to return the endpoint information for AWS Redshift? Thanks!
BBK0919
  • 23
  • 2
  • 8
1
vote
1 answer

How to print the output of each EC2 instance of a run command executed through SSM automation document

I am trying to print the output of multiple EC2 instances executed via AWS-RunPowerShellScript document through AWS SSM Automationin Automation execution step outputs section. However, it seems to be not working. Can anyone help me with correct…
karthik
  • 417
  • 1
  • 7
  • 15
1
vote
1 answer

How to pass a string from python to AWS Run Powershell script commands section using boto3

Is there anyway to pass the variable (var) defined in python idle to AWS-RunPowerShellScript commands section ? Here is my code: import boto3 ssm = boto3.client("ssm") var = "test" res = ssm.send_command( …
karthik
  • 417
  • 1
  • 7
  • 15
1
vote
2 answers

AWS S3 - Use powershell to delete all files but keep the folders

I have a powershell script, that downloads all files form an S3 bucket, and then removes the files from the bucket. All the files I'm removing are stored in a subfolder in the S3 bucket, and I just want to delete the files but maintain the…
1
vote
0 answers

Cant import a module due to "Import-Module : Could not load file or assembly" however the file is present

Cant import the module due to the error below, but that file is present. C:\Users\User.Name> Import-Module AWS.Tools.S3 Import-Module : Could not load file or assembly…
1
vote
0 answers

WriteS3-Object Specified value has invalid CRLF characters

I am trying to write an automation script for a software release using : AWS Tools version 4.1.10.0, from the Administrator PowerShell command window The steps I follow: Set my Aws IAM credentials using Set-AWSCredential Run Write-S3Object I have…
Noah Moerbeek
  • 21
  • 1
  • 5
1
vote
1 answer

URIFormatException when trying to run New-EBApplicationVersion to update my elastic beanstalk environment

I am trying to upload a set of two .net core projects to my AWS elastic beanstalk environment using powershell. Following the tutorial here I run a script to update the EB version, as below: $applicationName = "PaveStateOnline" $environmentName =…
1
vote
1 answer

Setup a default initialization of AWS Powershell for all local users

I having a jump server and an RDP Manager running on it, for quick accessing the hosts in the private subnet. I need to enable every local user on that machine to start/stop the instances via a powershell script. I created an programatic user, and…
Luka Klarić
  • 323
  • 2
  • 16
1
vote
1 answer

Azure Devops Pipeline: Possible to cache task container?

I'm setting up a multi-stage Azure Devops yaml pipeline for a .Net Framework application. Part of the pipeline will involve using the AWSPowerShellModuleScript task to configure load balancer rules in AWS. My Task looks like so... - task:…
user1751825
  • 4,029
  • 1
  • 28
  • 58
1
vote
1 answer

AWS -. Manage windows/Linux ec2 VMs

I have a question, regarding managing AWS VMs on a system level. On azure cloud i was using CSE extensions to run powershell scripst and manage/configure VMs. I AM looking for similar solution for AWS cloud. I was thinking about SSM dosuments, but…
tester81
  • 533
  • 2
  • 9
  • 28
1
vote
2 answers

Unable to get AWS powershell comands working in Windows-10

I want to run some AWS commands using PowerShell scripts in windows. I went ahead and ran this below command. Install-Module AWSPowerShell The module got installed without any error. But I'm getting below error when I try to do "Set-AWSCredentials"…
Sudip
  • 647
  • 2
  • 7
  • 28