Giter VIP home page Giter VIP logo

Comments (6)

localstack-bot avatar localstack-bot commented on September 23, 2024

Welcome to LocalStack! Thanks for reporting your first issue and our team will be working towards fixing the issue for you or reach out for more background information. We recommend joining our Slack Community for real-time help and drop a message to LocalStack Pro Support if you are a Pro user! If you are willing to contribute towards fixing this issue, please have a look at our contributing guidelines and our contributing guide.

from localstack.

MarcelStranak avatar MarcelStranak commented on September 23, 2024

Hello @VSVDEv,

I would like to provide some steps if they can resolve the issue.

Change your docker-compose.yml

services:
  localstack:
    container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
    image: localstack/localstack
    ports:
      - "127.0.0.1:4566:4566"            # LocalStack Gateway
      - "127.0.0.1:4510-4559:4510-4559"  # external services port range
    environment:
      # LocalStack configuration: https://docs.localstack.cloud/references/configuration/
      - DEBUG=${DEBUG:-0}
      - AWS_ACCESS_KEY_ID=test
      - AWS_SECRET_ACCESS_KEY=test
    volumes:
      - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"

Use samlocal a wrapper for the AWS SAM CLI.`
Docs: https://docs.localstack.cloud/user-guide/integrations/aws-sam/

For the Java SDK, Please follow the steps mentioned in https://docs.localstack.cloud/user-guide/integrations/sdks/java/

from localstack.

VSVDEv avatar VSVDEv commented on September 23, 2024

Thank you for your assistance!

from localstack.

oferbar avatar oferbar commented on September 23, 2024

Hello @VSVDEv,

I would like to provide some steps if they can resolve the issue.

Change your docker-compose.yml

services:
  localstack:
    container_name: "${LOCALSTACK_DOCKER_NAME:-localstack-main}"
    image: localstack/localstack
    ports:
      - "127.0.0.1:4566:4566"            # LocalStack Gateway
      - "127.0.0.1:4510-4559:4510-4559"  # external services port range
    environment:
      # LocalStack configuration: https://docs.localstack.cloud/references/configuration/
      - DEBUG=${DEBUG:-0}
      - AWS_ACCESS_KEY_ID=test
      - AWS_SECRET_ACCESS_KEY=test
    volumes:
      - "${LOCALSTACK_VOLUME_DIR:-./volume}:/var/lib/localstack"
      - "/var/run/docker.sock:/var/run/docker.sock"

Use samlocal a wrapper for the AWS SAM CLI.` Docs: https://docs.localstack.cloud/user-guide/integrations/aws-sam/

For the Java SDK, Please follow the steps mentioned in https://docs.localstack.cloud/user-guide/integrations/sdks/java/

Hi,
I have followed all the steps for Java, AWS SDK v1, but I still get this error:

The AWS Access Key Id you provided does not exist in our records. (Service: Amazon S3; Status Code: 403; Error Code: InvalidAccessKeyId;

I ran out of ideas.

Any suggestions?

Thanks

from localstack.

MarcelStranak avatar MarcelStranak commented on September 23, 2024

Hi @oferbar,

You are still trying to connect to the actual AWS.

If you need more examples for the AWS Java SDK, please check our documentation pages for Tutorials and Applications samples.
https://docs.localstack.cloud/tutorials/
https://docs.localstack.cloud/applications/
For example: https://docs.localstack.cloud/tutorials/java-notification-app/

from localstack.

VSVDEv avatar VSVDEv commented on September 23, 2024

HI, @oferbar

You should create profile as mention in my question
sam local doesn't work automatically with localstack check links provided above

from localstack.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.