Questions tagged [aws-automation]

11 questions
1
vote
0 answers

PowerShell 7 Cmdlets not recognized when using AWS SSM Automation document script

Trying to figure out why 3 powershell cmdlets are not working when using AWS SM Automation inputs Script, but they do work when running them in a local script directly on my Windows instances. The cmdlets: get-ciminstance and rename-computer work in…
1
vote
0 answers

How to list all AWS Services being used in the account, per region and List each service in detail

I tried below code to list all AWS services in my account per region using the below code import boto3 session = boto3.Session() regions = session.get_available_regions("ssm") d = {} for region in regions: s =…
1
vote
1 answer

AWS Automation Document not updating Lambda Alias

I've created an Automation Document using cloud formation to update the live alias for a given function. It runs ok without any errors and I'm not seeing anything cloud trail. But when I check which version is set to alias:live it is left…
Antarr Byrd
  • 24,863
  • 33
  • 100
  • 188
0
votes
0 answers

Failed to send Kubectl command to create deployment via SSM command

I have an EKS cluster and i am trying to automate the process of creating a deployment-pod, accessing the pod using a terminal shell, running some commands within it and destroying the deployment. i created a document with the commands, starting…
0
votes
1 answer

Powershell Parameter set cannot be resolved, AWS SSM Automation Document Builder Bug?

I do not know what to attempt anymore, I have about 15 revisions to my Automation runbook. It is very simple and straightforward. I have tried multiple different approaches to get my input parameters and my document parameters to work. But every…
0
votes
1 answer

AWS SM Automation aws:executeScript PowerShell import module not loading in script but works on the EC2 instance locally

I am attempting to run a simple powershell script as an Automation document on my Windows Server 2019 instances. Note, I am using the Tools for Windows PowerShell (AWSPowerShell module) and they are installed by default on all Windows-based Amazon…
0
votes
0 answers

AWS - Verify action is performed via SSM Automation

I need to verify that action is performed only via SSM (more specifically via SSM Automation using runbook). In addition, I need to verify the source account that triggers the running of the automation document. Is it possible to enforce it using…
0
votes
0 answers

aws optional parameter using executeAwsAPI in automation runbook

My goal is to use the following command: aws iam list-users --max-items 10 But I want the parameter max-items to be optional. I am using the following runbook (It just the relevant parts): parameters: MaxItems: type: Integer description:…
Yahav Festinger
  • 985
  • 2
  • 8
  • 17
0
votes
1 answer

Describe listener rule count using Boto3

i need to list listener rules count but still i get a output as null without any error.my complete project was getting email notification from when listener rules created on elastic load balancer. import json import boto3 def lambda_handler(event,…
0
votes
2 answers

Bash Script to run AWS Cli command in parallel to reduce time

sorry i am still new to bash scripting. I have around 10000 EC2 instance, i have created this bash script to change my EC2 instance type, all instance name and type are stored in a file. the code is working but it is taking so long to run through…
fawzih91
  • 1
  • 1
-1
votes
1 answer

AWS EC2 AMI and RDS snapshot copy

I want to copy(not share) EC2 AMI and RDS snapshot from one account to another account. I also want to automate this process. Help will appreciated.