{"id":2940,"date":"2023-12-25T14:24:50","date_gmt":"2023-12-25T05:24:50","guid":{"rendered":"https:\/\/opt-p.co.jp\/blog\/?p=2940"},"modified":"2023-12-25T14:24:50","modified_gmt":"2023-12-25T05:24:50","slug":"ecsfargate%e3%81%ab%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/opt-p.co.jp\/blog\/aws\/ecsfargate%e3%81%ab%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%99%e3%82%8b\/","title":{"rendered":"ECS(Fargate)\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b"},"content":{"rendered":"\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"380\" src=\"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/ECSG.png?resize=525%2C380&#038;ssl=1\" alt=\"\" class=\"wp-image-2957\" srcset=\"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/ECSG.png?w=671&amp;ssl=1 671w, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/ECSG.png?resize=300%2C217&amp;ssl=1 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><figcaption class=\"wp-element-caption\">\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u56f3A \u30b7\u30b9\u30c6\u30e0\u69cb\u6210\u56f3<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">%docker container exec -it \u30b3\u30f3\u30c6\u30ca\u540d bash\n\u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3001ECS Exec\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066Fargate\u3067\u3082\u53ef\u80fd\u3067\u3059\u3002<\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-db01e4bf0eba1635a18c2d293ab5b3e4\">1. ECS Exec\u306e\u4ed5\u7d44\u307f<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">ECS Exec\u306fSystems Manager Session Manager\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066\u5b9f\u73fe\u3057\u3066\u3044\u307e\u3059\u3002 ECS Exec\u306f\u8ffd\u52a0\u8cbb\u7528\u306a\u3057\u3067\u5229\u7528\u304c\u53ef\u80fd\u3067\u3059<\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-ac1a6548aeb3655131e3404c96c27069\">2. \u5fc5\u8981\u306a\u30c4\u30fc\u30eb<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">(1)AWS CLI<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>%curl https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip -o \"awscliv2.zip\"\n%unzip awscliv2.zip\n%sudo .\/aws\/insstall \u53c8\u306f\n%sudo .\/aws\/insstall --update\u3000\u3000# update\u306e\u5834\u5408<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">(2)Session Manager plugin for the AWS CLI<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>%curl \"https:\/\/s3.amazonaws.com\/session-manager-downloads\/plugin\/latest\/linux_64bit\/session-manager-plugin.rpm\" -o \"session-manager-plugin.rpm\"\n%sudo yum install -y session-manager-plugin.rpm\n  \u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\n  session-manager-plugin\n  The Session Manager plugin was installed successfully. Use the AWS CLI to start a session.\u3000\u3068\u51fa\u529b\u3055\u308c\u308c\u3070\u3001OK\n##amazon Linux2\u306e\u5834\u5408\u3067\u3059\u3002\u4ed6\u306e\u30c7\u30a3\u30b9\u30c8\u30ea\u30d3\u30e5\u30fc\u30b7\u30e7\u30f3\u306f\u672a\u8abf\u67fb\u3067\u3059\u3002<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-012fdfe30db879a4569f27a3877b967f\">3. \u5fc5\u8981\u306a\u6a29\u9650<\/h2>\n\n\n\n<h4 class=\"wp-block-heading\">(1)ECS\u306e\u30bf\u30b9\u30af\u30ed\u30fc\u30eb\u306b\u4ee5\u4e0b\u306e\u6a29\u9650\u3092\u8ffd\u52a0(<strong>ecsTaskExecutionRole<\/strong>)\u306b\u30ab\u30b9\u30bf\u30e0\u30dd\u30ea\u30b7\u30fc\u3068\u3057\u3066\u8ffd\u52a0<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{  \n \"Version\": \"2012-10-17\",  \n \"Statement\": &#091;  \n     {  \n     \"Effect\": \"Allow\",  \n     \"Action\": &#091;  \n          \"ssmmessages:CreateControlChannel\",  \n          \"ssmmessages:CreateDataChannel\",  \n          \"ssmmessages:OpenControlChannel\",  \n          \"ssmmessages:OpenDataChannel\"  \n     ],  \n    \"Resource\": \"*\"  \n    }  \n ]  \n}  <\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">(2) fargate\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308bEC2\u306b\u6a29\u9650\u3092\u8ffd\u52a0<\/h4>\n\n\n\n<pre class=\"wp-block-code\"><code>{  \n  \"Version\": \"2012-10-17\",  \n  \"Statement\": &#091;  \n      {  \n          \"Effect\": \"Allow\",  \n          \"Action\": &#091;  \n              \"ecs:ExecuteCommand\",  \n              \"ssm:StartSession\",  \n              \"ecs:DescribeTasks\"  \n          ],  \n          \"Resource\": \"*\"  \n      }  \n  ]  \n} <\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-c2ca065b6b2aa69e9131d910f4a82886\">4. \u30bf\u30b9\u30af\u3068\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u3059\u308b ECS Exec\u306e\u6709\u52b9\u78ba\u8a8d<\/h2>\n\n\n\n<pre class=\"wp-block-preformatted\">\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30bf\u30b9\u30af\u3092\u30b5\u30fc\u30d3\u30b9\u306b\u5bfe\u3059\u308bECS Exec\u304c\u6709\u52b9\u5316\u3069\u3046\u304b\u78ba\u8a8d<\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>%aws ecs describe-services \\\n--cluster \u30af\u30e9\u30b9\u30bf\u30fc\u540d \\\n--services \u30b5\u30fc\u30d3\u30b9\u540d | grep enableExecuteCommand\n\"enableExecuteCommand\": true \u3067\u3042\u308c\u3070 OK\n\ntrue\u3067\u306a\u3044\u5834\u5408\u306f\u3001true\u306b\u3059\u308b\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\n%aws ecs update-service \\\n--cluster \u30af\u30e9\u30b9\u30bf\u30fc\u540d \\\n--service \u30b5\u30fc\u30d3\u30b9\u540d \\\n--enable-execute-command \n\n\u5909\u66f4\u3057\u305f\u5834\u5408\u306f\u3001fargate\u3092\u518d\u8d77\u52d5\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"373\" src=\"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/fargate_11.png?resize=525%2C373&#038;ssl=1\" alt=\"\" class=\"wp-image-2945\" srcset=\"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/fargate_11.png?w=671&amp;ssl=1 671w, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/fargate_11.png?resize=300%2C213&amp;ssl=1 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><figcaption class=\"wp-element-caption\">\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u56f3 B \u30bf\u30b9\u30af\u306e\u518d\u8d77\u52d5<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-036e34424b5c3f5062e733b1e8f430ad\">5. fargate\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u70ba\u306b\u30bf\u30b9\u30af\u540d\u3068\u30b3\u30f3\u30c6\u30ca\u540d\u306e\u53d6\u5f97\u3057\u307e\u3059<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>%aws ecs list-tasks --cluster \u30af\u30e9\u30b9\u30bf\u30fc\u540d --query \"taskArns&#091;]\" --output text\narn:aws:ecs:ap-northeast-1:123456789012:task\/xxxxx-cluster\/xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx\n\n%aws ecs describe-tasks --cluster \u30af\u30e9\u30b9\u30bf\u30fc\u540d --tasks  \u4e0a\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u51fa\u529b\u3055\u308c\u305f\u30bf\u30b9\u30af\u540d  --query \"tasks&#091;].containers&#091;].name\" --output text\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading has-luminous-vivid-amber-color has-text-color has-link-color wp-elements-87109e0fb40350e21569c9e6c1d5d40d\">6. Fargate\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u307e\u3059<\/h2>\n\n\n\n<pre class=\"wp-block-code\"><code>%aws ecs execute-command --cluster \u30af\u30e9\u30b9\u30bf\u30fc\u540d \\\n    --task \u30bf\u30b9\u30af\u540d \\\n    --container \u30b3\u30f3\u30c6\u30ca\u540d \\\n    --interactive \\\n    --command \"\/bin\/bash\" \\\n<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image size-full\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" width=\"525\" height=\"379\" src=\"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/fargate_13.png?resize=525%2C379&#038;ssl=1\" alt=\"\" class=\"wp-image-2970\" srcset=\"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/fargate_13.png?w=671&amp;ssl=1 671w, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/12\/fargate_13.png?resize=300%2C216&amp;ssl=1 300w\" sizes=\"auto, (max-width: 525px) 100vw, 525px\" \/><figcaption class=\"wp-element-caption\">\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u56f3C fargate\u306b\u30ed\u30b0\u30a4\u30f3<\/figcaption><\/figure>\n\n\n\n<pre class=\"wp-block-preformatted\">fargate\u306b\u30ed\u30b0\u30a4\u30f3\u3067\u304d\u307e\u3057\u305f\u3002\u30b3\u30de\u30f3\u30c9\u4e00\u767a\u3068\u306f\u306a\u3089\u306a\u3044\u3067\u3059\u304c\u3001\u76ee\u7684\u306f\u9054\u6210\uff01\ndocker container exec -it \u30b3\u30f3\u30c6\u30ca\u540d bash\u3000\u3068\u540c\u3058\u3053\u3068\u304c\u3067\u304d\u307e\u3057\u305f\u3002<\/pre>\n\n\n\n<pre class=\"wp-block-preformatted\">\u4f55\u6545\u3001fargate\u306b\u30ed\u30b0\u30a4\u30f3\u3057\u305f\u304b\u3063\u305f\u304b\uff1f\n\u30b3\u30f3\u30c6\u30ca(\u4eca\u56de\u306fRedmine)\u306e\u30c7\u30fc\u30bf\u30d9\u30fc\u30b9\u74b0\u5883database.yml\u3001mail\u9001\u4fe1\u74b0\u5883\u306econfigration.yml\u306e\u4e2d\u8eab\u3092\u78ba\u8a8d\u3057\u305f\u304b\u3063\u305f\u304b\u3089\u3067\u3059\u3002<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>%docker container exec -it \u30b3\u30f3\u30c6\u30ca\u540d bash \u306e\u3088\u3046\u306a\u3053\u3068\u304c\u3001ECS Exec\u306e\u6a5f\u80fd\u3092\u5229\u7528\u3057\u3066Fargate\u3067\u3082\u53ef\u80fd\u3067\u3059\u3002 1. ECS Exec\u306e\u4ed5\u7d44\u307f ECS Exec\u306fSystems  &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/opt-p.co.jp\/blog\/aws\/ecsfargate%e3%81%ab%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%99%e3%82%8b\/\" class=\"more-link\"><span class=\"screen-reader-text\">&#8220;ECS(Fargate)\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b&#8221; \u306e<\/span>\u7d9a\u304d\u3092\u8aad\u3080<\/a><\/p>\n","protected":false},"author":7,"featured_media":1697,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[10],"tags":[11,153,267],"class_list":["post-2940","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aws","tag-aws","tag-cli","tag-fargate"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/03\/powered-by-aws.png?fit=200%2C72&ssl=1","jetpack-related-posts":[{"id":2741,"url":"https:\/\/opt-p.co.jp\/blog\/aws\/mcs-2\/","url_meta":{"origin":2940,"position":0},"title":"AWS ECS\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u7bc9\u3057\u3088\u3046(\u305d\u306e\uff12)","author":"\u4e2d\u306e\u4eba","date":"2023\u5e744\u670811\u65e5","format":false,"excerpt":"ECS\u30b5\u30fc\u30d3\u30b9\u69cb\u7bc9\u306e\u4e8c\u56de\u76ee\u3067\u3059\u3002\u524d\u56de\u306f\uff0cECR\u306b\u767b\u9332\u3059\u308bdocker\u30a4\u30e1\u30fc\u30b8\u3092\u30b3\u30f3\u30c6\u30ca\u304b\u3089\u4f5c\u6210\u3059\u308b\u3068\u2026","rel":"","context":"AWS","block_context":{"text":"AWS","link":"https:\/\/opt-p.co.jp\/blog\/category\/aws\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS4-.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS4-.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS4-.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS4-.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":3018,"url":"https:\/\/opt-p.co.jp\/blog\/aws\/ecsfargate%e3%81%ab%e3%83%ad%e3%82%b0%e3%82%a4%e3%83%b3%e3%81%99%e3%82%8b%e3%80%80%e3%81%9d%e3%81%ae%ef%bc%92\/","url_meta":{"origin":2940,"position":1},"title":"ECS(Fargate)\u306b\u30ed\u30b0\u30a4\u30f3\u3059\u308b\u3000\u305d\u306e\uff12","author":"\u4e2d\u306e\u4eba","date":"2024\u5e745\u670814\u65e5","format":false,"excerpt":"ECS(Fargate)\u3092\u4f5c\u6210(Deploy)\u3057\u3066\u3001\u305d\u306e\u30b3\u30f3\u30c6\u30ca\u306e\u8a2d\u5b9a\u5185\u5bb9(\u3069\u306eRDS\u3092\u5229\u7528\u3057\u3066\u3044\u308b\u2026","rel":"","context":"AWS","block_context":{"text":"AWS","link":"https:\/\/opt-p.co.jp\/blog\/category\/aws\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2024\/04\/ecks8.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2024\/04\/ecks8.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2024\/04\/ecks8.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2663,"url":"https:\/\/opt-p.co.jp\/blog\/aws\/mcs\/","url_meta":{"origin":2940,"position":2},"title":"AWS\u3000ECS\u30b5\u30fc\u30d3\u30b9\u3092\u69cb\u7bc9\u3057\u3088\u3046(\u305d\u306e\uff11)","author":"\u4e2d\u306e\u4eba","date":"2023\u5e744\u67084\u65e5","format":false,"excerpt":"Redmine4.2\u3068\uff0c\u4f9d\u5b58\u95a2\u4fc2\u3067DB\u304c\u5fc5\u8981\u306a\u306e\u3067\uff0cmariaDB(10.11.2)(MySQL\u7cfb)\u2026","rel":"","context":"AWS","block_context":{"text":"AWS","link":"https:\/\/opt-p.co.jp\/blog\/category\/aws\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS3-.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS3-.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS3-.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2023\/04\/ECS3-.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2080,"url":"https:\/\/opt-p.co.jp\/blog\/aws\/post-2080\/","url_meta":{"origin":2940,"position":3},"title":"AWS CLI\u3067\u60c5\u5831\u3092\u51fa\u529b\u3057\u3088\u3046VPC\u7de8(Linux\u7248-\u305d\u306e3)","author":"\u4e2d\u306e\u4eba","date":"2022\u5e748\u670810\u65e5","format":false,"excerpt":"VPC\u306b\u306f\u3069\u306e\u69d8\u306a\u60c5\u5831\u304c\u3042\u308b\u306e\u3060\u308d\u3046\u304b\uff1f\u3002\u4e00\u756a\u6c17\u306b\u306a\u308b\u306e\u306f\uff0cCIDR\uff0c\u30b5\u30d6\u30cd\u30c3\u30c8\uff0c\u3069\u306e\u3088\u3046\u306b\u3057\u305f\u3089\u898b\u2026","rel":"","context":"AWS","block_context":{"text":"AWS","link":"https:\/\/opt-p.co.jp\/blog\/category\/aws\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/08\/vpc0.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/08\/vpc0.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/08\/vpc0.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/08\/vpc0.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2421,"url":"https:\/\/opt-p.co.jp\/blog\/aws\/post-2421\/","url_meta":{"origin":2940,"position":4},"title":"AWS CLI\u3067\u60c5\u5831\u3092\u51fa\u529b\u3057\u3088\u3046 \u8272\u3005\u7de8(Linux\u7248\u305d\u306e4)","author":"\u4e2d\u306e\u4eba","date":"2022\u5e7412\u670827\u65e5","format":false,"excerpt":"1. AWS CLI\u30b3\u30de\u30f3\u30c9\u306e\u30f4\u30a1\u30fc\u30b8\u30e7\u30f3\u30a2\u30c3\u30d7\u3092\u3057\u3088\u3046 $curl https:\/\/awscli.\u2026","rel":"","context":"AWS","block_context":{"text":"AWS","link":"https:\/\/opt-p.co.jp\/blog\/category\/aws\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/12\/img1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/12\/img1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/12\/img1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2022\/12\/img1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":2975,"url":"https:\/\/opt-p.co.jp\/blog\/aws\/aws-backup%e3%82%92aws-cli%e3%82%b3%e3%83%9e%e3%83%b3%e3%83%89%e3%81%a7%e5%ae%9f%e8%a1%8c%e3%81%99%e3%82%8b\/","url_meta":{"origin":2940,"position":5},"title":"aws backup\u3092AWS CLI\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b","author":"\u4e2d\u306e\u4eba","date":"2024\u5e742\u67086\u65e5","format":false,"excerpt":"aws backup\u3092ec2(Amazon Linux2)AWS CLI\u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u3059\u308b \u3000\u3000\u3000\u3000\u2026","rel":"","context":"AWS","block_context":{"text":"AWS","link":"https:\/\/opt-p.co.jp\/blog\/category\/aws\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2024\/01\/backup3.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2024\/01\/backup3.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/opt-p.co.jp\/blog\/wp-content\/uploads\/2024\/01\/backup3.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2940","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/users\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/comments?post=2940"}],"version-history":[{"count":20,"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2940\/revisions"}],"predecessor-version":[{"id":2972,"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/posts\/2940\/revisions\/2972"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/media\/1697"}],"wp:attachment":[{"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/media?parent=2940"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/categories?post=2940"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/opt-p.co.jp\/blog\/wp-json\/wp\/v2\/tags?post=2940"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}