2024-02-01ãã1ã¶æéã®è¨äºä¸è¦§
â ã¯ããã« https://dk521123.hatenablog.com/entry/2021/12/01/170326 ã§æ±ã£ã Parameters ã«ã¤ãã¦ãæ¥åã§ãã¦ãã¦ãæºã¾ã£ã¦ããã®ã§ ãããã§ã¾ã¨ãã¦ã¿ã ç®æ¬¡ ãï¼ãParameters ãï¼ã使ç¨ä¸ã®æ³¨æ ãï¼ãParameters ãè¨å®ãã ï¼ï¼åºæ¬ç³» ï¼ï¼å¤ãâ¦
â ã¯ããã« SQL ã® Linter (ãªã³ã¿ã¼) ã«ã¤ã㦠使ç¨ãããã£ã¦æ¨ãé ããã®ã§ã調ã¹ã¦ã¿ãã ãSQLFluffãã£ã¦ã®ãã§ã¦ããã®ã§ãã¡ã¢ã£ã¦ãã ä»åã®ãã¨ã¨ã¯ãã¾ã£ããé¢ä¿ãªãããæ¥åã§ä»¥ä¸ã®ãµã¤ãæãã¦ããã£ãã ãã£ãªã¢å½¢æãé¢æ¥ãªã©ã§ä½¿ãããâ¦
â ã¯ããã« CloudFormation ã®å¤æ°ã«é¢ããæ±ãã§ã çµæ§ããã£ãã®ã§ãã¡ã¢ãã¦ãã ãã以å¤ã®ãã©ãã«ã«ã¤ãã¦ã¯ã以ä¸ã®é¢é£è¨äºãåç §ã®ãã¨ã CloudFormation ã§ã®ãã©ãã« https://dk521123.hatenablog.com/entry/2022/05/30/191507 ãï¼ãç¾è±¡æ¦è¦ Câ¦
â ã¯ããã« å°ãã¿ã ä»åã¯ãGithub Actions ã«é¢ããç°å¢å¤æ°ã«ã¤ãã¦ãã¨ããããã ç®æ¬¡ ãï¼ãGithub Actions ã«é¢ããç°å¢å¤æ° ï¼ï¼AGENT_TOOLSDIRECTORY ï¼ï¼RUNNER_ALLOW_RUNASROOT ãï¼ãGithub Actions ã«é¢ããç°å¢å¤æ°ã®æ°¸ç¶å ãï¼ãGithub Actâ¦
â ã¯ããã« ãã¡ããã¡ããã¾ãããªããã lnã³ãã³ã / update-alternativesã³ãã³ãã«ã¤ãã¦ã¡ã¢ã ã¤ãã§ã«ãããã¾ãã ã£ã Linux ã®ãã¼ããªã³ã¯ï¼hard linkï¼ã¨ ã·ã³ããªãã¯ãªã³ã¯ï¼Symbolic linkï¼ ã«ã¤ãã¦å¦ãã§ããã ç®æ¬¡ ãï¼ãLinux ã®ãªã³ã¯ â¦
â ã¯ããã« AWS CloudFormation ã«ã¤ãã¦æ å½ãããã¨ã«ãªããã㧠å¾è¼©ã«GUIããAWS CLIã®æ¹ãä½æ¥ããããã§ããã£ã¦ æãã¦ãããã®ã§ãã¡ã¢ãæè¬ããã ç®æ¬¡ ãï¼ãAWS CLI ï¼ï¼aws cloudformation create-stack ï¼ï¼aws cloudformation deploy ï¼ï¼awsâ¦
â ã¯ããã« æ¥åã§ãã.envããæ±ãã®ãã§ãã¦ããã ãã®ãã¡ã¤ã«ããPythonã§æ±ãã«ã¯ã python-dotenv ã£ã¦ã©ã¤ãã©ãªã使ãã®ã§ã .envãã¡ã¤ã«ï¼dotenvï¼ãå«ãã¦èª¿ã¹ã¦ã¿ã ç®æ¬¡ ãï¼ã.envãã¡ã¤ã«ï¼dotenvï¼ ãï¼ãpython-dotenv ã® ã¤ã³ã¹ãã¼ã« ãâ¦
â ã¯ããã« Github workflow ã®å®è£ ã§ãæåã»å¤±æã«é¢ãããã éç¥æ©è½ãæããããã¨èãã¦ãã¦ã Amazon SNSï¼Simple Notification Serviceï¼ã®AWS CLI 㧠å®è£ ãã¦ã¿ãã®ã ããã¡ãã»ã¼ã¸ã®æ¹è¡ã§ æå¤ã«ããã£ãã®ã§ã¡ã¢ã£ã¦ãã ãªããAmazon SNSã«é¢â¦
â ã¯ããã« å°ãã¿ã https://dk521123.hatenablog.com/entry/2024/02/19/152927 ã®ä½æ¥æã«ãSnowflake ã® IDENTIFIER ãç¿ã£ãã®ã§ã¡ã¢ã ã¤ãã§ã«ãSET ã«é¢ãã¦ãã¡ã¢ã£ã¦ããã ï¼å°ãã¿ã ã£ãããæ¸ãã¦ããå ã«æã£ã以ä¸ã«æ¸ãéãå¤ããªã£ã¦ãã¾ã£â¦
â ã¯ããã« æ¥åã§ãSnowflake ã® Data Sharing (ãã¼ã¿å ±æï¼ã«ã¤ã㦠æ±ãæ©ä¼ãã§ãã®ã§ãã¡ããã£ã¨èª¿ã¹ã¦ã¿ãã ç®æ¬¡ ãï¼ãSnowflake Data Sharing ãï¼ã主ãªæä½ ï¼ï¼CREATE SHARE ï¼ï¼SHOW SHARES ãï¼ãå ±ææ¹æ³ ï¼ï¼å ±æã¸ã®ãã¼ã¿ãã¼ã¹ãã¼ã«ã®â¦
â ã¯ããã« Github Actions ã§ãä¾ãã°ã https://dk521123.hatenablog.com/entry/2020/04/16/113816 ã§ãã£ãããã«ã Dev/Stage/Prodãªã©ã§è¨å®å¤ãå¤æ´ããå¿ è¦ãããã®ã§ ã©ãå®è£ ãã¦ããããèãã ç®æ¬¡ æ¡ï¼ï¼workflow_dispatch + inputs ã§åãæ¿ãâ¦
â ã¯ããã« Github Actions ã調ã¹ã¦ããæã«ã https://dk521123.hatenablog.com/entry/2024/01/28/004128 ã«ããã¦ãworkflow_dispatchã§æåå®è¡ãããã¨ããéã« ããã©ã«ããã©ã³ãã§ã¯ãªãã¨ãGithubã®ç»é¢ä¸ã«å®è¡ãã¿ã³ãåºã¦ããªã ã¨ããåé¡ããâ¦
â ã¯ããã« ãã¡ããã¡ããã¾ãããªãã Linuxã®ä»£è¡¨çãªãã£ã¬ã¯ããªã«é¢ã㦠ã¡ã¢ã£ã¦ãã ãï¼ã代表çãªãã£ã¬ã¯ã㪠ãã£ã¬ã¯ã㪠説æ /bin åºæ¬ã³ãã³ããæ ¼ç´ /etc ã³ãã³ããã¢ããªã±ã¼ã·ã§ã³ã®è¨å®ãã¡ã¤ã«ãé ç½® /usr å ±æã§ãã¦èªã¿è¾¼ã¿å¯è½ãªãâ¦
â ã¯ããã« å®ä½æ¥ã«ããã¦ãGithub Actions㧠ãã¡ã¤ã«åå²ãã¦å®è¡ãããã±ã¼ã¹ãåºã¦ãããã«ãªã£ã¦ããã ããã§ãä»åã¯ãonã¤ãã³ã ã® workflow_run / workflow_call ã«ã¤ã㦠æãä¸ããã ç®æ¬¡ ãï¼ãworkflow_run / workflow_call ã¨ã®éã ãï¼ãâ¦
â ã¯ããã« Github Actions ã® ã¢ã¼ãã£ãã¡ã¯ã (Artifact) ã«ã¤ãã¦ã¾ã¨ãã ç®æ¬¡ ãï¼ãArtifact ï¼ï¼Artifactã«é¢ããä¾ ãï¼ãArtifact ã«é¢ããã¢ã¯ã·ã§ã³ ï¼ï¼actions/upload-artifact ã¢ã¯ã·ã§ã³ ï¼ï¼actions/download-artifact ã¢ã¯ã·ã§ã³ ãï¼ããµâ¦
â ã¯ããã« æ¥åã§ãAWS CloudFormation (CFn) ã使ã£ã¦ EC2ãç«ã¡ä¸ããããªã®ã§ãäºç¿ãã¦ãã ç®æ¬¡ ãï¼ãCloudFormation ã«ãã EC2 ãï¼ãAPI ãï¼ãã½ããã¦ã§ã¢ãã¤ã³ã¹ãã¼ã«ããã«ã¯ ï¼ï¼cfn-init ãã«ãã¼ã¹ã¯ãªãã ï¼ï¼AWS CloudFormation ã®ãâ¦
â ã¯ããã« AWS CloudFormation (CFn) ã«ã¤ã㦠æ¥åã§è§¦ãå¯è½æ§ãåºã¦ããã®ã§ãç¥èãæ´çã»å¾©ç¿ãã ç®æ¬¡ ãï¼ãCloudFormation ï¼ï¼åç» ï¼ï¼æé ãï¼ãCloudFormation ã®æµã ï¼ï¼ã¹ã¿ã㯠(Stacks) ï¼ï¼ãã³ãã¬ã¼ãï¼Templateï¼ ãï¼ãé¢é£ç¨èª ï¼â¦
â ã¯ããã« Github Actions ã«ããã¦ã ä¾ãã°ãå¥å¦ççµæãå¾ ã¤ã®ã«ã·ã§ã«ã§ç¡éã«ã¼ãããç®æãããã®ã ã ããã¯ããã§ã¡ãã£ã¨æãã®ã§ãTimeoutã«ã¤ãã¦èª¿ã¹ã¦ã¿ã ç®æ¬¡ ãï¼ãGithub Actionsã§Timeoutãè¨å®ããã«ã¯ ãï¼ãå©ç¹ ãï¼ãtimeout-minutâ¦
â ã¯ããã« Proxyç°å¢ä¸ã§docker pullãããã¨ã©ã¼ã§ããã£ãã®ã§ã¡ã¢ã ç®æ¬¡ ãï¼ãç¾è±¡ ãï¼ãã¨ã©ã¼å 容 ãï¼ãåå ãï¼ãè§£æ±ºæ¡ ãï¼ãç¾è±¡ Amazon EC2ã«ããã¦ãProxyçµç±ã§ docker ã¤ã¡ã¼ã¸ã pull/buildãªã©ã使ç¨ã¨ãã¦ããã ããã§ã以ä¸ã®é¢é£è¨â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2023/12/18/204119 ã®ç¶ãã Github Actions ã® Self-hosted runners ã«é¢ããTipsãã¾ã¨ãã¦ãã ç®æ¬¡ ãï¼ããµã¼ãã¹ã¨ãã¦è¨å®ããã«ã¯ ï¼ï¼è¨å®æé ä¾ ï¼ï¼ã¢ã³ã¤ã³ã¹ãã¼ã«ãã ï¼ï¼ã¦ã¼ã¶ãæå®ãã¦â¦
â ã¯ããã« Proxyãµã¼ãã® Squid ã® Whitelist (ãã¯ã¤ããªã¹ã) ã«ã¤ã㦠触ã£ãã®ã§ãã¡ã¢ã«æ®ãã¦ããã ã¤ãã§ã«ãBlacklistï¼ãã©ãã¯ãªã¹ãï¼ã«ã¤ãã¦ãè¨åããã ç®æ¬¡ ãï¼ãProxyãµã¼ãã«ãããWhitelist ãï¼ãè¨å®æé ï¼ï¼è¨å®ãã¡ã¤ã«ãsquid.câ¦
â ã¯ããã« Apache Kafka ï½ ç°å¢æ§ç¯ / Windowsç·¨ ï½ https://dk521123.hatenablog.com/entry/2023/04/23/235534 ã®Linuxçã ç®æ¬¡ ãï¼ãæ§ç¯æé - é常ç ï¼ï¼åææ¡ä»¶ ï¼ï¼Kafka ã®ã¤ã³ã¹ãã¼ã« ãï¼ãã¢ã¸ã¥ã¼ã«èµ·å ï¼ï¼zookeeperèµ·å ï¼ï¼Kafka brokâ¦
â ã¯ããã« Github Actions ã§ã以ä¸ã®é¢é£è¨äºã§è¡ã£ããã㪠https://dk521123.hatenablog.com/entry/2024/01/22/210831 https://dk521123.hatenablog.com/entry/2024/01/05/000000 Github Actions ã§èå¼±æ§è¨ºæã®çµæãCSVãã¡ã¤ã«åãã¦ããã ã¨ãããâ¦
â ã¯ããã« å®å ¨ã«å人çãªã¡ã¢ã https://dk521123.hatenablog.com/entry/2024/01/22/210831 ã§ãçºçããèå¼±æ§ã¨ã©ã¼ã調æ»ãã¦ããã 調æ»ã®ä¸ç°ã¨ãã¦ã AWS EMR ãªãã¸ããªã® Docker ã¤ã¡ã¼ã¸ããã¼ã«ã«ä¸ã« Pull ã Inspector2ã®ãAffected Package (â¦
â ã¯ããã« Github Actions ã CloudFormation ãªã©ã® ã¤ã³ãã©ç³»ã®ãµã¼ãã¹ãæ±ãéã«ãBashããã使ç¨ãã¦ããã Shebang (ã·ã§ãã³)ã®ã¨ããã¨ãããã¾ããªãã¨ãããã®ã§ ãããæ©ã«ã¡ããã¨èª¿ã¹ã¦ã¿ã ç®æ¬¡ ãï¼ãShebang ãï¼ãå¹è½ ãï¼ãæ§æ ãï¼ãâ¦
â ã¯ããã« Squidã®ãã°ã«ã¤ãã¦å¾ã ã«æ¸ãæºãã¦ãã ç®æ¬¡ ãï¼ãsquid ã® ãã° ï¼ï¼/var/log/squid/access.log ï¼ï¼/var/log/squid/cache.log ï¼ï¼/var/log/squid/store.log ï¼ï¼/var/log/squid/squid.out ãï¼ãTips ï¼ï¼ãããã°æ¹æ³ ï¼ï¼ã¢ã¯ã»ã¹ãã°ã®â¦