-
Notifications
You must be signed in to change notification settings - Fork 301
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
Describe how to use Localstack to improve the development experience with AWS #6875
Merged
Merged
Changes from 7 commits
Commits
Show all changes
13 commits
Select commit
Hold shift + click to select a range
13ed9b9
Create a new resource describing how to use LocalStack to improve loc…
saratry 70a83bb
Add reference to using LocalStack in the ServiceControl Transport Con…
saratry fc0cc67
add empty AWS index.md
saratry 852b027
Update nservicebus/aws/index.md
mauroservienti 4c2ea71
Update nservicebus/aws/index.md
mauroservienti a2d5407
Apply suggestions from code review
mauroservienti ef7b97a
Apply suggestions from code review
mauroservienti c4ad8f9
Update nservicebus/aws/local-development.md
mauroservienti e1249ec
Update nservicebus/aws/local-development.md
mauroservienti 6450bde
Link to local development support from "at a glance" tables
mauroservienti e91139e
Shows the configuration for all services
mauroservienti e6e4abe
Apply suggestions from code review
DavidBoike 20c153c
Fixit
DavidBoike File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
title: AWS local development | ||
summary: Guidance on local development when using AWS | ||
DavidBoike marked this conversation as resolved.
Show resolved
Hide resolved
|
||
reviewed: 2024-10-29 | ||
--- | ||
DavidBoike marked this conversation as resolved.
Show resolved
Hide resolved
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
--- | ||
title: AWS local development using LocalStack | ||
summary: How to use LocalStack for your development needs when using Amazon SQS Transport and DynamoDB Persistence | ||
reviewed: 2024-10-29 | ||
--- | ||
|
||
[LocalStack](https://www.localstack.cloud/) is a tool to develop and test your AWS applications locally, reducing development time and increasing productivity. | ||
|
||
> [!NOTE] | ||
> Refer to the [official LocalStack documentation](https://docs.localstack.cloud/getting-started/installation/) to learn how to install and run it locally. | ||
|
||
To configure an NServiceBus endpoint to connect to LocalStack instead of AWS, the AWS endpoint URL must be set to the address of the LocalStack instance. The simplest way is by defining the `AWS_ENDPOINT_URL` environment variable and setting its value to the LocalStack URL: | ||
|
||
``` | ||
AWS_ENDPOINT_URL=http://localhost.localstack.cloud:4566 | ||
``` | ||
|
||
Alternatively, configure the AWS SDK `ServiceURL` configuration property, like in the following example programmatically: | ||
|
||
|
||
```csharp | ||
var amazonSqsConfig = new AmazonSQSConfig(); | ||
amazonSqsConfig.ServiceURL = "http://localhost.localstack.cloud:4566"; | ||
var amazonSqsClient = new AmazonSQSClient(amazonSqsConfig); | ||
``` | ||
|
||
mauroservienti marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
> [!NOTE] | ||
> Remember that, even if you are not connecting to AWS cloud services, it is still required to specify access credentials and region. | ||
> From the LocalStack perspective they could be fake values, like the following: | ||
> | ||
> ```bash | ||
> AWS_ACCESS_KEY_ID=demo | ||
> AWS_SECRET_ACCESS_KEY=demo | ||
> AWS_REGION=us-east-1 | ||
> ``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Although this won't be in the nav, so it would be hard to get here without manually altering the URL, I would imagine that any other article added to this section would not be about local development but more AWS stuff in general. Shouldn't this title/summary be more general as well?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't like the need of this
index
page. I see two options:nservicebus/aws/local-development.md
underarchitecture/aws/local-development.md
and keep the menu links as is pointing to the new locationnservicebus/aws/local-development.md
undertransports/sqs/local-development.md
and keep the menu links as is pointing to the new locationThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer option 2. It's a greater affinity for SQS. If you're using Dynamo it should be because you're already using Dynamo and you're really past the point of developing a plan for these things.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@DavidBoike — @saratry and I thought the index page could look like a landing/summary page for supported AWS services. What do you think?