-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_s3_file doesn't download file from S3, just creates blank file when IAM role is assigned to instane #317
Comments
@lkjangir This is really hard to debug based on the information you've provided. Based on the tests that run for this cookbook when
are defined, the cookbook converges successfully and the file is downloaded successfully:
If the keys aren't correct or missing the converge fails. Are you sure the file isn't empty? No one else has reported an issue which leads me to think that there might be a problem in your environment. |
Please reopen if you are still having problems and can update with more information please reopen. Thanks. |
@lkjangir did you resolve this issue? I'm running into the exact same thing.... |
I just ran into this. Double check the region of your bucket and what you have configured in |
@jonathanan thanks for the additional context to how to possibly debug. |
I'm having similar issue when using asw_s3_file on instance running in different region and when region is not specified in the resource. |
I think the region requirement for the aws_s3_file command should be removed. It's not a given that your s3 bucket should be in the same region as the EC2 instance. I think a common scenario for grabbing S3 files during a chef run would be to pull down common configuration files/rpm packages/etc, most or all of which aren't region specific things. S3 doesn't require a region to download anyways. You can |
Cookbook version
[Version of the cookbook where you are encountering the issue]
7.1.2
Chef-client version
[Version of chef-client in your environment]
13.3.42
Platform Details
[Operating system distribution and release version. Cloud provider if running in the cloud]
Amazon Linux
Scenario:
[What you are trying to achieve and you can't?]
EC2 instance has IAM role assigned and I just want to download the file from S3 bucket, it creates a blank file, doesn't download.
Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this cookbook or any resources it includes?]
I have this code in my recipe...
Expected Result:
It should download the file, but it doesn't
Actual Result:
it doesn't give any error, chef-client completes process successfully.
The text was updated successfully, but these errors were encountered: