radon-h2020 / radon-particles

TOSCA definitions repository for the RADON project
Apache License 2.0
12 stars 30 forks source link

Fix the IAM role issue for Lambda functions #94

Closed zhululai closed 3 years ago

zhululai commented 3 years ago

Short Description

This pull request aims to fix the IAM role issue for Lambda functions.

Resolving Issue / Feature

An IAM role with AWSLambdaFullAccess is used to grant Lambda functions full access to AWS services. However, this policy is deprecated and replaced by AWSLambda_FullAccess (see [1]), which causes failure in deploying any RADON models with Lambda functions. To fix this issue, a list of nominally disjoint policies are combined to create the global IAM role. Supporting others AWS services accessible by Lambda functions would require extending the new IAM role with more policies.