Skip to content
This repository has been archived by the owner on Feb 25, 2024. It is now read-only.

Permissions issue when creating S3 Bucket #9

Closed
paulommaia opened this issue Sep 8, 2021 · 4 comments
Closed

Permissions issue when creating S3 Bucket #9

paulommaia opened this issue Sep 8, 2021 · 4 comments

Comments

@paulommaia
Copy link

paulommaia commented Sep 8, 2021

I was able the demo with the Iris Classifier once but on the second time I had some permissions issue with the S3 Bucket

File "/home/paulo/bentoml_tutorial/aws-ec2-deploy/utils/init.py", line 101, in create_s3_bucket_if_not_exists

botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the GetBucketAcl operation: Access Denied

And when running delete afterwrads:
botocore.exceptions.ClientError: An error occurred (AccessDenied) when calling the ListObjects operation: Access Denied

The lambda function deployment worked fine for me

@jjmachan
Copy link
Contributor

jjmachan commented Sep 8, 2021

can you check your IAM role and give it the permissions to GetBucketAcl Actions or S3 permissions in general? The Deployment tool uses the Profile that is active in your AWS Cli so that could be an issue (incorrect permission to the profile in use)

jjmachan added a commit to jjmachan/aws-ec2-deploy that referenced this issue Sep 13, 2021
Usually we used to store the CF Template in S3. This was redundant and
hence is now removed.

Solves bentoml#9
@jjmachan
Copy link
Contributor

The S3 dependency is now removed and so this should not be an issue now, @paulommaia can you pull the latest changes and try again? it should fix this issue.

jjmachan added a commit that referenced this issue Sep 16, 2021
Usually we used to store the CF Template in S3. This was redundant and
hence is now removed.

Solves #9
@yubozhao
Copy link
Contributor

close it for now. Feel free to reopen it @paulommaia

@paulommaia
Copy link
Author

Thank you! I will test it ASAP, busy with some other stuff this week :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants