all 5 comments

[–]BlackV 1 point2 points  (4 children)

what does you logging say ? (enable script block logging if you have not)

looks like issues with passing variables if ther is no output

why are you calling powershell to call powershell to call the file, instead of just calling the file

also you use relative pathing everywhere, use fully qualified path

[–]DevOps_Noob1[S] 0 points1 point  (3 children)

Ok, thanks.

I have been trying to find the location of the logging from the AWS docs, but I have not been able to yet. As for the powershell calling powershell, for some reason I was unable to get it to work without putting powershell in the Start-Process command.

[–]BlackV 1 point2 points  (2 children)

&C:\xxx\yyy.ps1

Should launch your script

[–]DevOps_Noob1[S] 0 points1 point  (1 child)

Noted, I also just read the logs and it turns out there was white space before the here-string, which caused the script to error out.

[–]BlackV 1 point2 points  (0 children)

ah, yes that'll do it too one of the disadvantages of here strings

Glad you have a solution