Skip to content

Commit

Permalink
Add permissions for managing s3 bucket policies and lifecycle configu…
Browse files Browse the repository at this point in the history
…rations.

The JPT-dev role needs these extra permissions to allow attaching a policy to a bucket and to create a lifecycle rule to automatically clean the bucket contents. These permissions are required when setting the jiraSharedStorageConfig option in DataCenterFormula (in aws-infrastructure) to store avatar and/or attachments in an S3 bucket (instead of the shared home).
  • Loading branch information
MatthewCochrane authored and mgrzaslewicz committed Oct 27, 2023
1 parent bee83aa commit a59072d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ Dropping a requirement of a major version of a dependency is a new contract.
## [Unreleased]
[Unreleased]: https://github.com/atlassian-labs/aws-resources/compare/release-1.13.0...master

### Added
- Add permissions for managing s3 bucket policies and lifecycle configurations.

### Fixed
- Add missing `iam:GetRole` permission. You have to update the policy manually. Fix [JPERF-1407].

Expand Down
4 changes: 4 additions & 0 deletions src/main/resources/iam-policy.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,10 @@
"s3:GetObject",
"s3:ListBucket",
"s3:PutObject",
"s3:GetBucketPolicy",
"s3:PutBucketPolicy",
"s3:DeleteBucketPolicy",
"s3:PutLifecycleConfiguration",
"sts:GetCallerIdentity",
"support:CreateCase"
],
Expand Down

0 comments on commit a59072d

Please sign in to comment.