Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved....
Transcript of Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved....
![Page 1: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/1.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Keisuke Tsukagoshi
Mobile Specialist SA, Amazon Web Services Japan
3-H1-1-14
AWS CLI / SDK ��
![Page 2: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/2.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
About Me
���� (Tsukagoshi Keisuke)• Specialist Solution Architect
Mobile / Serverless / DevOps• Background
• Web��������• �������� ���
• �������• AWS AppSync
![Page 3: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/3.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS���������������
![Page 4: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/4.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Key Take Away
Programmable����������AWS�:8�-� CLI / SDK ��Programmable��$$�� ����3.��!���"$��$��#�7:���Programmable��$�� ����:8�� ���,)1�+��052/�69 ��'(�*4�� �����
���!���"$��$��#%&�AWS�2/�
![Page 5: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/5.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Programmable
![Page 6: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/6.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Programmable����������• API����$�"� ��� �',
• ��*������� API�(���• ���#��%���$�"� ��� ����• �����+)&���!��#���(
![Page 7: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/7.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS������ API��
• 7��' � API�B>�����5E• ,&�.4%�4!�1� AWS CLI������API���1���
• )3�/-4���API���1�����5E• 7?6F:;G�SDK�D9
• SIG V4*$#�A�H�< �����8• =2+1 )3�/-4��4"�(�� �D9
• HTTP REST API�C@0�� %�����5E
![Page 8: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/8.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS���������
b d
E S APM AP
bE S
3
2
TAIRKWAP
a cBCD) E LK A
A A
(
>
(
![Page 9: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/9.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
�� Programmable����• �"�61����2:(
• 2:(�09(�);���• Agile , DevOps , Microservices ���������2:(�=5• �����34�>+������2:(�������
• �%�"�B@� �#&��!$'�/8• �#&��!$'�?��,.�/8��• *<,.��-7�B@���=A���
![Page 10: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/10.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Programmable Interface Overview
![Page 11: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/11.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS�����������
�����
• AWS CLI• AWS SDK
��
• Mobile CLI• Mobile SDK
������
• Amplify
![Page 12: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/12.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
�����
![Page 13: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/13.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Command Line Interface (CLI)
• AWS �����$#��������������• ������� AWS ������������%"� ����!&�(' &
$ aws s3 cp myvideo.mp4 s3://mybucket/
3
![Page 14: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/14.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Command Line Interface (CLI)
• Linux ���• Bash , Zsh, ��(.-�� $�%�"��*,����&��+/���
• Windows �����• PowerShell�Windows ��&��%����)����&��+/���
• Remote• # '��'��$�EC2 ������'�!'���*,��# '����&��+/���
![Page 15: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/15.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
��������
aws <service> <operation> [parameters]
ec2, s3������� ���� configure, help���� ������
�����������
$ aws ec2 describe-instances --max-items 2
![Page 16: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/16.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CLI ������Web�����
http://docs.aws.amazon.com/cli/latest/reference/index.html
����aws helpaws <service> helpaws <service> <operation> help
![Page 17: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/17.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS SDK
• AWS �������������"����SDK• AWS�������#���� API� wrap� �• � ����� SDK �!$����
import boto3 bucket_name = "my-bucket-name"file_path = “/Users/me/files/myvideo.mp4”
s3 = boto3.resource('s3’) s3.Bucket(bucket_name).upload_file(file_path, 'server.jpg')
3
![Page 18: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/18.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS SDK
Ruby AWS CLI
Python (boto)Mobile SDK Node.js
AWS Toolkit
for Visual Studio
.NET
AWS Toolkit
for Eclipse
PHP
AWS Tools for
Windows PowerShell
C++
JavaScriptJava
Go
![Page 19: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/19.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SDK for Services ��• ������ �������
–�����!$• ������ �
– ����������• � ���� �
– ���������������• ������ �
– Pub / Sub ������• ������ ��������
– NoSQL�� ������• ������ �
– E ���# "��������
![Page 20: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/20.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
����
![Page 21: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/21.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS ����W W
M
K b
D
F A33 A
F A3
)
F B AC 3 A 3A
F3A
F (3
F
A A
K
F A
SC 3
F ) D
F A
![Page 22: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/22.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Mobile SDK•
• BCM S DK• ������� �����������
• https://aws.amazon.com/documentation/mobile-sdk/
A D
3
3
3
K D
![Page 23: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/23.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Mobile SDK
• ��� ������������• AWS Mobile SDK for iOS• AWS Mobile SDK for Android• AWS Mobile SDK for .NET and Xamarin• AWS Mobile SDK for Unity
![Page 24: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/24.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Mobile CLI
• JavaScript�#$��$�734����!'�AWS�%���6,�0)*������$� �$�$�%�����.&
• �%��"� /-6,��AWS Mobile Hub�.&�����15�(2+5
$ awsmobile init
![Page 25: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/25.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
�����������������
select features: � user-signin� user-files � cloud-api� database � analytics � hosting � appsync
$ awsmobile feature
![Page 26: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/26.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
�����������������$ awsmobile push
![Page 27: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/27.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
�������
![Page 28: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/28.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Amplify
• ������������� #���������%"$�JavaScript����
• ��������!����������
import { Storage } from 'aws-amplify';
Storage.put ('test.txt’ , 'Hello’ ).then (result => console.log(result)).catch(err => console.log(err));
3
![Page 29: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/29.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Amplify
�����JavaScript������• React• React Native• Angular• Ionic• Vue.js coming soon
![Page 30: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/30.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
UI Component Photo Picker
![Page 31: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/31.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
UI Component S3 Album
![Page 32: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/32.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Service Worker ����• ����#�����"�� 03�����
postMessage� $��&�/-��������• ��"�$+2�����!+2�)'%1• Progressive Web Apps �(.�*,�
![Page 33: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/33.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
Basic Steps of AWS CLI
![Page 34: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/34.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Steps of AWS CLI
• AWS��������• �����������• AWS CLI��������� ������• AWS SDK������
![Page 35: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/35.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS Steps of AWS CLI
• �#�#�� #�$.• IAM�#�#$.• IAM� #�$.• � #�����#83• �#�#� #��7(• �����#ID��#�!�������#2.
• AWS��"����)�'����#�#1409�-5• IAM�����#ID��#�!�������#�6�• �� �,&�*/�%+
![Page 36: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/36.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
AWS CLI������������ �
• AWS CLI�������
$ pip install awcscli --upgrade –user$ aws configure
• AWS CLI��
$ aws configureAWS Access Key ID [None]: ACCESSKEYEXAMPLEAWS Secret Access Key [None]: wJalrXUtnFEMI/SECRETKEYEXAMPLEKEYDefault region name [None]:ap-northeast-1Default output format [None]: json
![Page 37: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/37.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
������
bash
$ complete -C '/usr/local/bin/aws_completer' aws
tcsh
> complete aws 'p/*/`aws_completer`/'
zsh
% source /usr/local/bin/aws_zsh_completer.sh
![Page 38: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/38.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
������
bash
$ aws sTABS3 ses sqs sts swfs3api sns storagegateway support
![Page 39: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/39.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
����
• �(� 1/-'�#.%0• IDE�)*������+!
• AWS Toolkit for Visual Studio• AWS Toolkit for Eclipse
• "� AWS SDK ���������� � �����&�������$,���https://aws.amazon.com/jp/tools/
![Page 40: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/40.jpg)
��������� ��AWS Cloud9� �• LeI S W MD
m SDr D D AC
• LeIm C E L d S D b
S m• o L S D
t• e
a d
![Page 41: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/41.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
• JavaScript�Python�Go�0' ��%9*+��"�6-
• AWS CLI��#���".�• Amazon EC2�#��#���� SSH):�7/ Linux����&(�%9&(�,5$8
• AWS Cloud9���! ���<;���31 AWS Cloud9 &(�2�4�$8
![Page 42: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/42.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SDK����
![Page 43: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/43.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
������� ��S3����������import boto3
def listBuckets(bucketName):s3client = boto3.client('s3')resource = s3client.list_buckets()for bucket in resource['Buckets']:
if bucket['Name'].startswith(bucketName):print("Bucket: %s" % bucket['Name'])
![Page 44: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/44.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3���������import boto3
def createBucket(bucketName) :s3client = boto3.client('s3')s3client.create_bucket(Bucket=bucketName)
![Page 45: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/45.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
S3���������import boto3
def deleteBucket(bucketName) :s3client = boto3.client('s3')s3client.delete_bucket(Bucket=bucketName)
![Page 46: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/46.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SQS���������import boto3
def createQueue(name):sqs = boto3.resource('sqs')queue = sqs.create_queue(
QueueName=name, Attributes={'DelaySeconds':'5'})return queue.url
url = createQueue("myqueue")print("url : %s" % url)
![Page 47: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/47.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SQS���������import boto3
def getQueue(name):sqs = boto3.resource("sqs")queue = sqs.get_queue_by_name(QueueName=name)return queue
queue = getQueue("myqueue")print("queue url: %s" % queue.url)
![Page 48: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/48.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
SDK���
• AWS SDK• ������������ SDK
• AWS mobile SDK• ������������� SDK
• Amplify• ��� ������� js���OSS
![Page 49: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/49.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
CLI���
• AWS CLI• AWS ����� Terminal���
• AWS Mobile CLI• mobile hub� Terminal���
![Page 50: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/50.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
���Programmable�� �������AWS�:8�-� CLI / SDK ��Programmable��$$�� ����3.��!���"$��$��#�7:���Programmable��$�� ����:8�� ���,)1�+��052/�69 ��'(�*4�� �����
���!���"$��$��#%&�AWS�2/�
![Page 51: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/51.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.
F b aS ARc R d
d
Q 3 Wc
![Page 52: Day3-1400-AWS CLI SDK · © 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved. AWS](https://reader035.fdocuments.net/reader035/viewer/2022062507/5fc482aae2ab073e585fb195/html5/thumbnails/52.jpg)
© 2018, Amazon Web Services, Inc. or its affiliates. All rights reserved.