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
4
votes
2 answers

How to access list value in Get-EC2Instance's RunningInstance method?

I'm trying to retrieve the instanceid, public dns name, and "Name" tag from the object returned by get-ec2instance. $instances = foreach($i in (get-ec2instance)) ' { $i.RunningInstance | Select-Object InstanceId, PublicDnsName, Tag } Here's the…
Anthony Neace
  • 25,013
  • 7
  • 114
  • 129
3
votes
1 answer

Converting Powershell Array to Text so it can be exported to CSV or HTML

I'm trying to convert the output of a powershell (AWS Tools) command to strings so that I can export them to CSV or HTML. I for the life of me can't figure it out. I've seen comments on hashtables, naming elements, etc. Nothing seems to help me. …
stewtenn
  • 45
  • 5
3
votes
1 answer

Issue with filter syntax in AWS tools for Powershell Core

I wrote a Powershell script that gets a filtered list of cognito-idp identities using AWS CLI. However, I wanted to make this a lambda script and realized that I could not use AWS CLI and instead needed to use the AWS for Powershell Core module.…
3
votes
1 answer

AWS Tools for Powershell Get-EC2Instance Filter

Is it possible to filter EC2 Instances by machine hostname? I am trying to find an internal instance but I don't have the IP address or the instanceId. I can't find any examples but I am thinking something this. $instanceName =…
Rhonda
  • 985
  • 5
  • 18
  • 32
3
votes
1 answer

Data points are empty on using AWS cli on powershell

I am trying to get the stats for my ec2 instance using Powershell. On running, I am just getting empty data points. Any solutions? The code is given below: Get-CWMetricStatistics -MetricName CPUUtilization -Dimension @{Name =…
3
votes
1 answer

How to encrypt data using KMS key in AWS Powershell script

I am trying to encrypt a text using AWS KMS and creating a powershell script. So I used New-KMSDataKey to encrypt my KMS master key which in output returns plaintextDataKey and ciphertextblob. Now I am using plaintextDataKey to encrypt my plaintext…
Atihska
  • 4,803
  • 10
  • 56
  • 98
3
votes
3 answers

Not able to execute AWS Powershell tool cmdlet in TFS Post build script

I am trying to execute the few aws cmdlet command in post build script with TFS build. I have a AWS SDK tool is installed in build controller. I am able to run the same commands manually in Build controller. But when i invoke those commands in TFS…
Meet101
  • 711
  • 4
  • 18
  • 35
3
votes
1 answer

How can I use New-EC2Tag correct?

I use powershell script to change Name tag as below : New-EC2Tag -Resource $aws_instance_id -Tag @{Key="Name"; Value="WINTEST"} but I always receive output message like this : New-EC2Tag : No credentials specified or obtained from persisted/shell…
3
votes
1 answer

How can I access properties of the IpPermissions property of Get-EC2SecurityGroup?

I am trying to get a list of security groups. (Successful - Using Get-EC2SecurityGroup) Get a list of the specific IPPermissions associated with each security group. ( Successful - Using (Get-EC2SecurityGroup).IpPermissions ) Only return results…
Jim P.
  • 1,087
  • 3
  • 9
  • 24
3
votes
1 answer

Use powershell to get instance description and tags

Is there a way of getting instance's description (eg, instance ID, AMI ID, VPC ID....etc) and tags using Powershell? I tried Get-EC2Instance | select * but it doesn't give all the information I need.
3
votes
2 answers

Custom endpoint in AWS powershell

I am trying to use AWS Powershell with Eucalyptus. I can do this with AWS CLI with parameter --endpoint-url. Is it possible to set endpoint url in AWS powershell? Can I create custom region with my own endpoint URL in AWS Powershell?
stkxchng
  • 65
  • 5
  • 26
3
votes
1 answer

What policy Action(s) on what Resource(s) are required to run New-EC2Tag from Powershell?

I'm attempting to run New-EC2Tag, getting the following error: New-EC2Tag : You are not authorized to perform this operation. The user policy is as follows: { "Version": "2012-10-17", "Statement": [ { "Effect": "Allow", …
3
votes
1 answer

power shell moving Files to Amazon s3

I have the below PowerShell script that move files to my amazon bucket for me and all works ok for a few small files, however when copying larger files the for loop continues loop and starts they copy before others have finished and it doesn't take…
Robbo
  • 87
  • 1
  • 2
  • 6
3
votes
1 answer

AWS: A client error (ValidationError) occurred when calling the CreateStack operation: ParameterValue for ParameterKey ... is required

I'm trying to create a PowerShell script that among other things creates an AWS CloudFormation stack. I'm having trouble with the aws cloudformation create-stack command however, it doesn't seem to be picking up the parameters. Here is the snippet…
Jayoaichen
  • 95
  • 1
  • 1
  • 6
3
votes
3 answers

Copy Data using AWS Powershell from Amazon S3 Server to local drive.

I am trying Get-S3Object -BucketName pilot but it has lot of sub directories.
Rajan S
  • 51
  • 1
  • 2
  • 8
1 2
3
10 11