Skip to content

Commit 6f61172

Browse files
committed
do another bunch
1 parent 6f8cde7 commit 6f61172

25 files changed

+88
-219
lines changed

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,7 @@ You can run the following command to verify that the image was built successfull
6464
docker images
6565
```
6666

67-
You will see output similar to the following:
68-
69-
```bash
67+
```bash title="Output"
7068
REPOSITORY TAG IMAGE ID CREATED SIZE
7169
..
7270
localstack-ecr-image latest 38883941b8fa 1 minute ago 185MB
@@ -84,9 +82,7 @@ awslocal ecr create-repository \
8482
--image-scanning-configuration scanOnPush=true
8583
```
8684

87-
You will see an output similar to the following:
88-
89-
```bash
85+
```bash title="Output"
9086
{
9187
"repository": {
9288
"repositoryArn": "arn:aws:ecr:us-east-1:000000000000:repository/localstack-ecr-repository",
@@ -129,9 +125,7 @@ You can run the following command to verify that the image was pushed successful
129125
awslocal ecr list-images --repository-name localstack-ecr-repository
130126
```
131127

132-
You will see an output similar to the following:
133-
134-
```bash
128+
```bash title="Output"
135129
{
136130
"imageIds": [
137131
{

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

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,7 @@ Execute the following command to create an ECS cluster named `mycluster`:
3636
awslocal ecs create-cluster --cluster-name mycluster
3737
```
3838

39-
The output will be:
40-
41-
```json
39+
```bash title="Output"
4240
{
4341
"cluster": {
4442
"clusterArn": "arn:aws:ecs:us-east-1:000000000000:cluster/mycluster",
@@ -98,9 +96,7 @@ and then run the following command:
9896
awslocal ecs register-task-definition --cli-input-json file://task_definition.json
9997
```
10098

101-
The output will be:
102-
103-
```json
99+
```bash title="Output"
104100
{
105101
"taskDefinition": {
106102
"taskDefinitionArn": "arn:aws:ecs:us-east-1:000000000000:task-definition/myfamily:1",
@@ -160,9 +156,7 @@ To create a service, execute the following command:
160156
awslocal ecs create-service --service-name myservice --cluster mycluster --task-definition myfamily --desired-count 1
161157
```
162158

163-
The output will be:
164-
165-
```json
159+
```bash title="Output"
166160
{
167161
"service": {
168162
"serviceArn": "arn:aws:ecs:us-east-1:000000000000:service/mycluster/myservice",
@@ -226,10 +220,7 @@ To access the generated logs from the container, run the following command:
226220
awslocal logs filter-log-events --log-group-name myloggroup --query 'events[].message'
227221
```
228222

229-
The output will be:
230-
231-
```json
232-
$ awslocal logs filter-log-events --log-group-name myloggroup | head -n 20
223+
```bash title="Output"
233224
{
234225
"events": [
235226
{

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ awslocal efs create-file-system \
3535
--tags Key=Name,Value=my-file-system
3636
```
3737

38-
The following output would be retrieved:
39-
40-
```bash
38+
```bash title="Output"
4139
{
4240
"CreationToken": "53465731-0032-4cef-92f5-8aefe7c7b91e",
4341
"FileSystemId": "fs-34feac549e66b814",
@@ -98,9 +96,7 @@ awslocal efs put-lifecycle-configuration \
9896
--lifecycle-policies "{\"TransitionToIA\":\"AFTER_30_DAYS\"}"
9997
```
10098

101-
The following output would be retrieved:
102-
103-
```bash
99+
```bash title="Output"
104100
{
105101
"LifecyclePolicies": [
106102
{

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

Lines changed: 12 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ awslocal eks create-cluster \
3939
--resources-vpc-config "{}"
4040
```
4141

42-
You can see an output similar to the following:
43-
44-
```bash
42+
```bash title="Output"
4543
{
4644
"cluster": {
4745
"name": "cluster1",
@@ -71,9 +69,7 @@ You can use the `docker` CLI to check that some containers have been created:
7169
docker ps
7270
```
7371

74-
The output will be:
75-
76-
```bash
72+
```bash title="Output"
7773
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7874
...
7975
b335f7f089e4 rancher/k3d-proxy:5.0.1-rc.1 "/bin/sh -c nginx-pr…" 1 minute ago Up 1 minute 0.0.0.0:8081->80/tcp, 0.0.0.0:44959->6443/tcp k3d-cluster1-serverlb
@@ -88,9 +84,7 @@ Run the following command:
8884
awslocal eks describe-cluster --name cluster1
8985
```
9086

91-
The output will be:
92-
93-
```json
87+
```bash title="Output"
9488
{
9589
"cluster": {
9690
"name": "cluster1",
@@ -145,9 +139,7 @@ Run the following command:
145139
awslocal ecr create-repository --repository-name "fancier-nginx"
146140
```
147141

148-
The output will be:
149-
150-
```json
142+
```bash title="Output"
151143
{
152144
"repository": {
153145
"repositoryArn": "arn:aws:ecr:us-east-1:000000000000:repository/fancier-nginx",
@@ -194,9 +186,7 @@ awslocal eks update-kubeconfig --name cluster1 && \
194186
kubectl config use-context arn:aws:eks:us-east-1:000000000000:cluster/cluster1
195187
```
196188

197-
The output will be:
198-
199-
```bash
189+
```bash title="Output"
200190
...
201191
Added new context arn:aws:eks:us-east-1:000000000000:cluster/cluster1 to /home/localstack/.kube/config
202192
Switched to context "arn:aws:eks:us-east-1:000000000000:cluster/cluster1".
@@ -239,7 +229,7 @@ kubectl describe pod fancier-nginx
239229

240230
In the events, we can see that the pull from ECR was successful:
241231

242-
```bash
232+
```bash title="Output"
243233
Normal Pulled 10s kubelet Successfully pulled image "000000000000.dkr.ecr.us-east-1.localhost.localstack.cloud:4566/fancier-nginx:latest" in 2.412775896s
244234
```
245235

@@ -300,9 +290,7 @@ You will be able to send a request to `nginx` via the load balancer port `8081`
300290
curl http://localhost:8081/test123
301291
```
302292

303-
The output will be:
304-
305-
```bash
293+
```bash title="Output"
306294
<html>
307295
...
308296
<hr><center>nginx/1.21.6</center>
@@ -379,9 +367,7 @@ You can create an EKS Cluster configuration using the following command:
379367
awslocal eks create-cluster --name cluster1 --role-arn arn:aws:iam::000000000000:role/eks-role --resources-vpc-config '{}'
380368
```
381369

382-
The output will be:
383-
384-
```json
370+
```bash title="Output"
385371
{
386372
"cluster": {
387373
"name": "cluster1",
@@ -400,9 +386,7 @@ And check that it was created with:
400386
awslocal eks list-clusters
401387
```
402388

403-
The output will be:
404-
405-
```json
389+
```bash title="Output"
406390
{
407391
"clusters": [
408392
"cluster1"
@@ -487,19 +471,15 @@ This host-based routing mechanism ensures that each service is uniquely identifi
487471
curl http://eks-service-1.localhost.localstack.cloud:8081/v1
488472
```
489473

490-
The output will be:
491-
492-
```bash
474+
```bash title="Output"
493475
... [output of service 1]
494476
```
495477

496478
```bash
497479
curl http://eks-service-2.localhost.localstack.cloud:8081/v1
498480
```
499481

500-
The output will be:
501-
502-
```bash
482+
```bash title="Output"
503483
... [output of service 2]
504484
```
505485

@@ -528,9 +508,7 @@ awslocal eks create-cluster \
528508
--tags '{"_volume_mount_":"/path/on/host:/path/on/node"}'
529509
```
530510

531-
The output will be:
532-
533-
```json
511+
```bash title="Output"
534512
{
535513
"cluster": {
536514
"name": "cluster1",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ Wait for it to be available, then you can use the cluster endpoint for Redis ope
4141
awslocal elasticache describe-cache-clusters --show-cache-node-info --query "CacheClusters[0].CacheNodes[0].Endpoint"
4242
```
4343

44-
The output will be:
45-
46-
```json
44+
```bash title="Output"
4745
{
4846
"Address": "localhost.localstack.cloud",
4947
"Port": 4510

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,7 @@ awslocal elasticbeanstalk create-application \
3232
--application-name my-app
3333
```
3434

35-
The following output would be retrieved:
36-
37-
```bash
35+
```bash title="Output"
3836
{
3937
"Application": {
4038
"ApplicationArn": "arn:aws:elasticbeanstalk:us-east-1:000000000000:application/my-app",
@@ -63,9 +61,7 @@ awslocal elasticbeanstalk create-environment \
6361
--environment-name my-environment
6462
```
6563

66-
The following output would be retrieved:
67-
68-
```bash
64+
```bash title="Output"
6965
{
7066
"EnvironmentName": "my-environment",
7167
"EnvironmentId": "4fcae3fb",
@@ -94,9 +90,7 @@ awslocal elasticbeanstalk create-application-version \
9490
--version-label v1
9591
```
9692

97-
The following output would be retrieved:
98-
99-
```bash
93+
```bash title="Output"
10094
{
10195
"ApplicationVersion": {
10296
"ApplicationVersionArn": "arn:aws:elasticbeanstalk:us-east-1:000000000000:applicationversion/my-app/v1",

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

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,7 @@ awslocal elastictranscoder create-pipeline \
4545
--role arn:aws:iam::000000000000:role/Elastic_Transcoder_Default_Role
4646
```
4747

48-
The following output would be retrieved:
49-
50-
```bash
48+
```bash title="Output"
5149
{
5250
"Pipeline": {
5351
"Id": "0998507242379-vltecz",
@@ -85,9 +83,7 @@ Execute the following command to list all pipelines:
8583
awslocal elastictranscoder list-pipelines
8684
```
8785

88-
The following output would be retrieved:
89-
90-
```bash
86+
```bash title="Output"
9187
{
9288
"Pipelines": [
9389
{
@@ -126,9 +122,7 @@ Execute the following command to read the pipeline with the ID `0998507242379-vl
126122
awslocal elastictranscoder read-pipeline --id 0998507242379-vltecz
127123
```
128124

129-
The following output would be retrieved:
130-
131-
```bash
125+
```bash title="Output"
132126
{
133127
"Pipeline": {
134128
"Id": "0998507242379-vltecz",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,9 +111,7 @@ Finally, you can issue an HTTP request to the `DNSName` parameter of `CreateLoad
111111
curl example-lb.elb.localhost.localstack.cloud:4566
112112
```
113113

114-
The following output will be retrieved:
115-
116-
```bash
114+
```bash title="Output"
117115
{
118116
"host": {
119117
"hostname": "example-lb.elb.localhost.localstack.cloud",

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

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ Execute the following command to create a job using a `job.json` file:
103103
awslocal mediaconvert create-job --cli-input-json file://job.json
104104
```
105105

106-
The following output would be retrieved:
107-
108-
```json
106+
```bash title="Output"
109107
{
110108
"Job": {
111109
"AccelerationSettings": {
@@ -164,9 +162,7 @@ awslocal mediaconvert create-queue
164162
--description "High priority queue for video encoding"
165163
```
166164

167-
The following output would be retrieved:
168-
169-
```bash
165+
```bash title="Output"
170166
{
171167
"Queue": {
172168
"Arn": "arn:aws:mediaconvert:us-east-1:000000000000:queues/MyQueue",

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ awslocal emr create-cluster \
4040

4141
You will see a response similar to the following:
4242

43-
```bash
43+
```bash title="Output"
4444
{
4545
"ClusterId": "j-A2KF3EKLAOWRI"
4646
}

0 commit comments

Comments
 (0)