2024-01-01ãã1ã¶æéã®è¨äºä¸è¦§
â ã¯ããã« https://dk521123.hatenablog.com/entry/2024/01/05/000000 https://dk521123.hatenablog.com/entry/2024/01/22/210831 ã§ãAmazon ECR ã® Dockerã¤ã¡ã¼ã¸ã®ã¹ãã£ã³ã«ã¤ãã¦è§¦ãããã ã¨ã©ã¼ã解æ¶ã§ãã¦ããæéãçµã¤ã¨å¥ã®ã¨ã©ã¼ãæ¤ç¥ããâ¦
â ã¯ããã« Github Actions ï½ GITHUB_ENV ï½ https://dk521123.hatenablog.com/entry/2023/12/29/000840 ã§ãåStepã§å¤ãåã渡ãã$GITHUB_ENVããåãä¸ããã ä»åã¯ãJobéã®å¤ã®åã渡ãã«ä½¿ãã$GITHUB_OUTPUTãã«ã¤ãã¦æ±ã ç®æ¬¡ ãï¼ãGITHUB_OUTPâ¦
â ã¯ããã« å°ãã¿ã tailã³ãã³ãã«ã¤ãã¦æ±ã ãï¼ãtailã³ãã³ã * ãã¡ã¤ã«ã®æçµè¡ããæ°è¡ã表示ããã³ãã³ã * æ¨æºã§ã¯10è¡ã表示 ãï¼ã-fãªãã·ã§ã³ * ãã°ãã¡ã¤ã«ãªã©ã®ãªã¢ã«ã¿ã¤ã ç£è¦ * --follow ï¼ï¼ä½¿ç¨ä¾ ä¾ï¼ï¼/var/log/cron https://dk5â¦
â ã¯ããã« ä»åã¯ãGithub Actions ã® ã¯ã¼ã¯ããã¼å®è¡ ã®è¡ãã»è¡ããªããå¶å¾¡ããããã«å¿ è¦ãªæ±ãã ç®æ¬¡ ãï¼ãneeds ï¼ï¼needs.<job_id>.result ï¼ï¼needs.<job_id>.outputs.<output name> ãï¼ãif ãï¼ãon ï¼ï¼push ï¼ï¼workflow_run / workflow_call ï¼ï¼workflow_dispatch ï¼</output></job_id></job_id>â¦
â ã¯ããã« TOMLãã¡ã¤ã«ãèªã¿è¾¼ã¿ ãã®ãã¼ã¿å ã使ããã¼ã«ãå¿ è¦ã«ãªããããªã®ã§ Pythonã§TOMLãã©ãæ±ããã調ã¹ã¦ã¿ã ãªããTOMLã«ã¤ãã¦ã¯ã以ä¸ã®é¢é£è¨äºãåç §ã®ã㨠TOML https://dk521123.hatenablog.com/entry/2023/04/25/103533 ç®æ¬¡ ãï¼ãâ¦
â ã¯ããã« AWS CodeArtifact ã®ç°å¢ã軽ãTerraformã§ä½ã£ãã®ã§ ããã§å¾ããã¨ãã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãAPI ï¼ï¼aws_codeartifact_repository ãï¼ã使ç¨ä¸ã®æ³¨æ ï¼ï¼external_connections ã¯1ã¤ããæå®ã§ããªã ãï¼ããµã³ãã« ä¾ï¼ï¼æ¢åã®domainãâ¦
â ã¯ããã« ä»åã¯ãç¬èªã®JARãªã©ã AWS CodeArtifact ã®ãªãã¸ããªã«ãããæ¹æ³ã«ã¤ã㦠è¨é²ãã¦ãã ç®æ¬¡ ãï¼ãJARããªãã¸ããªã«ãããã«ã¯ ãï¼ãåææ¡ä»¶ ï¼ï¼IAMãã¼ã« ãï¼ãæé Step1: CodeArtifact èªè¨¼ãã¼ã¯ã³ãåå¾ Step2: JAR ã CodeArtifâ¦
â ã¯ããã« å°ãã¿ã CI/CD ã®å¦çã®ä¸ç°ã§ã ããã¹ããã¡ã¤ã«ã«ãã¼ã¸ã§ã³ãæå®ããã¦ã㦠ãã®ãã¡ã¤ã«ãèªã¿è¾¼ãã§ãã«ã¦ã³ãã¢ããããå¤ã å¦çã§ä½¿ããããªã£ã¨æã£ãæã«ã IFS ãã§ã¦ããã®ã§ ã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãç°å¢å¤æ° IFS ãï¼ãreadã³â¦
â ã¯ããã« EC2 Image builder ã«ã¤ãã¦ãå°ãã¥ã¤ã ãã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãEC2 Image builder ãï¼ãç¨èªæ´ç ï¼ï¼AMI (Amazon Machin Image) ï¼ï¼ã³ã³ãã¼ãã³ã (Components) ï¼ï¼ã¤ã¡ã¼ã¸ã¬ã·ã (Image Recipes) ï¼ï¼ã¤ã¡ã¼ã¸ãã¤ãã©ã¤ã³ (Image Piâ¦
â ã¯ããã« Amazon ECR ã¯ãç°¡åã« èå¼±æ§è¨ºæãµã¼ãã¹ Amazon Inspector ã 使ããã®ã§ããã®ãã¨ã«ã¤ãã¦ãã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãAmazon Inspector ï¼ï¼AWS ECR ã¨ã®é£æº ãï¼ãèå¼±æ§è¨ºæã® On/Off ï¼ï¼Terraform ã®å ´å ãï¼ãã¹ãã£ã³éå§ã¿ã¤ãã³ã°â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/12/02/024631 ã§ãAWS ECRã¸ã®ç»é²ããã è¿ã ãã¾ããAWS ECRã«Dockerã¤ã¡ã¼ã¸ãç»é²ããããªã®ã§ ä»åã¯ãDocker Hub ã¸ç¬èªã®Dockerã¤ã¡ã¼ã¸ç»é²ãããã¨ãéãã¦ã 復ç¿ããã¦ããããã ç®æ¬¡ ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/12/26/012343 https://dk521123.hatenablog.com/entry/2024/01/11/233802 https://dk521123.hatenablog.com/entry/2024/01/14/005148 ã®ç¶ãã AWS CodeArtifact ã®å ¬å¼ããã¥ã¡ã³ãã§ã¯ã MavenãGrâ¦
â ã¯ããã« ä»åã¯ãGithub Actionsã§ãå¯èªæ§ãä¸ããããã«ã å ±éå¦çãå¤é¨ã·ã§ã«ã¹ã¯ãªããã¨ãã¦åãåºãã¦ã Github Actionsããå¼ã³åºãã¦ä½¿ãã å°ãã¿ã§ã¯ããããè²ã ã¨å¦ã¶ãã®ããã£ãã®ã§ãã¡ã¢ã ç®æ¬¡ ãï¼ãGithub Actionså¦ç ï¼ï¼ãã©ã«ãâ¦
â ã¯ããã« MWAA 㧠軽微ãªãã©ãã«ã ã£ãã å¦ã³ãè²ã ã¨ãã£ãã®ã§ãã¡ã¢ã£ã¦ãã ä»æ¥ã®æè¨ Python 製 㧠JSON ã¯ã ã·ã³ã°ã«ã¯ã©ã¼ãã¼ã·ã§ã³ï¼'ï¼ã§ã¯ãªã ããã«ã¯ã©ã¼ãã¼ã·ã§ã³ï¼"ï¼ã§å²ãã æ¹ã ãã©ãã«å°ãªãæ¸ã¿ãã ãï¼ãç¾è±¡ MWAA 㧠Secretâ¦
â ã¯ããã« Terraform ã®è¨å®æã«ãasdf ã£ã¦ã®ãç¥ã£ãã®ã§ã 調ã¹ã¦ã¿ã ç®æ¬¡ ãï¼ãasdf ãï¼ã使ãã©ãã ãï¼ãç°å¢è¨å® ï¼ï¼è¨å®ç°å¢ ï¼ï¼è¨å®æé ãï¼ã使ãæ¹ ä¾ï¼ï¼Terraform ä¾ï¼ï¼Python ä¾ï¼ï¼JDK ãï¼ããã©ãã« ï¼ï¼Pythonã¤ã³ã¹ãã¼ã«æã®ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/05/03/000000 ã®ç¶ãã Terraform ã® Data Sourcesï¼ãã¼ã¿ã½ã¼ã¹ï¼ ã«ã¤ãã¦æ±ãã ç®æ¬¡ ãï¼ããã¼ã¿ãªã½ã¼ã¹ - data ãï¼ãå©ç¨ä¾ ãï¼ããµã³ãã« ä¾ï¼ï¼AWS S3 ä¾ï¼ï¼AWS Region ãï¼ãfilter ï¼â¦
â ã¯ããã« Amazon Linux 2ã® Extras Library(amazon-linux-extras) ã«ã¤ã㦠ä»å¾ã®ä½æ¥ã«ãé¢ä¿ããããªã®ã§ãã¾ã¨ãã¦ãã ç®æ¬¡ ãï¼ãExtras Library(amazon-linux-extras) ãï¼ãç¨èªæ´ç ï¼ï¼ããã㯠ãï¼ã使ç¨ä¸ã®æ³¨æ ï¼ï¼ãµãã¼ãç¯å²ã¯ã Amazonâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/12/26/012343 https://dk521123.hatenablog.com/entry/2024/01/11/233802 ã®ç¶ãã ä»åã¯ãCI/CD 㧠Github Actions ããã AWS CodeArtifact ã«ã¢ã¯ã»ã¹ããããã«å¿ è¦ãã㪠AWS CLI ã調ã¹ãã®ã§â¦
â ã¯ããã« EC2 ä¸ã§SDKMANã使ã£ã¦ãSBTãã¤ã³ã¹ãã¼ã«ããã®ã ã ãã°ãªãå¾ã«ä½¿ããªããªã£ã¦ããã SDKMAN以å¤ã®æ¹æ³ããªããã模索ãã¦ããã ããã§ãä»åã¯ã SBT (Simple Build Tool) ã®æ§ç¯æé ãè²ã ããã®ã§ã æ´çãã¦ããã ç®æ¬¡ ãï¼ãã¤ã³ã¹ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/12/26/012343 https://dk521123.hatenablog.com/entry/2024/01/11/233802 ã§ãAWS CodeArtifact ã使ã£ã¦ãã¯ãã¼ãºããã Mavenã®ãªãã¸ã㪠(㨠pip(PyPI; The Python Package Index))ãèãã¦ããâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/12/26/012343 ã®ç¶ãã ä»åã¯ãAWS CodeArtifact ãæ§ç¯ããã®ã調ã¹ã¦ã¿ã ç®æ¬¡ ãï¼ãä½ææé Step1: Create repository Step2: Select domain Step3: Review and create ãï¼ãä½ææé * ä½æâ¦
â ã¯ããã« Github Actionsã§ãWaiting for a runner to pick up this job...ããã é²ã¾ãªãç¶æ ã«é¥ã£ãã ä»åã®å ´åãself-hosted runners(ç¬èªãµã¼ã)ã§å¯¾è±¡ãªãã¸ããªã« è¨å®ãããã¦ããªãã£ããã¨ãåå ã ã£ããããã®æè¨ãã¡ã¢ã£ã¦ããã ï¼å¥ãªãâ¦
â ã¯ããã« VIM/NeoVIMã«é¢ãããã©ã°ã¤ã³ã«ã¤ãã¦ãã¾ã¨ãã¦ã¿ã ç®æ¬¡ ãï¼ããã©ã°ã¤ã³ããã¼ã¸ã£ ï¼ï¼vim-plug ãï¼ãæ§ã ãªãã©ã°ã¤ã³ ãï¼ããã©ã°ã¤ã³ããã¼ã¸ã£ * VIMã«ãã©ã°ã¤ã³ãå ¥ããã«ã¯ã ãã©ã°ã¤ã³ããã¼ã¸ã£ãã¤ã³ã¹ãã¼ã«ããå¿ è¦ããã â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/11/13/020744 ã®ç¶ãã ä»åã¯ãtmux ã®æä½ã¨è¨å®å¤æ´ãªã©ãæ¸ãã¦ãã ç®æ¬¡ ãï¼ãæä½ã³ãã³ã ï¼ï¼åºæ¬æä½ ï¼ï¼ãã¤ã³æä½ ï¼ï¼ã¦ã£ã³ãã¦æä½ ãï¼ãè¨å®å¤æ´ ãï¼ãæä½ã³ãã³ã ï¼ï¼åºæ¬æä½â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2024/01/14/005148 ããã®ååã AWS CLI ã«ã¯ã--query ã£ã¦ã®ããã£ã¦ã ~~~~ --query (string) A JMESPath query to use in filtering the response data. ~~~~ ã£ã¦ãªã£ã¦ããã®ã§ããJMESPathãã£ã¦â¦
â ã¯ããã« å®å ¨ã«èªåç¨ã®ã¡ã¢ã ä»åã¯ãPC ãæ°ãããªã£ãéã®Git/Githubã®è¨å®ãæ¸ãã¦ããã ï¼ãããã¦è¡ãã¨è¨å®æ¼ããã§ã¦å¾ã é¢åããããªãã®ã§ï¼ ç®æ¬¡ ãï¼ãgit config ãï¼ãGithubèªè¨¼çç¥ããè¨å® ãï¼ãgit config # user.name / user.emailâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2020/05/22/165711 https://dk521123.hatenablog.com/entry/2020/05/26/142645 https://dk521123.hatenablog.com/entry/2023/12/02/024631 ã®ç¶ãã ä»åã¯ãAmazon ECR ã® AWS CLI ã«ã¤ãã¦æ±ãã 主ã«ãâ¦
â ã¯ããã« Amazon S3 ã®æ¨©éã¨ã©ã¼ãå¤ãã®ã§ãããããã¾ã¨ãã¦ããã ç®æ¬¡ ãï¼ãEC2 ãã ãaws s3 lsããããã¨ã©ã¼ãListBuckets operation: Access Deniedã ãï¼ãEC2 ãã ãaws s3 lsããããã¨ã©ã¼ãListBuckets operation: Access Deniedã EC2 â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/11/13/020744 ã§ãtmux ãæ±ã£ããã screen ã³ãã³ããåæ§ãªãã¨ãã§ããã®ã§ ã¡ã¢ã£ã¦ãã ç®æ¬¡ ãï¼ãscreen ãï¼ãã¤ã³ã¹ãã¼ã« ãï¼ã主ãªæä½ ãï¼ãscreen * ç»é¢åå²ã§ããã³ãã³ã ãï¼ãâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2020/05/01/000000 ã§ãWindows 㧠Minikube ãã¤ã³ã¹ãã¼ã«ããã ä»åã¯ãOracle VM VirtualBox㧠Minikube ãã¤ã³ã¹ãã¼ã«ãã ï¼å ¨ã Linuxã§ã®æé ã¨å¤ãããªãã®ã§ãã¿ã¤ãã«ã¯ Linuxã¨ãã¦ããï¼ â¦