mirror of
https://github.com/Hestia-Homes/ML.git
synced 2026-06-08 11:17:25 +00:00
Merge pull request #56 from Hestia-Homes/master
remove model bucket from serverless
This commit is contained in:
commit
4b870143fd
2 changed files with 1 additions and 4 deletions
1
.github/workflows/Deploy.yml
vendored
1
.github/workflows/Deploy.yml
vendored
|
|
@ -50,7 +50,6 @@ jobs:
|
|||
# Fetch the secret using the secret prefix
|
||||
echo "::set-output name=data_bucket::${{ secrets[format('{0}_DATA_BUCKET', steps.secret_prefix.outputs.secret_prefix)] }}"
|
||||
echo "::set-output name=predictions_bucket::${{ secrets[format('{0}_PREDICTIONS_BUCKET', steps.secret_prefix.outputs.secret_prefix)] }}"
|
||||
echo "::set-output name=model_directory_bucket::${{ secrets[format('{0}_MODEL_DIRECTORY_BUCKET', steps.secret_prefix.outputs.secret_prefix)] }}"
|
||||
|
||||
- name: Set stack_name
|
||||
id: set_stack_name
|
||||
|
|
|
|||
|
|
@ -15,13 +15,11 @@ provider:
|
|||
role:
|
||||
name: ${env:STACK_NAME}_s3_access
|
||||
statements:
|
||||
# Allow reading from MODEL_DIRECTORY_BUCKET and DATA_BUCKET
|
||||
# Allow reading from the DATA_BUCKET
|
||||
- Effect: Allow
|
||||
Action:
|
||||
- s3:*
|
||||
Resource:
|
||||
- arn:aws:s3:::${env:MODEL_DIRECTORY_BUCKET}
|
||||
- arn:aws:s3:::${env:MODEL_DIRECTORY_BUCKET}/*
|
||||
- arn:aws:s3:::${env:DATA_BUCKET}
|
||||
- arn:aws:s3:::${env:DATA_BUCKET}/*
|
||||
# Allow reading and writing to PREDICTIONS_BUCKET
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue