Skip to content

Commit 54f245f

Browse files
committed
finish the rest
1 parent 6f61172 commit 54f245f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+185
-417
lines changed

src/content/docs/aws/services/lakeformation.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,7 @@ Execute the following command to list the resources:
5555
awslocal lakeformation list-resources
5656
```
5757

58-
The following output is displayed:
59-
60-
```bash
58+
```bash title="Output"
6159
{
6260
"ResourceInfoList": [
6361
{

src/content/docs/aws/services/lambda.mdx

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -123,9 +123,7 @@ awslocal lambda create-function-url-config \
123123
--auth-type NONE
124124
```
125125

126-
The following output would be retrieved:
127-
128-
```json
126+
```bash title="Output"
129127
{
130128
"FunctionUrl": "http://my-custom-subdomain.lambda-url.<region>...",
131129
....
@@ -141,9 +139,7 @@ awslocal lambda create-function-url-config \
141139
--qualifier test-alias
142140
```
143141

144-
The following output would be retrieved:
145-
146-
```json
142+
```bash title="Output"
147143
{
148144
"FunctionUrl": "http://my-custom-subdomain-test-alias.lambda-url.<region>...",
149145
....
@@ -162,9 +158,7 @@ curl -X POST \
162158
-d '{"num1": "10", "num2": "10"}'
163159
```
164160

165-
The following output would be retrieved:
166-
167-
```sh
161+
```bash title="Output"
168162
The product of 10 and 10 is 100%
169163
```
170164

@@ -479,7 +473,7 @@ We then used the [`CreateFunction` API](https://docs.aws.amazon.com/lambda/lates
479473
To test our Lambda function and see the output from the Lambda Layer, we can invoke the function and check the logs (with `DEBUG=1` enabled).
480474
Here's an example:
481475

482-
```shell
476+
```bash title="Output"
483477
> START RequestId: a8bc4ce6-e2e8-189e-cf58-c2eb72827c23 Version: $LATEST
484478
> Output from Lambda layer util function
485479
> Debug output from Lambda function
@@ -673,9 +667,7 @@ If you receive a `ResourceConflictException` when trying to invoke a function, i
673667
awslocal lambda get-function --function-name my-function
674668
```
675669

676-
The output will be similar to the following:
677-
678-
```bash
670+
```bash title="Output"
679671
An error occurred (ResourceConflictException) when calling the Invoke operation (reached max retries: 0):
680672
The operation cannot be performed at this time.
681673
The function is currently in the following state: Pending
@@ -693,9 +685,7 @@ Alternatively, you can check the function state using the [`GetFunction` API](ht
693685
awslocal lambda get-function --function-name my-function
694686
```
695687

696-
The output will be similar to the following:
697-
698-
```json
688+
```bash title="Output"
699689
{
700690
"Configuration": {
701691
...
@@ -714,9 +704,7 @@ When the function is active, the output will be similar to the following:
714704
awslocal lambda get-function --function-name my-function
715705
```
716706

717-
The output will be similar to the following:
718-
719-
```json
707+
```bash title="Output"
720708
{
721709
"Configuration": {
722710
...

src/content/docs/aws/services/managedblockchain.mdx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ awslocal managedblockchain create-network \
6767
}'
6868
```
6969

70-
The output will be similar to the following:
71-
72-
```json
70+
```bash title="Output"
7371
{
7472
"NetworkId": "n-X24AF1AK2GC6MDW11HYW5I5DQC",
7573
"MemberId": "m-6VWBWHP2Y15F7TQ2DS093RTCW2"
@@ -107,9 +105,7 @@ awslocal managedblockchain create-node \
107105
--member-id m-6VWBWHP2Y15F7TQ2DS093RTCW2
108106
```
109107

110-
The output will be similar to the following:
111-
112-
```json
108+
```bash title="Output"
113109
{
114110
"NodeId": "nd-77K8AI0O5BEQD1IW4L8OGKMXV7"
115111
}
@@ -129,9 +125,7 @@ awslocal managedblockchain create-proposal \
129125
--member-id m-6VWBWHP2Y15F7TQ2DS093RTCW2
130126
```
131127

132-
The output will be similar to the following:
133-
134-
```json
128+
```bash title="Output"
135129
{
136130
"ProposalId": "p-NK0PSLDPETJQX01Q4OLBRHP8CZ"
137131
}

src/content/docs/aws/services/mediastore.mdx

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@ Run the following command to create a container and retrieve the the `Endpoint`
3131
awslocal mediastore create-container --container-name mycontainer
3232
```
3333

34-
You should see the following output:
35-
36-
```bash
34+
```bash title="Output"
3735
{
3836
"Container": {
3937
"Endpoint": "http://mediastore-mycontainer.mediastore.localhost.localstack.cloud:4566",
@@ -59,9 +57,7 @@ awslocal mediastore-data put-object \
5957
--content-type binary/octet-stream
6058
```
6159

62-
You should see the following output:
63-
64-
```bash
60+
```bash title="Output"
6561
{
6662
"ContentSHA256": "",
6763
"ETag": "\"111d787cdcfcc358fd15684131f586d8\""
@@ -82,9 +78,7 @@ awslocal mediastore-data get-object \
8278
/tmp/out.txt
8379
```
8480

85-
You should see the following output:
86-
87-
```bash
81+
```bash title="Output"
8882
{
8983
"ContentLength": "716",
9084
"ContentType": "binary/octet-stream",

src/content/docs/aws/services/memorydb.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ Run the following command to retrieve the cluster endpoint using the [`DescribeC
4040
awslocal memorydb describe-clusters --query "Clusters[0].ClusterEndpoint"
4141
```
4242

43-
The output will be similar to the following:
44-
45-
```json
43+
```bash title="Output"
4644
{
4745
"Address": "127.0.0.1",
4846
"Port": 36739

src/content/docs/aws/services/mq.mdx

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ awslocal mq create-broker \
3939
--users='{"ConsoleAccess": true, "Groups": ["testgroup"],"Password": "QXwV*$iUM9USHnVv&!^7s3c@", "Username": "admin"}'
4040
```
4141

42-
The output will be similar to the following:
43-
44-
```json
42+
```bash title="Output"
4543
{
4644
"BrokerArn": "arn:aws:mq:us-east-1:000000000000:broker:test-broker:b-f503abb7-66bc-47fb-b1a9-8d8c51ef6545",
4745
"BrokerId": "b-f503abb7-66bc-47fb-b1a9-8d8c51ef6545"
@@ -54,13 +52,10 @@ You can use the [`DescribeBroker`](https://docs.aws.amazon.com/amazon-mq/latest/
5452
Run the following command to get information about the broker we created above:
5553

5654
```bash
57-
awslocal mq describe-broker --broker-id
55+
awslocal mq describe-broker --broker-id b-f503abb7-66bc-47fb-b1a9-8d8c51ef6545
5856
```
5957

60-
The output will be similar to the following:
61-
62-
```json
63-
b-f503abb7-66bc-47fb-b1a9-8d8c51ef6545
58+
```bash title="Output"
6459
{
6560
"BrokerArn": "arn:aws:mq:us-east-1:000000000000:broker:test-broker:b-f503abb7-66bc-47fb-b1a9-8d8c51ef6545",
6661
"BrokerId": "b-f503abb7-66bc-47fb-b1a9-8d8c51ef6545",

src/content/docs/aws/services/msk.mdx

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ To set up a local MSK (Managed Streaming for Apache Kafka) cluster, you can use
3030
In this process, you'll need a JSON file named `brokernodegroupinfo.json` which specifies the three subnets where you want your local Amazon MSK to distribute the broker nodes.
3131
Create the file and add the following content to it:
3232

33-
```json
33+
```bash title="Output"
3434
{
3535
"InstanceType": "kafka.m5.xlarge",
3636
"BrokerAZDistribution": "DEFAULT",
@@ -52,9 +52,7 @@ awslocal kafka create-cluster \
5252
--number-of-broker-nodes 3
5353
```
5454

55-
The output of the command looks similar to this:
56-
57-
```bash
55+
```bash title="Output"
5856
{
5957
"ClusterArn": "arn:aws:kafka:us-east-1:000000000000:cluster/EventsCluster/b154d18a-8ecb-4691-96b2-50348357fc2f-25",
6058
"ClusterName": "EventsCluster",
@@ -71,9 +69,7 @@ awslocal kafka describe-cluster \
7169
--cluster-arn "arn:aws:kafka:us-east-1:000000000000:cluster/EventsCluster/b154d18a-8ecb-4691-96b2-50348357fc2f-25"
7270
```
7371

74-
The output of the command looks similar to this:
75-
76-
```bash
72+
```bash title="Output"
7773
{
7874
"ClusterInfo": {
7975
"BrokerNodeGroupInfo": {
@@ -122,9 +118,7 @@ bin/kafka-topics.sh \
122118
--topic LocalMSKTopic
123119
```
124120

125-
After executing the command, your output should resemble the following:
126-
127-
```bash
121+
```bash title="Output"
128122
Created topic LocalMSKTopic.
129123
```
130124

@@ -212,7 +206,7 @@ awslocal lambda create-event-source-mapping \
212206

213207
Upon successful completion of the operation to create the Lambda Event Source Mapping, you can expect the following response:
214208

215-
```bash
209+
```bash title="Output"
216210
{
217211
"UUID": "9c353a2b-bc1a-48b5-95a6-04baf67f01e4",
218212
"StartingPosition": "LATEST",

src/content/docs/aws/services/mwaa.mdx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,15 @@ The Airflow UI can be accessed via the URL in the `WebserverUrl` attribute of th
5151
The username and password are always set to `localstack`.
5252

5353
```bash
54-
awslocal mwaa get-environment --name my-mwaa-env --query Environment.WebserverUrl
55-
"http://localhost.localstack.cloud:4510"
54+
awslocal mwaa get-environment \
55+
--name my-mwaa-env \
56+
--query Environment.WebserverUrl \
57+
"http://localhost.localstack.cloud:4510"
5658
```
5759

5860
LocalStack also prints this information in the logs:
5961

60-
```bash
62+
```bash title="Output"
6163
2024-03-06T14:54:47.070 INFO --- [functhread10] l.services.mwaa.provider : Airflow environment 'my-mwaa-env' available at http://localhost.localstack.cloud:4510 with username 'localstack' and password 'localstack'
6264
```
6365

src/content/docs/aws/services/neptune.mdx

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,7 @@ awslocal neptune create-db-cluster \
5858
--db-cluster-identifier my-neptune-db
5959
```
6060

61-
You should see the following output:
62-
63-
```json
61+
```bash title="Output"
6462
{
6563
"DBCluster": {
6664
...
@@ -194,9 +192,7 @@ Use the Python package [awscurl](https://pypi.org/project/awscurl/) to make your
194192
awscurl "https://localhost.localstack.cloud:4510/gremlin?gremlin=g.V().count()" -H "Accept: application/json" | jq .
195193
```
196194

197-
The output will be similar to the following:
198-
199-
```json
195+
```bash title="Output"
200196
{
201197
"requestId": "729c3e7b-50b3-4df7-b0b6-d1123c4e81df",
202198
"status": {

src/content/docs/aws/services/opensearch.mdx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,7 @@ You can verify that the cluster is up and running by checking the cluster health
7676
curl -s http://my-domain.us-east-1.opensearch.localhost.localstack.cloud:4566/_cluster/health | jq .
7777
```
7878

79-
The following output will be visible on your terminal:
80-
81-
```json
79+
```bash title="Output"
8280
{
8381
"cluster_name": "opensearch",
8482
"status": "green",
@@ -173,7 +171,7 @@ IAM support is also not yet available.
173171
A secure OpenSearch domain can be spawned with this example CLI input.
174172
Save it in a file named `opensearch_domain.json`.
175173

176-
```json
174+
```json title="opensearch_domain.json"
177175
{
178176
"DomainName": "secure-domain",
179177
"ClusterConfig": {
@@ -220,9 +218,7 @@ Once the domain setup is complete (`Processing: false`), the cluster can only be
220218
curl -u 'admin:really-secure-passwordAa!1' http://secure-domain.us-east-1.opensearch.localhost.localstack.cloud:4566/_cluster/health
221219
```
222220

223-
The following output will be visible on your terminal:
224-
225-
```json
221+
```bash title="Output"
226222
{"cluster_name":"opensearch","status":"green",...}
227223
```
228224

0 commit comments

Comments
 (0)