Lumenalta interview question

Which method would you use to allow an EC2 instance to access other AWS services via API using sdk