I have been running into troubles when running a CLI command to create a AWS System Manager Association task. The command is the one listed below:
aws ssm create-association --name AWS-RunRemoteScript --targets Key=instanceids,Values=i-03710c82b70551c32 --parameters '{"sourceType":["S3"],"sourceInfo":["{"path":\"https://s3-eu-west-1.amazonaws.com/xxx/private/xxx.ps1\"}"],"commandLine":["xxx.ps1"]}' --schedule-expression "cron(0 0 2 ? * SUN *)"
Every time I get an error that there is something wrong with parameters part but I have tried all combinations of quotes but couldn't find any fix for it.
Error parsing parameter '--parameters': Expected: '=', received: ''' for input: '{sourceType:[S3],sourceInfo:[{https://s3-eu-west-1.amazonaws.com/xxx/private/xxx.ps1"}],commandLine:[xxx]}'
Did someone faced a similar problem?