-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathcommand_changes.log
More file actions
1068 lines (1052 loc) · 37 KB
/
command_changes.log
File metadata and controls
1068 lines (1052 loc) · 37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
src/content/docs/aws/integrations/aws-sdks/ruby.md:77: {{< command >}}
$ ruby ./localstack.rb
Created bucket doc-example-bucket-b911f85f-4dd3-4668-a32e-3f69aa4e37dc.
Your bucket's region is: us-east-2
{{< /command >}} -> ```bash
ruby ./localstack.rb
Created bucket doc-example-bucket-b911f85f-4dd3-4668-a32e-3f69aa4e37dc.
Your bucket's region is: us-east-2
```
src/content/docs/aws/integrations/testing/lambdatest-hyperexecute.md:89: {{< command >}}
$ hyperexecute --user '<user-name>' --key '<HE-key>' --config he.yaml
{{< /command >}} -> ```bash
hyperexecute --user '<user-name>' --key '<HE-key>' --config he.yaml
```
src/content/docs/aws/integrations/app-frameworks/serverless-framework.md:70: {{< command >}}
$ npm install -D serverless-localstack
{{< / command >}} -> ```bash
npm install -D serverless-localstack
```
src/content/docs/aws/integrations/app-frameworks/serverless-framework.md:134: {{< command >}}
$ localstack start
{{< / command >}} -> ```bash
localstack start
```
src/content/docs/aws/integrations/app-frameworks/serverless-framework.md:139: {{< command >}}
$ serverless deploy --stage local
{{< / command >}} -> ```bash
serverless deploy --stage local
```
src/content/docs/aws/integrations/app-frameworks/spring-cloud-function.md:66: {{< command >}}
$ gradle init
{{< / command >}} -> ```bash
gradle init
```
src/content/docs/aws/integrations/app-frameworks/spring-cloud-function.md:72: {{< command >}}
$ gradle wrapper
{{< / command >}} -> ```bash
gradle wrapper
```
src/content/docs/aws/integrations/app-frameworks/spring-cloud-function.md:79: {{< command >}}
$ ./gradlew <command>
{{< / command >}} -> ```bash
./gradlew <command>
```
src/content/docs/aws/integrations/app-frameworks/architect.md:20: {{< command >}}
$ npm install -g architect-local @architect/architect aws-sdk
{{< /command >}} -> ```bash
npm install -g architect-local @architect/architect aws-sdk
```
src/content/docs/aws/integrations/app-frameworks/architect.md:28: {{< command >}}
$ mkdir architect_quickstart && cd architect_quickstart
{{< / command >}} -> ```bash
mkdir architect_quickstart && cd architect_quickstart
```
src/content/docs/aws/integrations/app-frameworks/architect.md:34: {{< command >}}
$ arclocal init
{{< / command >}} -> ```bash
arclocal init
```
src/content/docs/aws/integrations/app-frameworks/architect.md:42: {{< command >}}
$ arclocal deploy
{{< / command >}} -> ```bash
arclocal deploy
```
src/content/docs/aws/integrations/messaging/selfmanaged-kafka-cluster.md:19: {{< command >}}
$ docker-compose up -d
{{< / command >}} -> ```bash
docker-compose up -d
```
src/content/docs/aws/integrations/messaging/selfmanaged-kafka-cluster.md:25: {{< command >}}
$ awslocal lambda create-function \
--function-name fun1 \
--handler lambda.handler \
--runtime python3.8 \
--role arn:aws:iam::000000000000:role/lambda-role \
--zip-file fileb://lambda.zip
{
"FunctionName": "fun1",
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:fun1",
"Runtime": "python3.8",
"Role": "arn:aws:iam::000000000000:role/lambda-role",
"Handler": "lambda.handler",
"CodeSize": 294,
"Description": "",
"Timeout": 3,
"LastModified": "2021-05-19T02:01:06.617+0000",
"CodeSha256": "/GPsiNXaq4tBA4QpxPCwgpeVfP7j+1tTH6zdkJ3jiU4=",
"Version": "$LATEST",
"VpcConfig": {},
"TracingConfig": {
"Mode": "PassThrough"
},
"RevisionId": "d85469d2-8558-4d75-bc0e-5926f373e12c",
"State": "Active",
"LastUpdateStatus": "Successful",
"PackageType": "Zip"
}
{{< / command >}} -> ```bash
awslocal lambda create-function \
--function-name fun1 \
--handler lambda.handler \
--runtime python3.8 \
--role arn:aws:iam::000000000000:role/lambda-role \
--zip-file fileb://lambda.zip
{
"FunctionName": "fun1",
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:fun1",
"Runtime": "python3.8",
"Role": "arn:aws:iam::000000000000:role/lambda-role",
"Handler": "lambda.handler",
"CodeSize": 294,
"Description": "",
"Timeout": 3,
"LastModified": "2021-05-19T02:01:06.617+0000",
"CodeSha256": "/GPsiNXaq4tBA4QpxPCwgpeVfP7j+1tTH6zdkJ3jiU4=",
"Version": "$LATEST",
"VpcConfig": {},
"TracingConfig": {
"Mode": "PassThrough"
},
"RevisionId": "d85469d2-8558-4d75-bc0e-5926f373e12c",
"State": "Active",
"LastUpdateStatus": "Successful",
"PackageType": "Zip"
}
```
src/content/docs/aws/integrations/messaging/selfmanaged-kafka-cluster.md:57: {{< command >}}
$ awslocal secretsmanager create-secret --name localstack
{
"ARN": "arn:aws:secretsmanager:us-east-1:000000000000:secret:localstack-TDIuI",
"Name": "localstack",
"VersionId": "32bbb8e2-46ee-4322-b3d5-b6459d54513b"
}
{{< / command >}} -> ```bash
awslocal secretsmanager create-secret --name localstack
{
"ARN": "arn:aws:secretsmanager:us-east-1:000000000000:secret:localstack-TDIuI",
"Name": "localstack",
"VersionId": "32bbb8e2-46ee-4322-b3d5-b6459d54513b"
}
```
src/content/docs/aws/integrations/messaging/selfmanaged-kafka-cluster.md:68: {{< command >}}
$ docker exec -ti kafka kafka-topics --zookeeper zookeeper:2181 --create --replication-factor 1 --partitions 1 --topic t1
Created topic t1.
{{< / command >}} -> ```bash
docker exec -ti kafka kafka-topics --zookeeper zookeeper:2181 --create --replication-factor 1 --partitions 1 --topic t1
Created topic t1.
```
src/content/docs/aws/integrations/messaging/selfmanaged-kafka-cluster.md:75: {{< command >}}
$ awslocal lambda create-event-source-mapping \
--topics t1 \
--source-access-configuration Type=SASL_SCRAM_512_AUTH,URI=arn:aws:secretsmanager:us-east-1:000000000000:secret:localstack-TDIuI \
--function-name arn:aws:lambda:us-east-1:000000000000:function:fun1 \
--self-managed-event-source '{"Endpoints":{"KAFKA_BOOTSTRAP_SERVERS":["localhost:9092"]}}'
{
"UUID": "4a2b0ea6-960c-4847-8684-465876dd6dbd",
"BatchSize": 100,
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:fun1",
"LastModified": "2021-05-19T04:02:49+02:00",
"LastProcessingResult": "OK",
"State": "Enabled",
"StateTransitionReason": "User action",
"Topics": [
"t1"
],
"SourceAccessConfigurations": [
{
"Type": "SASL_SCRAM_512_AUTH",
"URI": "arn:aws:secretsmanager:us-east-1:000000000000:secret:localstack-TDIuI"
}
],
"SelfManagedEventSource": {
"Endpoints": {
"KAFKA_BOOTSTRAP_SERVERS": [
"localhost:9092"
]
}
}
}
{{< / command >}} -> ```bash
awslocal lambda create-event-source-mapping \
--topics t1 \
--source-access-configuration Type=SASL_SCRAM_512_AUTH,URI=arn:aws:secretsmanager:us-east-1:000000000000:secret:localstack-TDIuI \
--function-name arn:aws:lambda:us-east-1:000000000000:function:fun1 \
--self-managed-event-source '{"Endpoints":{"KAFKA_BOOTSTRAP_SERVERS":["localhost:9092"]}}'
{
"UUID": "4a2b0ea6-960c-4847-8684-465876dd6dbd",
"BatchSize": 100,
"FunctionArn": "arn:aws:lambda:us-east-1:000000000000:function:fun1",
"LastModified": "2021-05-19T04:02:49+02:00",
"LastProcessingResult": "OK",
"State": "Enabled",
"StateTransitionReason": "User action",
"Topics": [
"t1"
],
"SourceAccessConfigurations": [
{
"Type": "SASL_SCRAM_512_AUTH",
"URI": "arn:aws:secretsmanager:us-east-1:000000000000:secret:localstack-TDIuI"
}
],
"SelfManagedEventSource": {
"Endpoints": {
"KAFKA_BOOTSTRAP_SERVERS": [
"localhost:9092"
]
}
}
}
```
src/content/docs/aws/integrations/aws-native-tools/aws-cdk.md:40: {{< command >}}
$ cdklocal --help
{{< /command >}} -> ```bash
cdklocal --help
```
src/content/docs/aws/integrations/aws-native-tools/aws-cdk.md:55: {{< command >}}
$ curl http://localhost:4566/_localstack/health
{{< /command >}} -> ```bash
curl http://localhost:4566/_localstack/health
```
src/content/docs/aws/integrations/aws-native-tools/aws-cdk.md:76: {{< command >}}
$ awslocal sns list-topics
{
"Topics": [
{
"TopicArn": "arn:aws:sns:us-east-1:000000000000:TestStack-TestTopic339EC197-79F43WWCCS4Z"
}
]
}
{{< /command >}} -> ```bash
awslocal sns list-topics
{
"Topics": [
{
"TopicArn": "arn:aws:sns:us-east-1:000000000000:TestStack-TestTopic339EC197-79F43WWCCS4Z"
}
]
}
```
src/content/docs/aws/integrations/aws-native-tools/aws-sam.md:28: {{< command >}}
$ pip install aws-sam-cli-local
{{< / command >}} -> ```bash
pip install aws-sam-cli-local
```
src/content/docs/aws/integrations/aws-native-tools/aws-sam.md:36: {{< command >}}
$ samlocal init
{{< / command >}} -> ```bash
samlocal init
```
src/content/docs/aws/integrations/aws-native-tools/aws-sam.md:52: {{< command >}}
$ samlocal deploy --guided
{{< / command >}} -> ```bash
samlocal deploy --guided
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:23: {{< command >}}
$ pip install awscli
{{< / command >}} -> ```bash
pip install awscli
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:37: {{< command >}}
$ export AWS_ACCESS_KEY_ID="test"
$ export AWS_SECRET_ACCESS_KEY="test"
$ export AWS_DEFAULT_REGION="us-east-1"
$ aws --endpoint-url=http://localhost:4566 kinesis list-streams
{{< / command >}} -> ```bash
export AWS_ACCESS_KEY_ID="test"
export AWS_SECRET_ACCESS_KEY="test"
export AWS_DEFAULT_REGION="us-east-1"
aws --endpoint-url=http://localhost:4566 kinesis list-streams
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:71: {{< command >}}
$ aws s3 mb s3://test --profile localstack
$ aws s3 ls --profile localstack
{{< / command >}} -> ```bash
aws s3 mb s3://test --profile localstack
aws s3 ls --profile localstack
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:88: {{< command >}}
$ pip install awscli-local[ver1]
{{< / command >}} -> ```bash
pip install awscli-local[ver1]
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:96: {{< command >}}
$ pip install awscli-local
{{< / command >}} -> ```bash
pip install awscli-local
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:110: {{< command >}}
awslocal kinesis list-streams
{{< / command >}} -> ```bash
awslocal kinesis list-streams
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:132: {{< command >}}
$ virtualenv .venv
$ . .venv/bin/activate
$ pip install https://github.com/boto/botocore/archive/v2.zip https://github.com/aws/aws-cli/archive/v2.zip
{{< / command >}} -> ```bash
virtualenv .venv
. .venv/bin/activate
pip install https://github.com/boto/botocore/archive/v2.zip https://github.com/aws/aws-cli/archive/v2.zip
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:157: {{< command >}}
$ docker network create localstack
0c9cb3d37b0ea1bfeb6b77ade0ce5525e33c7929d69f49c3e5ed0af457bdf123
{{< / command >}} -> ```bash
docker network create localstack
0c9cb3d37b0ea1bfeb6b77ade0ce5525e33c7929d69f49c3e5ed0af457bdf123
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:173: {{< command >}}
$ docker run --network localstack --rm -it amazon/aws-cli --endpoint-url=http://localstack:4566 lambda list-functions
{
"Functions": []
}
{{< / command >}} -> ```bash
docker run --network localstack --rm -it amazon/aws-cli --endpoint-url=http://localstack:4566 lambda list-functions
{
"Functions": []
}
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:182: {{< command >}}
$ alias laws='docker run --network localstack --rm -it amazon/aws-cli --endpoint-url=http://localstack:4566'
{{< / command >}} -> ```bash
alias laws='docker run --network localstack --rm -it amazon/aws-cli --endpoint-url=http://localstack:4566'
```
src/content/docs/aws/integrations/aws-native-tools/aws-cli.md:188: {{< command >}}
$ laws lambda list-functions
{
"Functions": []
}
{{< / command >}} -> ```bash
laws lambda list-functions
{
"Functions": []
}
```
src/content/docs/aws/integrations/aws-native-tools/aws-chalice.md:20: {{< command >}}
$ localstack start -d
{{< / command >}} -> ```bash
localstack start -d
```
src/content/docs/aws/integrations/aws-native-tools/aws-chalice.md:26: {{< command >}}
$ pip install chalice-local
{{< / command >}} -> ```bash
pip install chalice-local
```
src/content/docs/aws/integrations/aws-native-tools/aws-chalice.md:32: {{< command >}}
$ chalice-local new-project
{{< / command >}} -> ```bash
chalice-local new-project
```
src/content/docs/aws/integrations/aws-native-tools/aws-chalice.md:88: {{< command >}}
$ chalice-local local
Serving on http://127.0.0.1:8000
{{< / command >}} -> ```bash
chalice-local local
Serving on http://127.0.0.1:8000
```
src/content/docs/aws/integrations/aws-native-tools/aws-chalice.md:95: {{< command >}}
$ curl -X GET http://127.0.0.1:8000
{"hello":"world"}
{{< / command >}} -> ```bash
curl -X GET http://127.0.0.1:8000
{"hello":"world"}
```
src/content/docs/aws/integrations/aws-native-tools/aws-chalice.md:104: {{< command >}}
$ chalice-local deploy
Creating deployment package.
Creating IAM role: localstack-test-dev
Creating lambda function: localstack-test-dev
Creating Rest API
Resources deployed:
- Lambda ARN: arn:aws:lambda:us-east-1:000000000000:function:localstack-test-dev
- Rest API URL: https://y5iuni004m.execute-api.us-east-1.amazonaws.com/api/
{{< / command >}} -> ```bash
chalice-local deploy
Creating deployment package.
Creating IAM role: localstack-test-dev
Creating lambda function: localstack-test-dev
Creating Rest API
Resources deployed:
- Lambda ARN: arn:aws:lambda:us-east-1:000000000000:function:localstack-test-dev
- Rest API URL: https://y5iuni004m.execute-api.us-east-1.amazonaws.com/api/
```
src/content/docs/aws/integrations/infrastructure-as-code/cloud-custodian.md:28: {{< command >}}
$ pip install c7n
{{< / command >}} -> ```bash
pip install c7n
```
src/content/docs/aws/integrations/infrastructure-as-code/cloud-custodian.md:40: {{< command >}}
$ awslocal ec2 run-instances \
--image-id ami-ff0fea8310f3 \
--count 1 \
--instance-type t3.nano \
--tag-specifications "ResourceType=instance,Tags=[{Key=Custodian,Value=AnyValue}]"
{{< / command >}} -> ```bash
awslocal ec2 run-instances \
--image-id ami-ff0fea8310f3 \
--count 1 \
--instance-type t3.nano \
--tag-specifications "ResourceType=instance,Tags=[{Key=Custodian,Value=AnyValue}]"
```
src/content/docs/aws/integrations/infrastructure-as-code/cloud-custodian.md:86: {{< command >}}
$ custodian run \
--output-dir=.
custodian.yml \
--profile localstack
{{< / command >}} -> ```bash
custodian run \
--output-dir=.
custodian.yml \
--profile localstack
```
src/content/docs/aws/integrations/infrastructure-as-code/cloud-custodian.md:120: {{< command >}}
$ custodian run -s . \
--metrics aws custodian.yml \
--profile localstack
{{< / command >}} -> ```bash
custodian run -s . \
--metrics aws custodian.yml \
--profile localstack
```
src/content/docs/aws/integrations/infrastructure-as-code/terraform.md:45: {{< command >}}
$ pip install terraform-local
{{< / command >}} -> ```bash
pip install terraform-local
```
src/content/docs/aws/integrations/infrastructure-as-code/terraform.md:51: {{< command >}}
$ tflocal --help
<disable-copy>
Usage: terraform [global options] <subcommand> [args]
...
<disable-copy>
{{< / command >}} -> ```bash
tflocal --help
<disable-copy>
Usage: terraform [global options] <subcommand> [args]
...
<disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/terraform.md:64: {{< command >}}
$ tflocal init
{{< / command >}} -> ```bash
tflocal init
```
src/content/docs/aws/integrations/infrastructure-as-code/terraform.md:70: {{< command >}}
$ tflocal apply
{{< / command >}} -> ```bash
tflocal apply
```
src/content/docs/aws/integrations/infrastructure-as-code/terraform.md:472: {{< command >}}
$ cdktf synth && cdktf deploy
{{< /command >}} -> ```bash
cdktf synth && cdktf deploy
```
src/content/docs/aws/integrations/infrastructure-as-code/terraform.md:492: {{< command >}}
$ awslocal s3 ls
{{< /command >}} -> ```bash
awslocal s3 ls
```
src/content/docs/aws/integrations/infrastructure-as-code/terraform.md:502: {{< command >}}
$ TF_CMD=tofu tflocal --help
<disable-copy>
Usage: tofu [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.
...
</disable-copy>
{{< /command >}} -> ```bash
TF_CMD=tofu tflocal --help
<disable-copy>
Usage: tofu [global options] <subcommand> [args]
The available commands for execution are listed below.
The primary workflow commands are given first, followed by
less common or more advanced commands.
...
</disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:39: {{< command >}}
$ export PULUMI_CONFIG_PASSPHRASE=lsdevtest
$ export PULUMI_BACKEND_URL=file://`pwd`/myproj
{{< / command >}} -> ```bash
export PULUMI_CONFIG_PASSPHRASE=lsdevtest
export PULUMI_BACKEND_URL=file://`pwd`/myproj
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:52: {{< command >}}
$ pip install pulumi-local
{{< / command >}} -> ```bash
pip install pulumi-local
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:58: {{< command >}}
$ pulumilocal --help
<disable-copy>
Pulumi - Modern Infrastructure as Code
...
<disable-copy>
{{< / command >}} -> ```bash
pulumilocal --help
<disable-copy>
Pulumi - Modern Infrastructure as Code
...
<disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:70: {{< command >}}
$ mkdir myproj
$ pulumilocal new aws-typescript -y -s lsdev --cwd myproj
{{< / command >}} -> ```bash
mkdir myproj
pulumilocal new aws-typescript -y -s lsdev --cwd myproj
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:83: {{< command >}}
$ pulumilocal stack select -c lsdev --cwd myproj
{{< / command >}} -> ```bash
pulumilocal stack select -c lsdev --cwd myproj
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:90: {{< command >}}
$ pulumilocal up --cwd myproj
{{< / command >}} -> ```bash
pulumilocal up --cwd myproj
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:112: {{< command >}}
$ mkdir quickstart && cd quickstart
$ pulumi new aws-typescript
{{< / command >}} -> ```bash
mkdir quickstart && cd quickstart
pulumi new aws-typescript
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:142: {{< command >}}
$ tree -L 1
.
├── index.ts
├── node_modules
├── package.json
├── package-lock.json
├── Pulumi.dev.yaml
├── Pulumi.yaml
└── tsconfig.json
{{< / command >}} -> ```bash
tree -L 1
.
├── index.ts
├── node_modules
├── package.json
├── package-lock.json
├── Pulumi.dev.yaml
├── Pulumi.yaml
└── tsconfig.json
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:446: {{< command >}}
$ pulumi up
{{< / command >}} -> ```bash
pulumi up
```
src/content/docs/aws/integrations/infrastructure-as-code/pulumi.md:452: {{< command >}}
$ awslocal s3 ls
{{< / command >}} -> ```bash
awslocal s3 ls
```
src/content/docs/aws/integrations/infrastructure-as-code/former2.md:55: {{< command >}}
$ awslocal s3 mb s3://my-bucket
$ awslocal sqs create-queue --queue-name my-queue
$ awslocal dynamodb create-table \
--table-name my-table \
--attribute-definitions AttributeName=id,AttributeType=S \
--key-schema AttributeName=id,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
{{< / command >}} -> ```bash
awslocal s3 mb s3://my-bucket
awslocal sqs create-queue --queue-name my-queue
awslocal dynamodb create-table \
--table-name my-table \
--attribute-definitions AttributeName=id,AttributeType=S \
--key-schema AttributeName=id,KeyType=HASH \
--provisioned-throughput ReadCapacityUnits=5,WriteCapacityUnits=5
```
src/content/docs/aws/integrations/infrastructure-as-code/former2.md:67: {{< command >}}
$ localstack logs
<disable-copy>
2023-10-14T15:31:08.852 INFO --- [ asgi_gw_0] localstack.request.aws : AWS s3.CreateBucket => 200
2023-10-14T15:31:09.356 INFO --- [ asgi_gw_0] localstack.request.aws : AWS sqs.CreateQueue => 200
2023-10-14T15:31:12.920 INFO --- [ asgi_gw_0] botocore.credentials : Found credentials in environment variables.
2023-10-14T15:31:13.332 INFO --- [ asgi_gw_0] localstack.utils.bootstrap : Execution of "require" took 2028.25ms
2023-10-14T15:31:13.712 INFO --- [ asgi_gw_0] localstack.request.aws : AWS dynamodb.CreateTable => 200
</disable-copy>
$ awslocal s3 ls
<disable-copy>
2023-10-14 21:01:08 my-bucket
</disable-copy>
$ awslocal sqs list-queues
<disable-copy>
{
"QueueUrls": [
"http://localhost:4566/000000000000/my-queue"
]
}
</disable-copy>
$ awslocal dynamodb list-tables
<disable-copy>
{
"TableNames": [
"my-table"
]
}
</disable-copy>
{{< / command >}} -> ```bash
localstack logs
<disable-copy>
2023-10-14T15:31:08.852 INFO --- [ asgi_gw_0] localstack.request.aws : AWS s3.CreateBucket => 200
2023-10-14T15:31:09.356 INFO --- [ asgi_gw_0] localstack.request.aws : AWS sqs.CreateQueue => 200
2023-10-14T15:31:12.920 INFO --- [ asgi_gw_0] botocore.credentials : Found credentials in environment variables.
2023-10-14T15:31:13.332 INFO --- [ asgi_gw_0] localstack.utils.bootstrap : Execution of "require" took 2028.25ms
2023-10-14T15:31:13.712 INFO --- [ asgi_gw_0] localstack.request.aws : AWS dynamodb.CreateTable => 200
</disable-copy>
awslocal s3 ls
<disable-copy>
2023-10-14 21:01:08 my-bucket
</disable-copy>
awslocal sqs list-queues
<disable-copy>
{
"QueueUrls": [
"http://localhost:4566/000000000000/my-queue"
]
}
</disable-copy>
awslocal dynamodb list-tables
<disable-copy>
{
"TableNames": [
"my-table"
]
}
</disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:32: {{<command>}}
$ helm repo add crossplane-stable https://charts.crossplane.io/stable
$ helm repo update
$ helm install crossplane crossplane-stable/crossplane --namespace crossplane-system --create-namespace
{{</command>}} -> ```bash
helm repo add crossplane-stable https://charts.crossplane.io/stable
helm repo update
helm install crossplane crossplane-stable/crossplane --namespace crossplane-system --create-namespace
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:40: {{<command>}}
$ curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | bash
<disable-copy>...</disable-copy>
$ sudo mv crossplane /usr/local/bin
{{</command>}} -> ```bash
curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | bash
<disable-copy>...</disable-copy>
sudo mv crossplane /usr/local/bin
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:46: {{<command>}}
$ crossplane version
<disable-copy>Client Version: v1.17.0
Server Version: v1.17.0</disable-copy>
$ kubectl get crds | grep crossplane
<disable-copy>compositions.apiextensions.crossplane.io 2023-09-03T11:30:36Z
configurations.pkg.crossplane.io 2023-09-03T11:30:36Z
...</disable-copy>
{{</command>}} -> ```bash
crossplane version
<disable-copy>Client Version: v1.17.0
Server Version: v1.17.0</disable-copy>
kubectl get crds | grep crossplane
<disable-copy>compositions.apiextensions.crossplane.io 2023-09-03T11:30:36Z
configurations.pkg.crossplane.io 2023-09-03T11:30:36Z
...</disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:65: {{<command>}}
$ cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-aws-s3
spec:
package: xpkg.upbound.io/upbound/provider-aws-s3:v0.40.0
EOF
{{</command>}} -> ```bash
cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-aws-s3
spec:
package: xpkg.upbound.io/upbound/provider-aws-s3:v0.40.0
EOF
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:77: {{<command>}}
$ cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-aws-sqs
spec:
package: xpkg.upbound.io/upbound/provider-aws-sqs:v0.40.0
EOF
{{</command>}} -> ```bash
cat <<EOF | kubectl apply -f -
apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
name: provider-aws-sqs
spec:
package: xpkg.upbound.io/upbound/provider-aws-sqs:v0.40.0
EOF
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:89: {{<command>}}
$ kubectl get providers<disable-copy>
NAME INSTALLED HEALTHY PACKAGE AGE
upbound-provider-family-aws True True xpkg.upbound.io/upbound/provider-family-aws:v0.40.0 2m
provider-aws-s3 True True xpkg.upbound.io/upbound/provider-aws-s3:v0.40.0 2m
provider-aws-sqs True True xpkg.upbound.io/upbound/provider-aws-sqs:v0.40.0 2m
</disable-copy>
{{</command>}} -> ```bash
kubectl get providers<disable-copy>
NAME INSTALLED HEALTHY PACKAGE AGE
upbound-provider-family-aws True True xpkg.upbound.io/upbound/provider-family-aws:v0.40.0 2m
provider-aws-s3 True True xpkg.upbound.io/upbound/provider-aws-s3:v0.40.0 2m
provider-aws-sqs True True xpkg.upbound.io/upbound/provider-aws-sqs:v0.40.0 2m
</disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:99: {{<command>}}
$ cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: localstack-aws-secret
stringData:
creds: |
[default]
aws_access_key_id = test
aws_secret_access_key = test
EOF
{{</command>}} -> ```bash
cat <<EOF | kubectl apply -f -
apiVersion: v1
kind: Secret
metadata:
name: localstack-aws-secret
stringData:
creds: |
[default]
aws_access_key_id = test
aws_secret_access_key = test
EOF
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:114: {{<command>}}
$ cat <<EOF | kubectl apply -f -
apiVersion: aws.upbound.io/v1beta1
kind: ProviderConfig
metadata:
name: default
spec:
credentials:
source: Secret
secretRef:
name: localstack-aws-secret
namespace: default
key: creds
endpoint:
hostnameImmutable: true
# TODO: add more services to this list, as needed
services: [iam, s3, sqs, sts]
url:
type: Static
static: http://host.docker.internal:4566
skip_credentials_validation: true
skip_metadata_api_check: true
skip_requesting_account_id: true
s3_use_path_style: true
EOF
{{</command>}} -> ```bash
cat <<EOF | kubectl apply -f -
apiVersion: aws.upbound.io/v1beta1
kind: ProviderConfig
metadata:
name: default
spec:
credentials:
source: Secret
secretRef:
name: localstack-aws-secret
namespace: default
key: creds
endpoint:
hostnameImmutable: true
TODO: add more services to this list, as needed
services: [iam, s3, sqs, sts]
url:
type: Static
static: http://host.docker.internal:4566
skip_credentials_validation: true
skip_metadata_api_check: true
skip_requesting_account_id: true
s3_use_path_style: true
EOF
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:155: {{<command>}}
$ cat <<EOF | kubectl apply -f -
apiVersion: s3.aws.upbound.io/v1beta1
kind: Bucket
metadata:
name: crossplane-test-bucket
spec:
forProvider:
region: us-east-1
EOF
{{</command>}} -> ```bash
cat <<EOF | kubectl apply -f -
apiVersion: s3.aws.upbound.io/v1beta1
kind: Bucket
metadata:
name: crossplane-test-bucket
spec:
forProvider:
region: us-east-1
EOF
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:169: {{<command>}}
$ kubectl get buckets<disable-copy>
NAME READY SYNCED EXTERNAL-NAME AGE
crossplane-test-bucket True True crossplane-test-bucket 30s
</disable-copy>
{{</command>}} -> ```bash
kubectl get buckets<disable-copy>
NAME READY SYNCED EXTERNAL-NAME AGE
crossplane-test-bucket True True crossplane-test-bucket 30s
</disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:178: {{<command>}}
$ awslocal s3 ls<disable-copy>
2023-09-03 15:18:47 crossplane-test-bucket
</disable-copy>
{{</command>}} -> ```bash
awslocal s3 ls<disable-copy>
2023-09-03 15:18:47 crossplane-test-bucket
</disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:185: {{<command>}}
$ cat <<EOF | kubectl apply -f -
apiVersion: sqs.aws.upbound.io/v1beta1
kind: Queue
metadata:
name: crossplane-test-queue
spec:
forProvider:
name: crossplane-test-queue
region: us-east-1
EOF
{{</command>}} -> ```bash
cat <<EOF | kubectl apply -f -
apiVersion: sqs.aws.upbound.io/v1beta1
kind: Queue
metadata:
name: crossplane-test-queue
spec:
forProvider:
name: crossplane-test-queue
region: us-east-1
EOF
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:199: {{<command>}}
$ kubectl get queues<disable-copy>
NAME READY SYNCED EXTERNAL-NAME AGE
crossplane-test-queue True True http://host.docker.internal:4566/000000000000/crossplane-test-queue 40s
</disable-copy>
{{</command>}} -> ```bash
kubectl get queues<disable-copy>
NAME READY SYNCED EXTERNAL-NAME AGE
crossplane-test-queue True True http://host.docker.internal:4566/000000000000/crossplane-test-queue 40s
</disable-copy>
```
src/content/docs/aws/integrations/infrastructure-as-code/crossplane.md:208: {{<command>}}
$ awslocal sqs list-queues<disable-copy>
{
"QueueUrls": [
"http://localhost:4566/000000000000/crossplane-test-queue"
]
}
</disable-copy>
{{</command>}} -> ```bash
awslocal sqs list-queues<disable-copy>
{
"QueueUrls": [
"http://localhost:4566/000000000000/crossplane-test-queue"
]
}
</disable-copy>
```
src/content/docs/aws/integrations/containers/openshift.md:82: {{< command >}}
$ export AWS_ENDPOINT_URL='<localstack-route-url>'
$ awslocal s3 mb s3://my-bucket
$ awslocal sqs create-queue --queue-name my-queue
{{< /command >}} -> ```bash
export AWS_ENDPOINT_URL='<localstack-route-url>'
awslocal s3 mb s3://my-bucket
awslocal sqs create-queue --queue-name my-queue
```
src/content/docs/aws/integrations/containers/kubernetes.md:44: {{< command >}}
$ helm repo add localstack https://localstack.github.io/helm-charts
{{< /command >}} -> ```bash
helm repo add localstack https://localstack.github.io/helm-charts
```
src/content/docs/aws/integrations/containers/kubernetes.md:92: {{< command >}}
$ helm repo add localstack-charts https://localstack.github.io/helm-charts
$ helm install my-release localstack-charts/localstack -f pro-values.yaml
{{< /command >}} -> ```bash
helm repo add localstack-charts https://localstack.github.io/helm-charts
helm install my-release localstack-charts/localstack -f pro-values.yaml
```
src/content/docs/aws/integrations/containers/eksctl.md:42: {{< command >}}
$ eksctl create cluster --nodes 1 --profile localstack
{{< / command >}} -> ```bash
eksctl create cluster --nodes 1 --profile localstack
```
src/content/docs/aws/integrations/containers/eksctl.md:50: {{< command >}}
export AWS_CLOUDFORMATION_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_EC2_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_EKS_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_ELB_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_ELBV2_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_IAM_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_STS_ENDPOINT=http://localhost.localstack.cloud:4566
eksctl create cluster --nodes 1
{{< / command >}} -> ```bash
export AWS_CLOUDFORMATION_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_EC2_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_EKS_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_ELB_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_ELBV2_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_IAM_ENDPOINT=http://localhost.localstack.cloud:4566
export AWS_STS_ENDPOINT=http://localhost.localstack.cloud:4566
eksctl create cluster --nodes 1
```
src/content/docs/aws/integrations/containers/eksctl.md:70: {{< command >}}
$ kubectl get nodes
{{< / command >}} -> ```bash
kubectl get nodes
```
src/content/docs/aws/integrations/containers/rancher-desktop.md:80: {{< command >}}
# 1. Make sure there is no existing socket at /var/run/docker.sock
sudo rm -f /var/run/docker.sock
# 2. Adjust the path if your Rancher Desktop socket is in a different location
$ sudo ln -s /var/run/rancher-desktop-lima/docker.sock /var/run/docker.sock
{{< /command >}} -> ```bash
1. Make sure there is no existing socket at /var/run/docker.sock
sudo rm -f /var/run/docker.sock
2. Adjust the path if your Rancher Desktop socket is in a different location
sudo ln -s /var/run/rancher-desktop-lima/docker.sock /var/run/docker.sock
```
src/content/docs/aws/integrations/containers/rancher-desktop.md:90: {{< command >}}
$ DEBUG=1 localstack start --network rancher
{{< /command >}} -> ```bash
DEBUG=1 localstack start --network rancher
```
src/content/docs/aws/integrations/containers/rancher-desktop.md:101: {{< command >}}
$ DEBUG=1 DOCKER_CMD=nerdctl localstack start --network rancher
{{< /command >}} -> ```bash
DEBUG=1 DOCKER_CMD=nerdctl localstack start --network rancher
```
src/content/docs/aws/integrations/containers/rancher-desktop.md:111: {{< command >}}
$ rancher-desktop settings set --docker
{{< /command >}} -> ```bash
rancher-desktop settings set --docker
```
src/content/docs/aws/integrations/containers/rancher-desktop.md:117: {{< command >}}
$ rancher-desktop --start
{{< /command >}} -> ```bash
rancher-desktop --start
```
src/content/docs/aws/integrations/containers/devcontainers.md:54: {{< command >}}
$ devcontainer templates apply \
--template-id ghcr.io/localstack/devcontainer-template/localstack-dind \
--template-args "$(cat ./options.json)" \
--features '[{"id":"ghcr.io/devcontainers/features/aws-cli:1"}]'
{{< /command >}} -> ```bash
devcontainer templates apply \
--template-id ghcr.io/localstack/devcontainer-template/localstack-dind \
--template-args "$(cat ./options.json)" \
--features '[{"id":"ghcr.io/devcontainers/features/aws-cli:1"}]'
```
src/content/docs/aws/integrations/containers/devcontainers.md:63: {{< command >}}