Skip to content

Commit

Permalink
IAM Policy Fix + Dev Server (#74)
Browse files Browse the repository at this point in the history
* added script to start dev server on different port

* chmod +x

* added additional resource to smolvault-policy
  • Loading branch information
fullerzz authored Sep 27, 2024
1 parent 754f471 commit 8b46572
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
8 changes: 8 additions & 0 deletions scripts/start_dev.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/bash

source .venv/bin/activate
hypercorn src.smolvault.main:app -b 0.0.0.0:8200 --debug \
--log-config=logging.conf --log-level=DEBUG \
--access-logfile=hypercorn.access.log \
--error-logfile=hypercorn.error.log \
--keep-alive=120 --workers=1
2 changes: 1 addition & 1 deletion terraform/iam.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ data "aws_iam_policy_document" "smolvault-policy" {
statement {
effect = "Allow"
actions = ["s3:*"]
resources = [aws_s3_bucket.smolvault.arn]
resources = [aws_s3_bucket.smolvault.arn, "${aws_s3_bucket.smolvault.arn}/*"]
}
statement {
effect = "Allow"
Expand Down
2 changes: 1 addition & 1 deletion uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8b46572

Please sign in to comment.