Comments (6)
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.
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.
Thank you for your assistance!
from localstack.
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.
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.
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)
- bug: S3 object tags are not copied if versioning is enabled on a S3 bucket HOT 1
- feature request: Backup Tag Support
- bug: Can't create a CloudWatch Alarm with a colon `:` in the name HOT 2
- bug: Cognito refresh token does not expire
- feature request: apigateway.GetUsage HOT 2
- feature: LocalStack doesn't verify signatures in authorization header HOT 6
- Creating EKS Cluster HOT 3
- bug: Lambda Hot Reload not updating function HOT 6
- feature request: local stack to work with k3d
- bug: Creating a Redshift cluster with Terraform throws an error that API returned unexpected MultiAZ value "" (empty string) HOT 2
- bug: LocalStack Overrides S3 Buckets, Causing Request Failures in Local Environment with NestJS, Node.js, and Axios HOT 2
- bug: Local SSL Certificate now unable to download HOT 10
- bug: StartupScript runs twice with HELM deployment HOT 1
- feature request: Api gateway resource policies support HOT 1
- feature request: RDS Proxy PostgreSQL implementation HOT 1
- bug: Batch Array Jobs ARE NOT executed with environment that includes AWS_BATCH_JOB_ARRAY_INDEX HOT 1
- bug: Cognito access token - username is sub, not email HOT 4
- bug: describe-security-group-rules output not consistent HOT 1
- bug: TypeError: argument of type 'ReplicationGroupConfiguration' is not iterable HOT 6
- feature request: s3 eventbridge notifications to include the version-id when bucket version is enabled. 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 localstack.