Skip to main content

AWS CloudFront

Add Query​

You can add a query step by adding a workflow to the page list.
When you select the AWS CloudFront data source in the workflow step sidebar, the query input window appears.

aws-cloudfront

Actions​

Generate Signed URL Action​

Generate a signed URL to provide time-limited access to private content.

get-signed-url

Parameters​

NameTypeDescription
File Key (fileKey)stringThe key of the file to access
Expiration Time (dateLessThan)numberURL expiration time(unix timestamp)

Query Result​

Generating a signed URL action returns a result in the following structure.

interface Result {
Url: string;
}

Using Result​

To use the result in another step, write as follows.

return outputs.stepName.Url;

Generate Signed URL with Custom Policy Action​

If you need more complex access control, generate a signed URL with a custom policy.

get-signed-url-with-custom-policy

Parameters​

NameTypeDescription
File Key (fileKey)stringThe key of the file to access
Expiration Time (dateLessThan)numberURL expiration time(unix timestamp)
Start Time (dateGreaterThan)numberURL start time(unix timestamp)
IP (ipAddress)stringAllowed IP address

Query Result​

Generating a signed URL with a custom policy action returns a result in the following structure.

interface Result {
Url: string;
}

Using Result​

To use the result in another step, write as follows.

return outputs.stepName.Url;

Generate URL Action​

Generate an unsigned general CloudFront URL.

get-url

Parameters​

NameTypeDescription
File Key (fileKey)stringThe key of the file to access

Query Result​

Generating an unsigned general CloudFront URL returns a result in the following structure.

interface Result {
Url: string;
}

Using Result​

To use the result in another step, write as follows.

return outputs.stepName.Url;