Overview
The Amazon S3 Utilities Plug-in leverages the Amazon AWS Java API to connect with Amazon S3 to store and retrieve files.
Key Features & Functionality
The following smart services are included:
The plug-in also includes a function:
Amazon S3 Utilities supports the following Amazon S3 features:
Note: The plug-in requires Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction Policy Files when using client side encryption.
(https://www.oracle.com/technetwork/java/javase/downloads/jce8-download-2133166.html)
The Appian Secure Credential Store is leveraged for the credentials to integrate with Amazon S3. Before executing the plug-in, create an new secure credential store with the following 3 attributes. These values are obtained from Amazon AWS IAM console.
The plugin does not have this capability currently. I think it should be a separate call to get the file metadata.
Hi
I am using the download s3 pluggin in the process model to download the files from S3
There has been a requirement to fetch the timestamp of the file modified in s3
Is there a way we can fetch the timestamp while downloading the file ?
@baratc can u add ur inputs on how have to implemented webapi
I don't think the expiration time has anything to do with the issue, the 5s is just an expiration for the user/system to initiate the request - once started, the download will continue until completion.
If we leave the expiration open then the generated link can be shared and document accessible to anyone.
Can we have parameter to set expiration time, instead of just defaulting it to 5Secs can we set it from Appian function. Reason is we are pulling the preassigned link and passing it to PDFTron plugin to display on Appian interface and the link is giving 403 if the document size is in MBs (Larger files). So please open the parameter as S3 bucket allows end users to set it up based on their need.
Hi Barat, how you had called the WEPAPI from interface which will download the document in single click?
Currently using the below code which requires user to click to two times, one to generate the link and other to download to their local. Can we achieve in single click?
a!linkField( links: { a!dynamicLink( label: "Click here", saveInto: { a!save( local!newURI, getPreSignedURLForS3( secureCredentialsStoreKey: "key**", region: "reg***", bucketName: "buck**", file: "filePath" ) ) } ), a!safeLink(label: local!docName, uri: local!newURI) })
I am not sure I understand your use case but the use case for this function is to allow direct document download links - user clicks on a link, the web api validates security, generates the redirect link and the browser provides them with a pop up to download the doc. You can use other s3 plugins to satisfy your use case, either here or through the S3 connected system.
In our case, there will be more files per request and all should be evaluated for approval. User needs to generate the link repeatedly as he feels more difficult to act immediately to download as the the links are getting expired soon.
What would be a need for more than 5s? The limit only applies b/w calculating the url and issuing a redirect inside the web api so it should be done very quickly unless you have extreme network lags b/w browser and server.