Looker is pushing my file to s3 bucket. I want to avoid looker to append the timestamp at the end of the file and send the name of the file as I want to. How can I do that. I don’t want to write an extra bash script to do this.
You would need a script, unfortunately. The decision to append the timestamp to the filename is intentional, and was added many moons ago to support folks who don’t want files for repeat deliveries to be overwritten in their S3 buckets (which I believe is default behavior for S3). The general idea would be to (1) call `run_look`, (2) grab the file returned from the API and add whatever desired filename you want to give it, finally (3) push that to your bucket using your mechanism of choice (the `boto` python library leverages the AWS SDK and could make this easier https://boto3.amazonaws.com/v1/documentation/api/latest/guide/s3-uploading-files.html )
Already have an account? Login
No account yet? Create an account
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.