Trying to evaluate Prefect for running flows in k8s…
I created a S3 bucket and access point, and added a S3 Block called s3/as using the Orion UI.
I try to run:
prefect deployment build ./kubernetes-deployment.py:foo -n foo-deployment -t test --storage-block s3/as
The error I get indicates that the bucket path has an invalid syntax:
Invalid bucket name “arn:aws:s3:us-east-1:999999999999:accesspoint”: Bucket name must match the regex “[1]{1,255}$” or be an ARN matching the regex “^arn:(aws).:(s3|s3-object-lambda):[a-z-0-9]:[0-9]{12}:accesspoint[/:][a-zA-Z0-9-.]{1,63}$|^arn:(aws).*:s3-outposts:[a-z-0-9]+:[0-9]{12}:outpost[/:][a-zA-Z0-9-]{1,63}[/:]accesspoint[/:][a-zA-Z0-9-]{1,63}$”
It looks like it’s validating the bucket name without the /path at the end, and it wants the path. If I look in the Orion UI I see that the full bucket path is as I entered it (ie it has the path component at the end):
arn:aws:s3:us-east-1:999999999999:accesspoint/as-test01-ap
Any ideas, or is this error a red herring?
(note that I changed the numbers to 9999 for this msg as I’m not sure of the sensitivity of that id)
-
a-zA-Z0-9.-_ ↩︎