Comments (9)
One of regexp
or versioned_file
must be specified for the resource's get
and check
to work. This is mentioned here but unfortunately because one of them has to be present, they're both marked "optional".
Should probably find a better way of formatting that, and/or add validations to the resource itself so it tells you what went wrong.
from s3-resource.
I got the same error trying to store files with this in Minio. It doesn't support versioned_file
so I'm stuck with regexp
(and there seems to be no notion of folder
in Minio either).
Whatever I put into regex
seems to make no difference (e.g. a group test-(.*).tgz
or even version
named group test-(?version.*).tgz
).
How is this supposed to be used?
from s3-resource.
Hi there!
We use Pivotal Tracker to provide visibility into what our team is working on. A story for this issue has been automatically created.
The current status is as follows:
- #140235895 Put task to an S3 bucket fails even though the actual upload succeeded
- #112642505 S3 resource should validate that either
regexp
orversioned_file
is specified
This comment, as well as the labels on the issue, will be automatically updated as the status in Tracker changes.
from s3-resource.
Thanks. Yeah, we ended up using versioned_file
option, and it's now working nicely.
from s3-resource.
+1 for validation.
from s3-resource.
This seems to still be a problem when using regexp in the get as per example configuration here:
https://github.com/concourse/s3-resource#example-configuration
Errors with:
error running command: InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, HeadObjectInput.Key.
While using in the resource get:
regexp: directory_on_s3/release-(.*).tgz
It works with versioned_file - but seems you cant have * in that field
from s3-resource.
Have to correct myself: Minio has folder
s but I still wasn't able to get it working.
from s3-resource.
Hello
Is there any update on how to solve this ?
I am using this template
terraform {
backend "s3" {}
}
data "terraform_remote_state" "state" {
backend = "s3"
config {
access_key = "${var.access_key}"
secret_key = "$(var.secret_key)"
bucket = "${var.tf_state_bucket}"
dynamodb_table = "${var.tf_state_table}"
region = "${var.region}"
key = "${var.pathtokey}"
}
}
The terraform init :
terraform init -backend-config "bucket=$tf_state_bucket" -backend-config "key=$pathtokey" -backend-config "region=${var.region}" -backend-config "dynamodb_table=$tf_state_table" -backend-config "access_key=XXXXXXXXXXX" -backend-config "secret_key=XXXXXXXXXX" -plugin-dir=.
I get this error every time:
- minimum field size of 1, GetObjectInput.Key.
2017/10/19 14:49:19 [DEBUG] [aws-sdk-go] DEBUG: Validate Request s3/GetObject failed, not retrying, error InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, GetObjectInput.Key.
2017/10/19 14:49:19 [DEBUG] [aws-sdk-go] DEBUG: Build Request s3/GetObject failed, not retrying, error InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, GetObjectInput.Key.
2017/10/19 14:49:19 [DEBUG] plugin: waiting for all plugin processes to complete...
My S3 bucket has versioning enabled and the file in the bucket is "terraform.tfstate". How should I be using the regexp or versioned_file? I tried to use them but did not work out well.
Thank you
from s3-resource.
I want to get all the files from s3 bucket/folder, how to pass the regex to read all the files
from s3-resource.
Related Issues (20)
- Gracefully handle differences in s3 API support HOT 13
- Unable to access latest version of file Hitachi S3
- Uploading file hangs when using Minio HOT 1
- Keep archive even with unpack HOT 1
- Random bucket doesn't exist errors. HOT 1
- Check fails for s3 buckets containing files with spaces in their names
- Add link to download bucket in UI
- upload to s3 bucket path without versioning and overwriting existing file HOT 1
- How can I fetch file with permanent name without version in name from not versioned S3 like minio HOT 4
- 404 on get after successful check HOT 1
- Get s3 resource does not honor region_name HOT 1
- Skip download but still get file metadata.
- What is the "key" (prefix) for versions extracted from filename by s3 resource? HOT 1
- Support assuming an IAM Role HOT 1
- Provide `s3_url` after upload
- check can takes ages and consume an inordinate amount of memory on large bucket
- Troubleshooting/Debugging options
- Code sample
- Support S3 checksum on put
- Access s3 without hardcoding IAM secret key and access key HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from s3-resource.