- Newest
- Most votes
- Most comments
Excuse me but my question is different, I don't want to use a lambda@edge function in viewer_request(authoriz) but I would like a flat url that has associated aws credentials to invoke the resource within cloudfront. to directly invoke s3 I use amplify which generates the url for s3. I would like equivalent for cloudfront if it exists?
example of creating the s3 url with aws credentials retrieved from congito.
- Amplify.Storage.configure({ region:region , bucket: resource.s3Bucket , level: 'public', credentials: currentUserCredentials.value, customPrefix: { public: '', } }); resource.s3PublicUrl = await Storage.get( resource.s3Key );*
URL like this: https://@mybucket.s3.eu-west-1.amazonaws.com/resources/company-b/ce424f31-4901-451f-a105-8539f67204ec/04e5270d-bf16-46b0-9393-f9e25584f45a_image-25.jpg?x -amz-content-sha256=e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855&x-amz-user-agent=aws-amplify%2F5.3.13+storage%2F2+framework%2F4&X-Amz-Algorithm= AWS4-HMAC-SHA256&X-Amz-Credential=ASIA2CEJGFIT773UNRXO%2F20240208%2Feu -west-1%2Fs3%2Faws4_request&X-Amz-Date=20240208T114456Z&X-Amz-SignedHeaders=host&X-Amz-expires=900&X-Amz-Security-Token=IQoJb3JpZ2lu pIqTwYZdqi4X8%2BTNd5hPSK3tQa5CR3YX1dAIgO2dUkJdUGzdo4WlSgau0dXUiWOvjz2fNMQdtmFOESjkqyAUI7f%2F%2F%2F%2F%2F%2F%2F %2F%2F%2FARADGgw2OTE3Nzc0NDg0ODciDIKAhP9SwjLeXc%2B%2B8yqcBdLlnIOs5AQAbWtGpnIrS4iW9xpTScjlTkW38UrsrddmclOgDaWBu%2Fk9UuGB3tT1ejBkuF%2Bz%2FLqi6%2Fe QjEBQ4tKuDEepkXGV7qgd4mTjeLXzjgvnaD8UAkNTYDqG1p%2ByjugApyQFs8q%2FnEWZKca13niuO3%2BFKiLiSv3vgLCZAs7s0aRgMghOHeYLbCKZ2jFQc7jOj1laXg2V0uiNVLnfGNWC9IVkBr J6xPGP2P8i9YIq6XU8aCxQawGWFl4rod9oj6Tj5aH6hONi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e0233ee6ca64ea92
Relevant content
- Accepted Answerasked 2 years ago
- Accepted Answerasked 2 years ago
- asked 10 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 8 months ago
- AWS OFFICIALUpdated a month ago