S3 can not include a folder

Open
#98 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
28/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
aws, java
Domain
cloud, devops

Research direction

Start at the bucket validation check shown in the issue, then trace how the Java plugin handles the bucket and requested folder. Look for existing tests around this validation and confirm the intended S3 bucket/prefix behavior. Done means the requested shared-bucket case is handled and covered without weakening bucket validation.

Written by the indexing model from the issue text.

Description

enhancement

Hi,
I check the code:
if(bucket.indexOf("/") > 0){
throw new IllegalArgumentException("S3 Bucket field cannot contain any subdirectories. Bucket name only!");
}

I don't know why S3 Bucket can't contain any subdirectories, in our real case, We want to use the same S3 Bucket and create different folder under the same Bucket.

can you fix this issue?

Thanks
Danny

Dominant language
Java
Stars
156
Forks
130
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from awslabs/aws-codedeploy-plugin

All issues in awslabs/aws-codedeploy-plugin

Similar issues

More Java issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.