Closed taylorchurch closed 1 year ago
I originally submitted this bug but I got a 404 so I tried a test and it went through, thats why I came back and edited to correct it.
@taylorchurch Thanks for opening the bug report. Could you try using the latest version of AWS.Tools.SimpleSystemsManagement
package. I tried using the current version 4.1.118.0
(installed using Install-AWSToolsModule AWS.Tools.SimpleSystemsManagement -Cleanup
) and it worked successfully:
❯ $params='{"action":["Install"],"installationType":["Uninstall and reinstall"],"version":[""],"additionalArguments":["{}"],"name":["AmazonCloudWatchAgent"]}' | ConvertFrom-Json -AsHashtable
❯ $params
Name Value
---- -----
installationType {Uninstall and reinstall}
action {Install}
additionalArguments {{}}
version {}
name {AmazonCloudWatchAgent}
❯ Send-SSMCommand -DocumentName "AWS-ConfigureAWSPackage" -InstanceId "i-0ff2e6a1625b66fc6" -Parameter $params -CloudWatchOutputConfig_CloudWatchOutputEnabled $true -Region us-east-2
CloudWatchOutputConfig : Amazon.SimpleSystemsManagement.Model.CloudWatchOutputConfig
CommandId : 3486e6ce-5788-4251-82be-82ee77cb9db7
Comment :
CompletedCount : 0
DeliveryTimedOutCount : 0
DocumentName : AWS-ConfigureAWSPackage
DocumentVersion : $DEFAULT
ErrorCount : 0
ExpiresAfter : 7/5/2022 9:55:21 PM
InstanceIds : {i-0ff2e6a1625b66fc6}
MaxConcurrency : 50
MaxErrors : 0
NotificationConfig : Amazon.SimpleSystemsManagement.Model.NotificationConfig
OutputS3BucketName :
OutputS3KeyPrefix :
OutputS3Region : us-east-2
Parameters : {[action, Amazon.Runtime.Internal.Util.AlwaysSendList`1[System.String]], [additionalArguments,
Amazon.Runtime.Internal.Util.AlwaysSendList`1[System.String]], [installationType,
Amazon.Runtime.Internal.Util.AlwaysSendList`1[System.String]], [name,
Amazon.Runtime.Internal.Util.AlwaysSendList`1[System.String]]…}
RequestedDateTime : 7/5/2022 6:55:21 PM
ServiceRole :
Status : Pending
StatusDetails : Pending
TargetCount : 1
Targets : {}
TimeoutSeconds : 3600
Kindly note that your EC2 instance should be a managed SSM node (refer https://aws.amazon.com/premiumsupport/knowledge-center/systems-manager-ec2-instance-not-appear/ for troubleshooting purposes).
Thanks, Ashish
Hello,
It is working with latest version 4.1.119, I will accept that. thank you!!
Comments on closed issues are hard for our team to see. If you need more assistance, please either tag a team member or open a new issue that references this one. If you wish to keep having a conversation with other community members under this issue feel free to do so.
Describe the bug
Running Send-SSMCommand with document AWS-ConfigureAWSPackage with parameter or parameters flag reports error as unsupported by document. But this is required to pass the name of the package.
aws cli works
Expected Behavior
succesfuuly runs.
Current Behavior
Errors out.
Reproduction Steps
Try command in the screenshot. awscli works with parameters.
Possible Solution
No response
Additional Information/Context
No response
AWS Tools for PowerShell version used
AWS.Tools.SimpleSystemsManagement 4.1.42
PowerShell version used
7.2.5
Operating System and version
Windows 10