You are working on a project that requires the use of AWS CloudFormation to deploy resources. You need to ensure that the CloudFormation stack has the necessary permissions to access other AWS services. Which of the following steps should you take to achieve this?