Skip to content

Commit

Permalink
fix: added s3:ListBucket so ActiveStorage::PurgeJob can run
Browse files Browse the repository at this point in the history
  • Loading branch information
fermion committed Sep 19, 2024
1 parent 403c4ff commit fb21222
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 9 deletions.
3 changes: 2 additions & 1 deletion tf/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,8 @@ resource "aws_iam_policy" "staffplan_redux_bot_policy" {
"Action": [
"s3:PutObject",
"s3:GetObject",
"s3:DeleteObject"
"s3:DeleteObject",
"s3:ListBucket"
],
"Resource": "${aws_s3_bucket.staffplan_redux_production.arn}/*"
}
Expand Down
16 changes: 8 additions & 8 deletions tf/terraform.tfstate
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"version": 4,
"terraform_version": "1.5.7",
"serial": 35,
"serial": 37,
"lineage": "6c680206-1f35-759f-49a7-8ad19bca3f72",
"outputs": {
"bucket_arn": {
Expand All @@ -25,9 +25,9 @@
"name": "staffplan_redux_bot_policy",
"name_prefix": "",
"path": "/",
"policy": "{\"Statement\":[{\"Action\":[\"s3:PutObject\",\"s3:GetObject\",\"s3:DeleteObject\"],\"Effect\":\"Allow\",\"Resource\":\"arn:aws:s3:::staffplan-redux-production/*\"}],\"Version\":\"2012-10-17\"}",
"policy": "{\"Statement\":[{\"Action\":[\"s3:PutObject\",\"s3:GetObject\",\"s3:DeleteObject\",\"s3:ListBucket\"],\"Effect\":\"Allow\",\"Resource\":\"arn:aws:s3:::staffplan-redux-production/*\"}],\"Version\":\"2012-10-17\"}",
"policy_id": "ANPA5KYKEGZV7WPZAGHQT",
"tags": null,
"tags": {},
"tags_all": {}
},
"sensitive_attributes": [],
Expand All @@ -47,11 +47,11 @@
{
"schema_version": 0,
"attributes": {
"groups": null,
"groups": [],
"id": "s3_policy_attachment",
"name": "s3_policy_attachment",
"policy_arn": "arn:aws:iam::916459894379:policy/staffplan_redux_bot_policy",
"roles": null,
"roles": [],
"users": [
"staffplan_redux_bot"
]
Expand Down Expand Up @@ -111,13 +111,13 @@
"ipv6_addresses": [
"2600:1f18:62af:2400:52b7:7a0d:42d:c2c4"
],
"is_static_ip": false,
"is_static_ip": true,
"key_pair_name": "staffplan-key-pair",
"name": "staffplan-redux",
"private_ip_address": "172.26.4.66",
"public_ip_address": "54.91.158.138",
"public_ip_address": "34.192.107.71",
"ram_size": 2,
"tags": null,
"tags": {},
"tags_all": {},
"user_data": null,
"username": "ubuntu"
Expand Down

0 comments on commit fb21222

Please sign in to comment.