Skip to content
This repository was archived by the owner on Jan 25, 2026. It is now read-only.

chore: Add DeleteObject action to asset bucket policy#7

Merged
jongwooo merged 1 commit intomainfrom
chore/add-delete-object-action-to-asset-bucket-policy
Jun 4, 2025
Merged

chore: Add DeleteObject action to asset bucket policy#7
jongwooo merged 1 commit intomainfrom
chore/add-delete-object-action-to-asset-bucket-policy

Conversation

@jongwooo
Copy link
Contributor

@jongwooo jongwooo commented Jun 4, 2025

This pull request includes a modification to the aws_s3_bucket_policy resource in Modules/S3/main.tf. The change updates the policy to expand the allowed actions for the bucket.

Policy update:

  • Modules/S3/main.tf: Changed the Sid value from AllowWriteAccess to AllowPutAndDeleteAccess and added s3:DeleteObject to the list of allowed actions, alongside s3:PutObject. This expands the permissions to include object deletion.

@jongwooo jongwooo requested a review from Copilot June 4, 2025 01:11
@jongwooo jongwooo self-assigned this Jun 4, 2025
@jongwooo jongwooo added the chore label Jun 4, 2025
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR expands the S3 bucket policy to include object deletion in addition to object creation.

  • Renames the policy statement ID to reflect both put and delete actions
  • Adds s3:DeleteObject alongside s3:PutObject in allowed actions
Comments suppressed due to low confidence (2)

Modules/S3/main.tf:58

  • [nitpick] Update any module README or documentation to mention the new AllowPutAndDeleteAccess statement and the inclusion of delete permissions so users are aware of the expanded scope.
Sid       = "AllowPutAndDeleteAccess"

Modules/S3/main.tf:61

  • [nitpick] Consider adding or updating automated tests (e.g., using Terraform plan validation) to verify that both s3:PutObject and s3:DeleteObject are correctly included in the bucket policy.
Action = [

@jongwooo jongwooo merged commit a41713b into main Jun 4, 2025
1 check passed
@jongwooo jongwooo deleted the chore/add-delete-object-action-to-asset-bucket-policy branch June 4, 2025 01:13
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant