Skip to content

Commit

Permalink
Update CloudFront signing for custom policy with new resourceUrlPatte…
Browse files Browse the repository at this point in the history
  • Loading branch information
tkhill-AWS committed Mar 4, 2025
1 parent 8d354d4 commit b92edbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion javav2/example_code/cloudfront/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
<dependency>
<groupId>software.amazon.awssdk</groupId>
<artifactId>bom</artifactId>
<version>2.29.45</version>
<version>2.30.31</version>
<type>pom</type>
<scope>import</scope>
</dependency>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public static CustomSignerRequest createRequestForCustomPolicy(String distributi

return CustomSignerRequest.builder()
.resourceUrl(cloudFrontUrl)
// .resourceUrlPattern("https://*.example.com/*") // Optional.
.privateKey(path)
.keyPairId(publicKeyId)
.expirationDate(expireDate)
Expand Down

0 comments on commit b92edbd

Please sign in to comment.