I'm trying to resize images automatically using Amazon S3/Lambda. The problem is I cannot get any connection to Amazon S3 buckets while creating a Lambda function.
- Creating a new blank function in AWS Lambda
- Using Python 3.8
- Setting permissions to "use an exsisting role" -> S3accessrole
I checked the policies and permission for the S3 accessrole in the IAM manager console. I also added AMAZON S3FULLACCESS to the S3accessrole. So this role should have access to all S3 buckets in my account.
But when creating the function, no connection is being made to any S3 bucket. Also, Amazon Cloudwatch logs are in the same role also does not appear in the design pane. For example, see this YT video: https://youtu.be/EyeduLX17Mc?t=120
@ the 2min mark you can see the function has access to CloudWatch Logs and Amazon S3. This appears automatically when creating the function. Although this user used another role for this. My Design page only shows the Orange function and has not have access to S3. When adding a new trigger for S3 there also appears a warning message that no other S3 bucket is being used and this can cause problems.
So my question is, what am I missing? The fuction has the correct role which has access to all S3 buckets in my account. And there are no restrictions in my S3 buckets permission wise.