Open alelopezperez opened 1 year ago
I'm getting exactly the same permission denied error after the upload process completes. How did you fix it?
I ended up using another thing the official one from aws.
I'm getting exactly the same permission denied error after the upload process completes. How did you fix it?
check this my solution here
My IAM user has full S3 control
Completed 2.1 KiB/143.6 KiB (17.5 KiB/s) with 4 file(s) remaining upload: website-astro/dist/index.html to s3://***/index.html Completed 2.1 KiB/[14](https://github.com/alelopezperez/areweleetcodeyet/actions/runs/3910959737/jobs/6683900581#step:7:15)3.6 KiB (17.5 KiB/s) with 3 file(s) remaining Completed 2.9 KiB/143.6 KiB (10.4 KiB/s) with 3 file(s) remaining upload: website-astro/dist/favicon.svg to s3://***/favicon.svg Completed 2.9 KiB/143.6 KiB (10.4 KiB/s) with 2 file(s) remaining Completed 5.0 KiB/143.6 KiB ([17](https://github.com/alelopezperez/areweleetcodeyet/actions/runs/3910959737/jobs/6683900581#step:7:18).6 KiB/s) with 2 file(s) remaining upload: website-astro/dist/assets/index.c91a56c8.css to s3://***/assets/index.c91a56c8.css Completed 5.0 KiB/143.6 KiB (17.6 KiB/s) with 1 file(s) remaining Completed 143.6 KiB/143.6 KiB (467.3 KiB/s) with 1 file(s) remaining upload: website-astro/dist/client.bf4f0f8e.js to s3://***/client.bf4f0f8e.js sh: /: Permission denied
Code:
- name: Deploying uses: kersvers/s3-sync-with-cloudfront-invalidation@v1.0.0 with: args: --acl public-read --follow-symlinks --delete env: AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} AWS_S3_BUCKET: ${{ secrets.AWS_S3_BUCKET }} DISTRIBUTION_ID: ${{ secrets.AWS_S3_CDN }} AWS_REGION: 'us-east-1' # optional: defaults to us-east-1 SOURCE_DIR: 'website-astro/dist/' # optional: defaults to entire repository