Skip to content

Commit

Permalink
fix: list bucket policy on assets bucket (#486)
Browse files Browse the repository at this point in the history
* fix: updated cdn module

* fix: remove original bucket ref

* fix: duplicate ref

* fix: asset bucket attribute

* fix: removed unused ref

* fix: asset bucket issue

* fix: provider issue

* fix: provider issue pt 2

* fix: update lock files

* fix: include .gitignore files and remove lock files to resolve issues once and for all

* fix: bucket name using local

* docs: update Terraform docs

* fix: tf-formatting

* fix: added bucket to resources

---------

Co-authored-by: [email protected] <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people authored Nov 28, 2024
1 parent 9e6a459 commit e83835c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infra/terraform/modules/account/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module "assets" {
data "aws_iam_policy_document" "s3_policy" {
statement {
actions = ["s3:GetObject", "s3:ListBucket"]
resources = ["${module.assets[0].s3_bucket_arn}/*"]
resources = ["${module.assets[0].s3_bucket_arn}", "${module.assets[0].s3_bucket_arn}/*"]

principals {
type = "Service"
Expand Down

0 comments on commit e83835c

Please sign in to comment.