Skip to content

Image is not resizing. #5

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

Open
dhavalk-simform opened this issue Apr 10, 2020 · 1 comment
Open

Image is not resizing. #5

dhavalk-simform opened this issue Apr 10, 2020 · 1 comment

Comments

@dhavalk-simform
Copy link

I've cloned your repo to my local system.

then update a details SSL_KEY, SLS_SECRET, STAGE, REGION, BUCKET in secrets.env file.

I want to use node version 10 so I change it to bucket/serverless.yml and functions/serverless.yml and Dockerfile.

At last, I run command docker-compose up --build

I kept en eye on the output of a docker-compose command and everything is set up nicely.

it has created 2 S3 bucket image-resize-on-the-fly-serverlessdeploymentbuck-15sulaxg0lhop, image-resize-on-the-fly-serverlessdeploymentbuck-2lofzjreudgm and one bucket that I updated in secrets.env file to store images. two cloudformation stacks image-resize-on-the-fly-bucket-dev and image-resize-on-the-fly-functions-dev and one lambda function.

then I upload an image to S3 bucket. : S3_BUCKET_URL/image.jpg and I can access this URL.

Then I tried S3_BUCKET_URL/500x500/image.jpg but it's given me an error and I've attached error screen. it's not creating resize image.

Any help would be grateful.

error (1)

@adnanrahic
Copy link
Owner

You have to access the CloudFront URL not the S3 bucket URL. The S3 bucket is often not public-facing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants