question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

s3 as url in `value_from` is not working

See original GitHub issue

I’ve got a json file hosted on a web server that I’m using as my url in a value_from expression. Works great. If I move it locally and change to a file: url, it also works fine. However, when I move that same file to s3 and use that in my url, it fails with what appears to be an invalid json file error. If I specify a path to a bogus file like /etc/services I get the very same error, leading me to believe it’s not reading it properly from s3? I’ve tried specifying format: json and also not specifying it, no change. I’ve validated that it’s accessing the file correctly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:7 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
thisisshicommented, Jul 27, 2018

@aardvarq can you pull the latest version of cloud custodian from master and try again? https://github.com/capitalone/cloud-custodian/pull/2657 was merged that should have addressed this issue.

0reactions
aardvarqcommented, Jul 25, 2018

@jonathanwcrane I’m just patching with this for now:

  sed -i "s/s3_uri(uri)/s3_uri(uri).decode('utf-8')/" ${PATH-TO-PY3-CODE/c7n/resolver.py
Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot endpoint URL connection error in Amazon S3
I'm trying to run the cp or sync command on my Amazon Simple Storage Service (Amazon S3) bucket. However, I'm getting the "Could...
Read more >
function not returning value from amazon-s3 file but prints ...
The issue is the s3 method being asynchronous. See this function getMeridianToken1() { const s3 = new aws.S3(); // Create the parameters for ......
Read more >
S3 Storage Metadata backend not working (Login not possible)
Currently I'm facing an 500 error when I'm trying to login to the UI while using S3 storage backend for users and metadata...
Read more >
10 things you should know about using AWS S3 - Sumo Logic
Learn how to optimize Amazon S3 with top tips and best practices. ... How to use nested S3 folder organization and common problems....
Read more >
How to get URL of uploaded file from Amazon S3 Cloud ...
but i m not getting any other things like uploadid or URL of the file. ... I am working to download file from...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found