Im trying to invoke s3 and ssm commands using an EC2 instance. For aws s3api list-buketes
,it returns list of names. But for aws ssm get-parameter --name "Customer"
it times out.
I have attached a profile with admin access to the EC2 instance. But it is the same. The instance is attached to a security group which opens to the internet.
I can invoke the same ssm command with success from outside the VPC.
Any ideas? Thanks in advance.