{"id":3182,"date":"2019-09-02T10:54:28","date_gmt":"2019-09-02T10:54:28","guid":{"rendered":"https:\/\/www.testpreptraining.com\/tutorial\/?page_id=3182"},"modified":"2020-05-02T05:03:59","modified_gmt":"2020-05-02T05:03:59","slug":"cli-usage","status":"publish","type":"page","link":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/","title":{"rendered":"CLI usage"},"content":{"rendered":"\n<ul class=\"wp-block-list\"><li>AWS Key Management Service (AWS KMS) is an\nencryption and key management web service. <\/li><li>Clients must support TLS (Transport Layer\nSecurity) 1.0 \/ 1.2. <\/li><li>Clients must also support cipher suites with PFS\nlike DHE or ECDHE<\/li><li>Modern systems such as Java 7 and later support\nthese modes.<\/li><\/ul>\n\n\n\n<p><strong>Signing Requests<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Requests must be signed by an access key ID and\na secret access key. <\/li><li>use access key ID and secret access key for an\nIAM user. <\/li><li>also use AWS Security Token Service to generate\ntemporary security credentials that you can use to sign requests.<\/li><li>All AWS KMS operations require Signature Version\n4 .<\/li><\/ul>\n\n\n\n<p><strong>Logging API Requests<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>AWS KMS supports AWS CloudTrail to logs AWS API\ncalls and related events <\/li><li>As per information collected determine what\nrequests were made to AWS KMS, who made it, when it was made, etc<\/li><\/ul>\n\n\n\n<p><strong>Commonly Used API Operations<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Encrypt<\/li><li>Decrypt<\/li><li>GenerateDataKey<\/li><li>GenerateDataKeyWithoutPlaintext<\/li><\/ul>\n\n\n\n<p><strong>encrypt command<\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>Encrypts plaintext into ciphertext <\/li><li>Uses customer master key (CMK). <\/li><li>primary use cases<ul><li>encrypt\nup to 4 kilobytes (4096 bytes) of arbitrary data such as an RSA key, a database\npassword, or other sensitive information.<\/li><\/ul><ul><li>use\nthe Encrypt operation to move encrypted data from one AWS region to another. <\/li><\/ul><\/li><li>encrypt &#8211;key-id &lt;value&gt;&nbsp; &#8211;plaintext &lt;value&gt;&nbsp; [&#8211;encryption-context &lt;value&gt;]&nbsp; [&#8211;grant-tokens &lt;value&gt;]&nbsp; [&#8211;cli-input-json &lt;value&gt;]&nbsp; [&#8211;generate-cli-skeleton &lt;value&gt;]<ul><li>&#8211;key-id\n(string) &#8211;&nbsp;&nbsp;&nbsp;&nbsp; A unique identifier for\nthe customer master key (CMK).<\/li><\/ul><ul><li>&#8211;plaintext\n(blob) &#8211;&nbsp;&nbsp;&nbsp;&nbsp; Data to be encrypted.<\/li><\/ul><ul><li>&#8211;encryption-context\n(map) &#8211; Name-value pair that specifies the encryption context to be used for\nauthenticated encryption.&nbsp; <\/li><\/ul><ul><li>&#8211;grant-tokens\n(list) &#8211;&nbsp;&nbsp;&nbsp;&nbsp; A list of grant tokens.<\/li><\/ul><ul><li>&#8211;cli-input-json\n(string) Performs service operation based on the JSON string provided.<\/li><\/ul><ul><li>&#8211;generate-cli-skeleton\n(string) Prints a JSON skeleton to standard output without sending an API\nrequest. <\/li><\/ul><\/li><\/ul>\n","protected":false},"excerpt":{"rendered":"<p>AWS Key Management Service (AWS KMS) is an encryption and key management web service. Clients must support TLS (Transport Layer Security) 1.0 \/ 1.2. Clients must also support cipher suites with PFS like DHE or ECDHE Modern systems such as Java 7 and later support these modes. Signing Requests Requests must be signed by an&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":2471,"menu_order":25,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"categories":[2],"tags":[7,553],"class_list":["post-3182","page","type-page","status-publish","hentry","category-amazon-aws","tag-aws","tag-cli-usage"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.1 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>CLI usage - Testprep Training Tutorials<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"CLI usage - Testprep Training Tutorials\" \/>\n<meta property=\"og:description\" content=\"AWS Key Management Service (AWS KMS) is an encryption and key management web service. Clients must support TLS (Transport Layer Security) 1.0 \/ 1.2. Clients must also support cipher suites with PFS like DHE or ECDHE Modern systems such as Java 7 and later support these modes. Signing Requests Requests must be signed by an...\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/\" \/>\n<meta property=\"og:site_name\" content=\"Testprep Training Tutorials\" \/>\n<meta property=\"article:modified_time\" content=\"2020-05-02T05:03:59+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data1\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/\",\"name\":\"CLI usage - Testprep Training Tutorials\",\"isPartOf\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\"},\"datePublished\":\"2019-09-02T10:54:28+00:00\",\"dateModified\":\"2020-05-02T05:03:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AWS Certified Solutions Architect Professional (SAP-C02)\",\"item\":\"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"CLI usage\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#website\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"name\":\"Testprep Training Tutorials\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#organization\",\"name\":\"Testprep Training\",\"url\":\"https:\/\/www.testpreptraining.ai\/tutorial\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"contentUrl\":\"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png\",\"width\":583,\"height\":153,\"caption\":\"Testprep Training\"},\"image\":{\"@id\":\"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"CLI usage - Testprep Training Tutorials","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/","og_locale":"en_US","og_type":"article","og_title":"CLI usage - Testprep Training Tutorials","og_description":"AWS Key Management Service (AWS KMS) is an encryption and key management web service. Clients must support TLS (Transport Layer Security) 1.0 \/ 1.2. Clients must also support cipher suites with PFS like DHE or ECDHE Modern systems such as Java 7 and later support these modes. Signing Requests Requests must be signed by an...","og_url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/","og_site_name":"Testprep Training Tutorials","article_modified_time":"2020-05-02T05:03:59+00:00","twitter_card":"summary_large_image","twitter_misc":{"Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/","url":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/","name":"CLI usage - Testprep Training Tutorials","isPartOf":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website"},"datePublished":"2019-09-02T10:54:28+00:00","dateModified":"2020-05-02T05:03:59+00:00","breadcrumb":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/cli-usage\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.testpreptraining.ai\/tutorial\/"},{"@type":"ListItem","position":2,"name":"AWS Certified Solutions Architect Professional (SAP-C02)","item":"https:\/\/www.testpreptraining.ai\/tutorial\/aws-certified-solutions-architect-professional-sap-c01\/"},{"@type":"ListItem","position":3,"name":"CLI usage"}]},{"@type":"WebSite","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#website","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","name":"Testprep Training Tutorials","description":"","publisher":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.testpreptraining.ai\/tutorial\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#organization","name":"Testprep Training","url":"https:\/\/www.testpreptraining.ai\/tutorial\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/","url":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","contentUrl":"https:\/\/www.testpreptraining.com\/tutorial\/wp-content\/uploads\/2020\/07\/tpt-logo-6.png","width":583,"height":153,"caption":"Testprep Training"},"image":{"@id":"https:\/\/www.testpreptraining.ai\/tutorial\/#\/schema\/logo\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3182","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/comments?post=3182"}],"version-history":[{"count":3,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3182\/revisions"}],"predecessor-version":[{"id":3394,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/3182\/revisions\/3394"}],"up":[{"embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/pages\/2471"}],"wp:attachment":[{"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/media?parent=3182"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/categories?post=3182"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testpreptraining.ai\/tutorial\/wp-json\/wp\/v2\/tags?post=3182"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}