Functions sometimes rely on outside services from Amazon such as S3, and accessing these resources often requires authorization using IAM. Spotinst Functions can be configured with the relevant permissions with the inclusion of IAM role information in the serverless.yml file. See Amazon's documentation for more information on IAM roles.
functions:
example:
runtime: nodejs8.3
handler: handler.main
memory: 128
timeout: 30
access: private
iamRoleConfig:
roleId: ${role-id}
roleId: the role created on the console
For more information on how to set up IAM roles, check out our documentation here
Product