{"id":228,"date":"2025-05-09T08:26:52","date_gmt":"2025-05-09T08:26:52","guid":{"rendered":"https:\/\/deskgadgetreviews.com\/?p=228"},"modified":"2025-05-09T09:05:16","modified_gmt":"2025-05-09T09:05:16","slug":"2025_5_amplify-start","status":"publish","type":"post","link":"https:\/\/deskgadgetreviews.com\/index.php\/2025\/05\/09\/2025_5_amplify-start\/","title":{"rendered":"\u30102025\u5e745\u6708\u7248\u3011Amplify\u306e\u521d\u671f\u8a2d\u5b9a"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\">\u7d50\u8ad6<\/h2>\n\n\n\n<p>\u5185\u5bb9\u306f\u3069\u3046\u3067\u3082\u3044\u3044\uff01\u3068\u308a\u3042\u3048\u305a\u3001\u89e6\u3089\u305b\u308d\uff01\u3063\u3066\u4eba\u7528\u3067\u3059\u3002\uff08\u81ea\u5206\u7528\u3068\u3082\u8a00\u3044\u307e\u3059\u3002\uff09<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u30b3\u30de\u30f3\u30c9\u306e\u5165\u529b\uff08\u8a2d\u5b9a\u958b\u59cb\uff09\namplify init\n\nDo you want to continue with Amplify Gen 1? &gt; Y\nWhy would you like to use Amplify Gen 1? ...&gt; \u2193Enter\nEnter a name for the project                &gt; Enter\nInitialize the project with the above configration? &gt; Enter\nSelect the authentication method you want to use: &gt;AWS profile\nPlease choose the profile  you want to use  &gt; default (\u3082\u3057\u304f\u306f\u3001\u4ed6\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb)\nHelp improve Amplify CLI by sharing non-sensitive project configrations on failures &gt; Enter\n\n\/\/\u8a2d\u5b9a\u306e\u53cd\u6620\namplify push<\/code><\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u306f\u3058\u3081\u306b<\/h2>\n\n\n\n<p>\u4e45\u3005\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u3067\u3001\u3053\u306e\u6a5f\u4f1a\u306b\u8a18\u4e8b\u3092\u65b0\u3057\u304f\u3057\u3066\u3057\u307e\u304a\u3046\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u6ce8\u610f\u70b9<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>\u672c\u8a2d\u5b9a\u306fReact\u7528AWS-amplify\u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\u3002<\/li>\n\n\n\n<li>Amplify Gen1\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u82f1\u6587\u3068\u65e5\u8a33\u3092\u4ea4\u4e92\u306b\u8f09\u305b\u308b\u305f\u3081\u3001\u975e\u5e38\u306b\u9577\u304f\u306a\u308a\u307e\u3059\u3002<\/li>\n\n\n\n<li>\u30ea\u30f3\u30af\u3001\u53c2\u8003\u306a\u3069\u306f\u81ea\u7531\u3067\u3059\u304c\u3001\u81ea\u5df1\u8cac\u4efb\u3067\u884c\u3063\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n\n\n\n<li>\u5909\u66f4\u306f<a href=\"https:\/\/deskgadgetreviews.com\/index.php\/2024\/12\/02\/reactaws-amplify-etc-01\/\" target=\"_blank\" rel=\"noopener\" title=\"\">\u3053\u3061\u3089<\/a>\u3092\u53c2\u7167\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/li>\n<\/ul>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u4e8b\u524d\u8a2d\u5b9a<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u73fe\u5728\u306e\u968e\u5c64&amp;Amplify\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\nacount@pcname:~\\document-root$ \nnpm install aws-amplify @aws-amplify\/ui-react<\/code><\/pre>\n\n\n\n<p>Amplify\u306e\u8a2d\u5b9a\u30b3\u30de\u30f3\u30c9<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ amplify init<\/code><\/pre>\n\n\n\n<p>\u5b9f\u884c\u5f8c\u304b\u3089\u8a18\u8f09\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u521d\u671f\u8a2d\u5b9a<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nDo you want to continue with Amplify Gen 1? (y\/N)\n\/\/\u65e5\u8a33\nAmplify Gen 1 \u3092\u7d9a\u884c\u3057\u307e\u3059\u304b? (y\/N)<\/code><\/pre>\n\n\n\n<p>Gen1\u3067\u9032\u3081\u308b\u305f\u3081\u3001\u3000y \u3092\u5165\u529b<\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nWhy would you like to use Amplify Gen 1? ... (Use arrow keys or type to filter)\nI am a vurrent Gen 1 user\nGen 2 is missing features I need from Gen 1\nI find the Gen 1 CLI easier to use\n\/\/\u65e5\u8a33\nAmplify Gen 1 \u3092\u3054\u5229\u7528\u306b\u306a\u308b\u7406\u7531\u306f\u4f55\u3067\u3059\u304b\uff1f\uff08\u77e2\u5370\u30ad\u30fc\u307e\u305f\u306f\u5165\u529b\u3057\u3066\u7d5e\u308a\u8fbc\u307f\uff09\n\u73fe\u5728 Gen 1 \u3092\u4f7f\u7528\u3057\u3066\u3044\u307e\u3059\nGen 2 \u306b\u306f Gen 1 \u306b\u5fc5\u8981\u306a\u6a5f\u80fd\u304c\u6b20\u3051\u3066\u3044\u307e\u3059\nGen 1 \u306e CLI \u306e\u65b9\u304c\u4f7f\u3044\u3084\u3059\u3044\u3068\u601d\u3044\u307e\u3059<\/code><\/pre>\n\n\n\n<p>\u66f4\u65b0\u3057\u306a\u3044\u7406\u7531\u3092\u805e\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u9069\u5f53\u306b\u89e3\u7b54\u3057\u307e\u3057\u3087\u3046\u3002<br>\u4e0a\u4e0b\u306e\u77e2\u5370\u30ad\u30fc\u3067\u30ab\u30fc\u30bd\u30eb\u3092\u5408\u308f\u305b\u3001\u30a8\u30f3\u30bf\u30fc\u3067\u78ba\u5b9a\u3067\u304d\u307e\u3059\u3002<br>\uff08\u79c1\u306f\u3001Gen2\u306e\u8a2d\u5b9a\u304c\u3081\u3093\u3069\u304f\u3055\u3044\uff06ChatGPT\u304c\u5bfe\u5fdc\u3057\u3066\u3044\u306a\u3044\u3068\u3044\u3046\u7406\u7531\u306a\u306e\u3067\u30011\u756a\u3067\u3059\uff09<\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nEnter a name for the project (pwapp)\n\/\/\u65e5\u8a33\n\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u540d\u524d\u3092\u5165\u529b\u3057\u3066\u304f\u3060\u3055\u3044 (pwapp)<\/code><\/pre>\n\n\n\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u3092\u805e\u304b\u308c\u3066\u3044\u308b\u306e\u3067\u3001\u9069\u5f53\u306b\u5165\u529b\u3057\u3001\u30a8\u30f3\u30bf\u30fc\u3067\u78ba\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u3061\u306a\u307f\u306b\u3001\u3053\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3059\u3068\u3001React\u3067\u4f7f\u7528\u3057\u3066\u3044\u308b\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u540d\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u540d\u524d\u3092\u8a2d\u5b9a\u3059\u308b\u3068\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831\u304c\u51fa\u3066\u304d\u307e\u3059\u304c\u3001\u57fa\u672c\u7684\u306b\u7121\u8996\u3067OK\u3067\u3059\u3002\uff08\u8a2d\u5b9a\u5185\u5bb9\u306a\u306e\u3067\u3001\u6c17\u306b\u3057\u306a\u3044\uff09<\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nInitialize the project with the above configuration? (Y\/n)\n\/\/\u65e5\u8a33\n\u4e0a\u8a18\u306e\u69cb\u6210\u3067\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3092\u521d\u671f\u5316\u3057\u307e\u3059\u304b? (Y\/n)<\/code><\/pre>\n\n\n\n<p>Project  information(\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u60c5\u5831)\u306e\u78ba\u8a8d\u304c\u5165\u308a\u307e\u3059\u3002<br>\u4f7f\u3048\u308b\u3088\u3046\u306b\u3059\u308b\u3060\u3051\u3067\u3042\u308c\u3070\u5909\u66f4\u306f\u306a\u3044\u306e\u3067\u3001\u30a8\u30f3\u30bf\u30fc\u3082\u3057\u304f\u306f y \u3067OK<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nUsing default provider awscloudformation\n\/\/\u65e5\u8a33\n\u30c7\u30d5\u30a9\u30eb\u30c8\u30d7\u30ed\u30d0\u30a4\u30c0\u30fc awscloudformation \u306e\u4f7f\u7528<\/code><\/pre>\n\n\n\n<p>\u3068\u51fa\u3066\u304d\u307e\u3059\u304c\u3001\u7121\u8996\u3067OK\u3067\u3059\u3002<\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nSelect the authentication method you want to use: (Use arrow keys)\nAWS profile\nAWS access keys\n\/\/\u65e5\u8a33\n\u4f7f\u7528\u3059\u308b\u8a8d\u8a3c\u65b9\u6cd5\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044: (\u77e2\u5370\u30ad\u30fc\u3092\u4f7f\u7528)\nAWS \u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\nAWS \u30a2\u30af\u30bb\u30b9\u30ad\u30fc<\/code><\/pre>\n\n\n\n<p>\u4eca\u56de\u306f\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3092\u4f7f\u7528\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>AWS\u306eIAM\u3092\u4f7f\u7528\u3057\u3066\u3001\u5fc5\u8981\u306a\u6a29\u9650\u3092\u6301\u3064IAM\u30a2\u30ab\u30a6\u30f3\u30c8\u306e\u4f5c\u6210\u304a\u3088\u3073\u30a2\u30af\u30bb\u30b9\u30ad\u30fc\u3001\u30b7\u30fc\u30af\u30ec\u30c3\u30c8\u30ad\u30fc\u3092\u53d6\u5f97\u3057\u3066\u304a\u3044\u3066\u4e0b\u3055\u3044\u3002<\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nPleas choose the profile you want to use (Use arrow keys)\ndefault\n\/\/\u65e5\u8a33\n\u4f7f\u7528\u3057\u305f\u3044\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\uff08\u77e2\u5370\u30ad\u30fc\u3092\u4f7f\u7528\uff09\n\u30c7\u30d5\u30a9\u30eb\u30c8<\/code><\/pre>\n\n\n\n<p>\u4ed6\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u3067\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u4f7f\u7528\u3057\u3066\u3044\u305f\u5834\u5408\u3001\u305d\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u304c\u51fa\u3066\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u65e2\u5b58\u306e\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u629e\u3059\u308b\u304b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3068\u3001\u30d7\u30ed\u30d5\u30a1\u30a4\u30eb\u306b\u5bfe\u3057\u3066\u6a29\u9650\u304c\u7d10\u3065\u3051\u3089\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:32px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<pre class=\"wp-block-code\"><code>\/\/\u539f\u6587\nHelp improve Amplify CLI by sharing non-sensitive project configurations on failures (y\/N)\n\/\/\u65e5\u8a33\n\u5931\u6557\u6642\u306e\u975e\u6a5f\u5bc6\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u8a2d\u5b9a\u3092\u5171\u6709\u3057\u3066\u3001Amplify CLI \u306e\u6539\u5584\u306b\u3054\u5354\u529b\u304f\u3060\u3055\u3044 (y\/N)<\/code><\/pre>\n\n\n\n<p>\u3044\u308f\u3086\u308b\u3001\u30a8\u30e9\u30fc\u5171\u6709\u306e\u53ef\u5426\u3067\u3059\u306d\u3002<br>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u306e\u6a5f\u5bc6\u6027\u306b\u5fdc\u3058\u3066\u53ef\u5426\u3092\u5224\u65ad\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br>\u306a\u304a\u3001\u305d\u306e\u307e\u307e\u30a8\u30f3\u30bf\u30fc\u3092\u62bc\u3059\u3068\u3001No \u5354\u529b\u3057\u306a\u3044\u3001\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<div style=\"height:50px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p>\u4ee5\u4e0a\u3067\u521d\u671f\u8a2d\u5b9a\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u53cd\u6620\u3055\u305b\u3088\u3046<\/h2>\n\n\n\n<p>amplify push<\/p>\n\n\n\n<p>\u3067\u3001AWS\u3078\u8a2d\u5b9a\u3092\u53cd\u6620\u3055\u305b\u307e\u3057\u3087\u3046\u3002<br>\u65e2\u306bGen1\u306e\u8a2d\u5b9a\u304c\u884c\u308f\u308c\u3066\u304a\u308a\u3001\u6a29\u9650\u306e\u7d10\u3065\u3051\u306e\u307f\u3067\u3042\u308c\u3070\u3001\u57fa\u672c\u7684\u306b\u6642\u9593\u306f\u304b\u304b\u308a\u307e\u305b\u3093\u3002<br>\u521d\u56de\u8a2d\u5b9a\u306e\u5834\u5408\u3001\u7d50\u69cb\u306a\u6642\u9593\u3068AWS\u5074\u306e\u8a2d\u5b9a\u304c\u5fc5\u8981\u3068\u306a\u3063\u305f\u6c17\u304c\u3057\u307e\u3059\u2026\u2026<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u7d50\u8ad6 \u5185\u5bb9\u306f\u3069\u3046\u3067\u3082\u3044\u3044\uff01\u3068\u308a\u3042\u3048\u305a\u3001\u89e6\u3089\u305b\u308d\uff01\u3063\u3066\u4eba\u7528\u3067\u3059\u3002\uff08\u81ea\u5206\u7528\u3068\u3082\u8a00\u3044\u307e\u3059\u3002\uff09 \u306f\u3058\u3081\u306b \u4e45\u3005\u306b\u8a2d\u5b9a\u3059\u308b\u306e\u3067\u3001\u3053\u306e\u6a5f\u4f1a\u306b\u8a18\u4e8b\u3092\u65b0\u3057\u304f\u3057\u3066\u3057\u307e\u304a\u3046\u3068\u601d\u3044\u307e\u3059\u3002 \u6ce8\u610f\u70b9 \u4e8b\u524d\u8a2d\u5b9a Amplify\u306e\u8a2d\u5b9a\u30b3\u30de\u30f3\u30c9 \u5b9f\u884c\u5f8c&hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[11],"tags":[],"class_list":["post-228","post","type-post","status-publish","format-standard","hentry","category-program"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/posts\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":4,"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/posts\/228\/revisions"}],"predecessor-version":[{"id":233,"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/posts\/228\/revisions\/233"}],"wp:attachment":[{"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/categories?post=228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/deskgadgetreviews.com\/index.php\/wp-json\/wp\/v2\/tags?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}