{"id":20395,"date":"2023-04-30T07:49:14","date_gmt":"2023-04-30T04:19:14","guid":{"rendered":"https:\/\/nabfollower.com\/blog\/automate-application-deployment-into-lightsail-instance-28co\/"},"modified":"2023-04-30T07:49:14","modified_gmt":"2023-04-30T04:19:14","slug":"automate-application-deployment-into-lightsail-instance-28co","status":"publish","type":"post","link":"https:\/\/nabfollower.com\/blog\/automate-application-deployment-into-lightsail-instance-28co\/","title":{"rendered":"\u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u062f\u0631 \u0646\u0645\u0648\u0646\u0647 Lightsail"},"content":{"rendered":"<div data-article-id=\"1452360\" id=\"article-body\">\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a \u0642\u0635\u062f \u062f\u0627\u0631\u0645 \u062a\u0648\u0636\u06cc\u062d \u062f\u0647\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0647\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u0631\u0627 \u062f\u0631 \u0646\u0645\u0648\u0646\u0647 Light-Sil \u0645\u0633\u062a\u0642\u0631 \u06a9\u0646\u06cc\u0645.  \u0647\u062f\u0641 \u0627\u0632 \u0627\u06cc\u0646 \u067e\u0633\u062a \u06a9\u0634\u0641 Lightsail \u0627\u0633\u062a.  \u0645\u0627 \u0647\u0645\u0647 \u06a9\u0627\u0631\u0647\u0627 \u0631\u0627 \u0628\u0627 bash \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 AWSCLI \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0627\u06cc\u062c\u0627\u062f \u062e\u0637 \u0644\u0648\u0644\u0647 CICD \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f.<\/p>\n<p>\u0627\u06cc\u0646\u062c\u0627 \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u062a\u0627 \u062f\u0631\u0628\u0627\u0631\u0647 Lightsail &#8211; AWS Lightsail \u0628\u06cc\u0634\u062a\u0631 \u0628\u062f\u0627\u0646\u06cc\u062f<\/p>\n<p><strong>\u0631\u0648\u06cc\u06a9\u0631\u062f<\/strong>:<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/nabfollower.com\/blog\/wp-content\/uploads\/2023\/04\/\u0627\u0633\u062a\u0642\u0631\u0627\u0631-\u0628\u0631\u0646\u0627\u0645\u0647-\u0628\u0647-\u0637\u0648\u0631-\u062e\u0648\u062f\u06a9\u0627\u0631-\u062f\u0631-\u0646\u0645\u0648\u0646\u0647-Lightsail.png\" alt=\"\u062a\u0648\u0636\u06cc\u062d\u0627\u062a \u062a\u0635\u0648\u06cc\u0631\" loading=\"lazy\" width=\"732\" height=\"254\" title=\"\"><\/p>\n<p><strong>\u067e\u064a\u0634 \u0646\u064a\u0627\u0632<\/strong>:<\/p>\n<ul>\n<li>\u062d\u0633\u0627\u0628 AWS<\/li>\n<li>\u062f\u0633\u062a\u0631\u0633\u06cc IAM \u0648 \u06a9\u0644\u06cc\u062f \u0645\u062e\u0641\u06cc \u0628\u0627 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 Lightsail \u0648 EMR.<\/li>\n<li>AWS CLI<\/li>\n<li>\u062f\u0627\u06a9\u0631<\/li>\n<\/ul>\n<p><strong>\u0645\u0631\u0627\u062d\u0644 1:<\/strong> AWSCLI \u0631\u0627 \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062d\u0644\u06cc \u062e\u0648\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0628\u0627 \u0645\u0646 \u0647\u0633\u062a\u06cc\u062f \u0648 \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u0631\u0627\u062d\u0644 \u0632\u06cc\u0631 \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0627\u0632 \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644 \u0647\u0627\u06cc \u0645\u062e\u062a\u0644\u0641\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646\u062c\u0627 \u06a9\u0645\u06a9 \u0628\u06af\u06cc\u0631\u06cc\u062f: AWSCLI<\/p>\n<p><strong>\u06af\u0627\u0645 2:<\/strong> AWSCLI \u0631\u0627 \u062f\u0631 \u0645\u062d\u0644\u06cc \u062e\u0648\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f<\/p>\n<ul>\n<li>\u062a\u0631\u0645\u06cc\u0646\u0627\u0644 \u0631\u0627 \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f \u0648 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f <code>aws configure<\/code>\u062f\u0633\u062a\u0648\u0631\u060c \u06a9\u0644\u06cc\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u0648 \u06a9\u0644\u06cc\u062f \u0645\u062e\u0641\u06cc \u0631\u0627 \u0645\u06cc\u200c\u067e\u0631\u0633\u062f.\n<\/li>\n<\/ul>\n<div class=\"highlight js-code-highlight\">\n<pre class=\"highlight plaintext\"><code>shubham@Shubham~ % aws configure\nAWS Access Key ID [****************aaaa]: aaaaaaaaaaaaaaaaaaaaaa\nAWS Secret Access Key [****************bbbb]: bbbbbbbbbbbbbbbbbb\nDefault region name [eu-central-1]: eu-central-1\nDefault output format [None]: \n<\/code><\/pre>\n<div class=\"highlight__panel js-actions-panel\">\n<div class=\"highlight__panel-action js-fullscreen-code-action\">\n    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-on\"><title>\u0648\u0627\u0631\u062f \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M16 3h6v6h-2V5h-4V3zM2 3h6v2H4v4H2V3zm18 16v-4h2v6h-6v-2h4zM4 19h4v2H2v-6h2v4z\"\/>\n<\/svg><\/p>\n<p>    <svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"20px\" height=\"20px\" viewbox=\"0 0 24 24\" class=\"highlight-action crayons-icon highlight-action--fullscreen-off\"><title>\u0627\u0632 \u062d\u0627\u0644\u062a \u062a\u0645\u0627\u0645 \u0635\u0641\u062d\u0647 \u062e\u0627\u0631\u062c \u0634\u0648\u06cc\u062f<\/title>\n    <path d=\"M18 7h4v2h-6V3h2v4zM8 9H2V7h4V3h2v6zm10 8v4h-2v-6h6v2h-4zM8 15v6H6v-4H2v-2h6z\"\/>\n<\/svg><\/p>\n<\/div>\n<\/div>\n<\/div>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 3:<\/strong> \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 Grafana Image \u0631\u0627 \u062f\u0631 \u0633\u06cc\u0633\u062a\u0645 \u0645\u062d\u0644\u06cc \u062e\u0648\u062f \u0628\u06a9\u0634\u06cc\u062f.  \u0634\u0645\u0627 \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f Dockerfile \u062e\u0648\u062f \u0631\u0627 \u0628\u0646\u0627 \u0628\u0647 \u0646\u06cc\u0627\u0632 \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<br \/><code>docker pull grafana\/grafana-enterprise<\/code><\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 4:<\/strong> \u0645\u062e\u0632\u0646 ECR \u0631\u0627 \u062f\u0631 AWS \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<\/p>\n<ul>\n<li>\u0628\u0647 \u06a9\u0646\u0633\u0648\u0644 ECR \u0628\u0631\u0648\u06cc\u062f.<\/li>\n<li>\u0631\u0648\u06cc create repo \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f. <\/li>\n<li>\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634\u060c \u0628\u0627\u06cc\u062f \u062a\u0646\u0638\u06cc\u0645\u0627\u062a Visibility \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u062e\u0635\u0648\u0635\u06cc \u0627\u0646\u062a\u062e\u0627\u0628 \u06a9\u0646\u06cc\u062f.<\/li>\n<li>\u0646\u0627\u0645 \u0645\u062e\u0632\u0646 \u062e\u0648\u062f \u0631\u0627 \u0628\u062f\u0647\u06cc\u062f.  \u062f\u0631 \u0645\u0648\u0631\u062f \u0645\u0646 \u062f\u0627\u062f\u0647 \u0627\u0645 <code>lightsail<\/code> \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0646\u0627\u0645 \u0645\u062e\u0632\u0646<\/li>\n<li>\u0627\u0633\u062a\u0631\u0627\u062d\u062a \u0631\u0627 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u067e\u06cc\u0634 \u0641\u0631\u0636 \u0646\u06af\u0647 \u062f\u0627\u0631\u06cc\u062f.<\/li>\n<li>\u0631\u0648\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0644\u06cc\u06a9 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u06cc\u06a9 \u0645\u062e\u0632\u0646 \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u062f.<\/li>\n<\/ul>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 5:<\/strong> \u062a\u0635\u0648\u06cc\u0631 grafana \u0631\u0627 \u0628\u0647 ECR \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f.<\/p>\n<ul>\n<li>\u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0648\u0627\u0631\u062f ECR \u062e\u0648\u062f \u0634\u0648\u06cc\u062f<br \/>\n<code>docker login -u AWS -p $(aws ecr get-login-password --region &lt;region_name&gt;) &lt;aws_account_number&gt;.dkr.ecr.&lt;region_name&gt;.amazonaws.com<\/code> <\/li>\n<li>\u062a\u0635\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u0628\u0627 \u0628\u0631\u0686\u0633\u0628 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0628\u0627\u062f\u0628\u0627\u0646 \u0646\u0648\u0631\u06cc \u0628\u0633\u0627\u0632\u06cc\u062f<br \/>\n<code>docker build -t lightsail .<\/code>\n<\/li>\n<li>\u067e\u0633 \u0627\u0632 \u0627\u062a\u0645\u0627\u0645 \u0633\u0627\u062e\u062a\u060c \u062a\u0635\u0648\u06cc\u0631 \u062e\u0648\u062f \u0631\u0627 \u062a\u06af \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u062e\u0632\u0646 \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f:<br \/>\n<code>docker tag lightsail:latest &lt;aws_account_number&gt;.dkr.ecr.&lt;region_name&gt;.amazonaws.com\/lightsail:latest<\/code>\n<\/li>\n<li>\u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0627\u06cc\u0646 \u062a\u0635\u0648\u06cc\u0631 \u0631\u0627 \u0628\u0647 \u0645\u062e\u0632\u0646 \u062c\u062f\u06cc\u062f AWS \u062e\u0648\u062f \u0641\u0634\u0627\u0631 \u062f\u0647\u06cc\u062f:<br \/>\n<code>docker push &lt;aws_account_number&gt;.dkr.ecr.&lt;region_name&gt;.amazonaws.com\/lightsail:latest<\/code>\n<\/li>\n<\/ul>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u062a\u0635\u0648\u06cc\u0631 Grafana \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0645\u062e\u0632\u0646 ECR \u0645\u0646\u062a\u0642\u0644 \u06a9\u0631\u062f\u0647 \u0627\u06cc\u062f \u06a9\u0647 \u0645\u0627 \u0622\u0646 \u0631\u0627 \u0627\u0632 \u0646\u0645\u0648\u0646\u0647 \u062e\u0627\u0631\u062c \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0648 \u0628\u0631\u0627\u06cc \u0627\u0633\u062a\u0642\u0631\u0627\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc \u06a9\u0646\u06cc\u0645.<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 6:<\/strong> \u0627\u06cc\u0646 \u0645\u0647\u0645\u062a\u0631\u06cc\u0646 \u0642\u062f\u0645 \u0628\u0631\u0627\u06cc \u0627\u062c\u0631\u0627\u06cc \u0645\u0627 \u0627\u0633\u062a.  \u0645\u0627 \u0628\u0627\u06cc\u062f \u06cc\u06a9 \u0641\u0627\u06cc\u0644 sh \u200b\u200b\u0628\u0633\u0627\u0632\u06cc\u0645.. \u0641\u06a9\u0631 \u0645\u06cc \u06a9\u0646\u06cc\u0645 \u0686\u0631\u0627\u061f  \u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u06cc\u0645 \u062a\u0627 \u0628\u0631\u062e\u06cc \u0627\u0632 \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631 \u0631\u0627 \u0628\u0627 \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0648\u0646\u0647 Lightsail \u0627\u0631\u0633\u0627\u0644 \u06a9\u0646\u06cc\u0645.  \u0645\u062d\u062a\u0648\u0627\u06cc \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u06cc\u06a9\u06cc \u06cc\u06a9\u06cc \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u06cc\u062f.  \u0627\u06cc\u0646 \u0645\u0647\u0645\u062a\u0631\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647 \u0628\u0631\u0627\u06cc \u0627\u062a\u0648\u0645\u0627\u0633\u06cc\u0648\u0646 \u0627\u0633\u062a \u0648 \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u06af\u0641\u062a\u0645 \u0641\u0631\u0622\u06cc\u0646\u062f \u06a9\u0627\u0645\u0644\u0627\u064b \u062e\u0648\u062f\u06a9\u0627\u0631 \u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f \u0648 \u0645\u0627 \u0647\u06cc\u0686 \u06a9\u0627\u0631\u06cc \u0627\u0632 \u06a9\u0646\u0633\u0648\u0644 \u0627\u0646\u062c\u0627\u0645 \u0646\u0645\u06cc \u062f\u0647\u06cc\u0645.<br \/>\u0641\u0627\u06cc\u0644 sh \u200b\u200b\u0631\u0627 \u0628\u0627 \u06a9\u062f \u0632\u06cc\u0631 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<br \/>`<\/p>\n<ol>\n<li>sudo su<\/li>\n<li>\u0622\u067e\u062f\u06cc\u062a \u0645\u0646\u0627\u0633\u0628<\/li>\n<li>snap install docker<\/li>\n<li>\u0633\u06cc \u062f\u06cc \/\u062e\u0627\u0646\u0647\/\u0631\u0627\u06cc\u06af\u0627\u0646<\/li>\n<li>curl &#8220;https:\/\/awscli.amazonaws.com\/awscli-exe-linux-x86_64.zip&#8221; -o &#8220;awscliv2.zip&#8221;<\/li>\n<li>apt install unzip -y<\/li>\n<li>awscliv2.zip \u0631\u0627 \u0627\u0632 \u062d\u0627\u0644\u062a \u0641\u0634\u0631\u062f\u0647 \u062e\u0627\u0631\u062c \u06a9\u0646\u06cc\u062f<\/li>\n<li>.\/aws\/install<\/li>\n<li>rm -rf awscliv2.zip<\/li>\n<li>\u0635\u0627\u062f\u0631\u0627\u062a AWS_ACCESS_KEY_ID=<\/li>\n<li>\u0635\u0627\u062f\u0631\u0627\u062a AWS_SECRET_ACCESS_KEY=<\/li>\n<li>\u0648\u0631\u0648\u062f \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645 docker -u AWS -p $(aws ecr get-login-password &#8211;region ) .dkr.ecr.amazonaws.com<\/li>\n<li>docker pull .dkr.ecr..amazonaws.com\/lightsail:latest<\/li>\n<li>docker run -d -p 3000:3000 250373516626.dkr.ecr.eu-central-1.amazonaws.com\/lightsail:latest<\/li>\n<li>aws lightsail allocate-static-ip &#8211;static-ip-name <\/li>\n<li>aws lightsail attach-static-ip &#8211;static-ip-name &#8211;instance-name `<\/li>\n<\/ol>\n<p><strong>\u062a\u0648\u0636\u06cc\u062d \u06a9\u062f \u0628\u0627\u0644\u0627 \u0628\u0631\u0627\u06cc \u062f\u0631\u06a9 \u0628\u0647\u062a\u0631:<\/strong><\/p>\n<p>\u062e\u0637 1 &#8211; \u062a\u063a\u06cc\u06cc\u0631 \u06a9\u0627\u0631\u0628\u0631 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 sudo.<br \/>\u062e\u0637 2 &#8211; \u0641\u0642\u0637 \u0628\u0647 \u0631\u0648\u0632 \u0631\u0633\u0627\u0646\u06cc \u0633\u0627\u062f\u0647.<br \/>\u062e\u0637 3 &#8211; \u0646\u0635\u0628 Docker \u062f\u0631 Lightsail.<br \/>\u062e\u0637 6 \u062a\u0627 10 &#8211; \u0646\u0635\u0628 AWSCLI \u062f\u0631 \u0646\u0645\u0648\u0646\u0647 Lightsail.<br \/>\u062e\u0637 10 \u0648 11 &#8211; \u0627\u06cc\u0646 \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u0634 \u0628\u0631\u0627\u06cc \u0639\u0628\u0648\u0631 \u0645\u0633\u062a\u0642\u06cc\u0645 \u0627\u0639\u062a\u0628\u0627\u0631 IAM \u0627\u0632 \u0627\u06cc\u0646\u062c\u0627 \u0646\u06cc\u0633\u062a.  \u0628\u0647\u062a\u0631\u06cc\u0646 \u0631\u0648\u06cc\u06a9\u0631\u062f \u0627\u06cc\u0646 \u0627\u0633\u062a \u06a9\u0647 \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0645\u062a\u063a\u06cc\u0631 \u0645\u062d\u06cc\u0637\u06cc \u06cc\u0627 \u0627\u0632 \u0627\u0639\u062a\u0628\u0627\u0631 \u0627\u0628\u0632\u0627\u0631 CI \u062e\u0648\u062f \u0645\u0646\u062a\u0642\u0644 \u06a9\u0646\u06cc\u062f.<br \/>\u062e\u0637 12 &#8211; \u0628\u0627 ECR ecr-login-password \u0648\u0627\u0631\u062f ECR \u0634\u0648\u06cc\u062f<br \/>\u062e\u0637 13 &#8211; \u06a9\u0634\u06cc\u062f\u0646 \u062a\u0635\u0648\u06cc\u0631 \u06af\u0631\u0627\u0646\u0627 \u0627\u0632 \u0645\u062e\u0632\u0646 ECR \u06a9\u0647 \u062f\u0631 \u0645\u0631\u0627\u062d\u0644 \u0642\u0628\u0644\u06cc \u0641\u0634\u0627\u0631 \u062f\u0627\u062f\u0647 \u0628\u0648\u062f\u06cc\u0645.<br \/>\u062e\u0637 14 &#8211; \u06a9\u0627\u0646\u062a\u06cc\u0646\u0631 \u062f\u0627\u06a9\u0631 \u062f\u0631 \u062d\u0627\u0644 \u0627\u062c\u0631\u0627<br \/>\u062e\u0637 15 &#8211; \u06cc\u06a9 IP \u062b\u0627\u0628\u062a \u0628\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647 Lightsail \u062e\u0648\u062f \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f<br \/>\u062e\u0637 16 &#8211; \u0627\u062a\u0635\u0627\u0644 IP Static \u0628\u0647 \u0646\u0645\u0648\u0646\u0647 \u0645\u0627.<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 7:<\/strong> \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 Lightsail \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f:<br \/><code>aws lightsail create-instances --instance-names grfana --availability-zone eu-central-1a --blueprint-id ubuntu_22_04 --bundle-id nano_2_0 --user-data file:\/\/instance.sh<\/code><\/p>\n<p><strong>\u062a\u0648\u0636\u06cc\u062d \u062f\u0633\u062a\u0648\u0631 \u0628\u0627\u0644\u0627:<\/strong><br \/>\u0628\u0631\u0627\u06cc \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0646\u0645\u0648\u0646\u0647 lightsail 2 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 \u0645\u0647\u0645\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u062f \u067e\u0627\u0633 \u06a9\u0646\u06cc\u0645 \u0627\u06cc\u0646 \u0627\u0633\u062a: <strong>\u0646\u0642\u0634\u0647-ID<\/strong> \u0648 <strong>\u0628\u0633\u062a\u0647 \u0634\u0646\u0627\u0633\u0647<\/strong>.<br \/>blueprint-id \u0627\u0633\u0627\u0633\u0627\u064b \u0627\u0646\u062a\u062e\u0627\u0628 \u067e\u0644\u062a\u0641\u0631\u0645\u060c \u0628\u0631\u0646\u0627\u0645\u0647 \u06cc\u0627 \u0633\u06cc\u0633\u062a\u0645 \u0639\u0627\u0645\u0644\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0645\u06cc \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u0631 \u0646\u0645\u0648\u0646\u0647 \u062e\u0648\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0646\u06cc\u062f.  \u062f\u0631 \u0645\u0648\u0631\u062f \u0645\u0646 \u0628\u0627 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u0645\u06cc \u0631\u0648\u0645.  \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0645\u0627\u0645 \u0645\u0642\u062f\u0627\u0631 \u0645\u0648\u062c\u0648\u062f Blueprint-id \u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<br \/><code>aws lightsail get-blueprints<\/code><\/p>\n<p>\u0648\u060c bundle-id \u0646\u0648\u0639 \u0646\u0645\u0648\u0646\u0647 \u0628\u0631\u0627\u06cc \u0646\u0645\u0648\u0646\u0647 Lightsail \u0634\u0645\u0627 \u0627\u0633\u062a.  \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u062f \u062a\u0645\u0627\u0645 \u0645\u0642\u0627\u062f\u06cc\u0631 \u0645\u0648\u062c\u0648\u062f \u0628\u0633\u062a\u0647 \u0646\u0631\u0645 \u0627\u0641\u0632\u0627\u0631\u06cc \u0631\u0627 \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u06cc\u062f:<br \/><code>aws lightsail get-bundles<\/code><\/p>\n<p>\u06cc\u06a9 \u0639\u06cc\u0628 \u0645\u0647\u0645 \u0627\u06cc\u0646 \u0627\u0633\u062a <strong>&#8212; \u062f\u0627\u062f\u0647 \u0647\u0627\u06cc \u06a9\u0627\u0631\u0628\u0631<\/strong> &#8211; \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627\u060c \u0645\u0627 \u0628\u0647 Lightsail \u062f\u0633\u062a\u0648\u0631 \u0645\u06cc \u062f\u0647\u06cc\u0645 \u062a\u0627 \u0646\u0648\u0639\u06cc \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0631\u0627 \u0628\u0627 \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0648\u0646\u0647 \u0627\u062c\u0631\u0627 \u06a9\u0646\u062f.  \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0627\u0633\u0627\u0633\u0627\u064b \u0647\u0631 \u0627\u0633\u06a9\u0631\u06cc\u067e\u062a\u06cc \u06a9\u0647 \u062f\u0631 \u0645\u0631\u0627\u062d\u0644 \u0628\u0627\u0644\u0627 \u0630\u06a9\u0631 \u06a9\u0631\u062f\u06cc\u0645\u060c \u0628\u0627 \u0627\u06cc\u062c\u0627\u062f \u0646\u0645\u0648\u0646\u0647 \u0634\u0645\u0627 \u0627\u062c\u0631\u0627 \u0645\u06cc\u200c\u0634\u0648\u062f.<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 8:<\/strong> \u0628\u0647 \u067e\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u0634\u0645\u0627 \u062f\u0631 \u0622\u0646 \u0627\u062c\u0631\u0627 \u0645\u06cc \u0634\u0648\u062f \u0628\u0647 Lightsail \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u062a\u0627 \u062a\u0631\u0627\u0641\u06cc\u06a9 \u062f\u0631 \u067e\u0648\u0631\u062a \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0631\u0627 \u0628\u067e\u0630\u06cc\u0631\u062f.  \u062f\u0631 \u0645\u0648\u0631\u062f \u0645\u0646 \u067e\u0648\u0631\u062a 3000 \u0627\u0633\u062a.<br \/><code>aws lightsail open-instance-public-ports --port-info fromPort=3000,toPort=3000,protocol=TCP --instance-name grfana<\/code><\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 9:<\/strong> [Optional]  DNS \u0631\u0627 \u0628\u0627 IP \u062e\u0648\u062f \u0648\u0635\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<p><strong>\u0645\u0631\u062d\u0644\u0647 10:<\/strong> \u0627\u0632 \u0645\u0631\u0648\u0631\u06af\u0631 \u0628\u0627 IP \u062b\u0627\u0628\u062a \u06cc\u0627 \u0628\u0627 DNS \u0628\u0647 \u0628\u0631\u0646\u0627\u0645\u0647 \u062e\u0648\u062f \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<\/p><\/div>\n","protected":false},"excerpt":{"rendered":"<p>\u062f\u0631 \u0627\u06cc\u0646 \u067e\u0633\u062a \u0642\u0635\u062f \u062f\u0627\u0631\u0645 \u062a\u0648\u0636\u06cc\u062d \u062f\u0647\u0645 \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0628\u0647 \u0631\u0627\u062d\u062a\u06cc \u0645\u06cc \u062a\u0648\u0627\u0646\u06cc\u0645 \u0647\u0631 \u0628\u0631\u0646\u0627\u0645\u0647 \u0627\u06cc \u0631\u0627 \u062f\u0631 \u0646\u0645\u0648\u0646\u0647 Light-Sil \u0645\u0633\u062a\u0642\u0631 \u06a9\u0646\u06cc\u0645. \u0647\u062f\u0641 \u0627\u0632 \u0627\u06cc\u0646 \u067e\u0633\u062a \u06a9\u0634\u0641 Lightsail \u0627\u0633\u062a. \u0645\u0627 \u0647\u0645\u0647 \u06a9\u0627\u0631\u0647\u0627 \u0631\u0627 \u0628\u0627 bash \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 AWSCLI \u0627\u0646\u062c\u0627\u0645 \u062e\u0648\u0627\u0647\u06cc\u0645 \u062f\u0627\u062f \u06a9\u0647 \u0645\u06cc \u062a\u0648\u0627\u0646\u062f \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0627\u06cc\u062c\u0627\u062f \u062e\u0637 \u0644\u0648\u0644\u0647 CICD \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u0648\u062f. \u0627\u06cc\u0646\u062c\u0627 \u0631\u0627 &hellip;<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"","fifu_image_alt":"","footnotes":""},"categories":[339],"tags":[],"class_list":["post-20395","post","type-post","status-publish","format-standard","hentry","category-dev"],"_links":{"self":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/20395","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/comments?post=20395"}],"version-history":[{"count":0,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/posts\/20395\/revisions"}],"wp:attachment":[{"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/media?parent=20395"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/categories?post=20395"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nabfollower.com\/blog\/wp-json\/wp\/v2\/tags?post=20395"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}