Update the IAM Policies

Update the IAM Policies

As part of our microservice setup, we will be assigning a new IAM Role to our Lambda function to allow it to perform various tasks. When CodeStar created our project, it created an IAM Role that gave CloudFormation just enough permissions to deploy the Hello World example service. These permissions are not enough for our more advanced requirements. So we need to adjust the policies assigned to the CloudFormation role, to extend those permissions.

  1. Go to AWS IAM Console.
  • Click Roles.
  • Type CodeStarWorker-dev-tripsearch-CloudFormation to the search bar
  • Click CodeStarWorker-dev-tripsearch-CloudFormation Update the IAM Policies
  1. Click Add permissions
  • Click Attach Policies Update the IAM Policies
  1. Type idevelop to the search bar
  • Select DevAx-04-idevelopCodeStarCloudFormationPolicy…
  • Click Attach Policies Update the IAM Policies