For a Script Task in your plan. You typically need to set your AWS credentials to point to and use your EC2 instances.
Set-Credentials is the AWS way, but that does not work.
Instead use this?
SET AWS_ACCESS_KEY_ID=$Env:bamboo_AWSAccessKeyId
SET AWS_SECRET_ACCESS_KEY=$Env:bamboo_AWSSecretKeyPassword
SET AWS_DEFAULT_REGION=us-east-1
Put it is still not pointing to my EC2 instance correctly. None of my AWS CLI commands work.