Skip to content

s3 asset object s3 url #7221

@machielg

Description

@machielg

add a method or property to get the 's3://bucket/key' style url from the Asset in aws-s3-assets

Use Case

In many places s3 assets are used in other constructs. In many projects I see:
people doing something like: s3://${myAsset.s3BucketName}/${myAsset.s3ObjectKey}

you could easily make small mistakes doing this, while it's such a common need.

Proposed Solution

add a property to Asset s3ObjectUrl which holds s3://${myAsset.s3BucketName}/${myAsset.s3ObjectKey}

Other

  • 👋 I may be able to implement this feature request
  • ⚠️ This feature might incur a breaking change

This is a 🚀 Feature Request

Metadata

Metadata

Assignees

Labels

@aws-cdk/aws-s3-assetseffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.good first issueRelated to contributions. See CONTRIBUTING.mdin-progressThis issue is being actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions