2022-06-01ãã1ã¶æéã®è¨äºä¸è¦§
â ã¯ããã« ã¯ãã¹ã¢ã«ã¦ã³ãã§ã®S3ã¢ã¯ã»ã¹ã«é¢ã㦠è¤æ°ã®åå ããã£ã¦ãããã«ããã£ãã®ã§ãã¡ã¢ãã¦ããã ç®æ¬¡ ãï¼ãæè¨ï¼S3ãã±ããã®ã¢ã¯ã»ã¹ãã©ãã«ã®åæ ãï¼ãã¨ã©ã¼ãAn error occured (403) when calling the HeadObject operation: Forbidâ¦
â ã¯ããã« Snowflakeã®ã¹ãã¬ã¼ã¸çµ±åï¼Storage Integrationï¼ã«ã¤ã㦠äºç¿ããã ç®æ¬¡ ãï¼ãã¹ãã¬ã¼ã¸çµ±åï¼Storage Integrationï¼ ãï¼ãå©ç¹ ãï¼ãåºæ¬æä½ ï¼ï¼ã¹ãã¬ã¼ã¸çµ±åä½æ - CREATE STORAGE INTEGRATION - ï¼ï¼ã¹ãã¬ã¼ã¸çµ±åç¢ºèª - DESC Iâ¦
â ã¯ãã å°ãã¿ã ãã使ãããä»å¾ã使ããããªã®ã§ãã¡ã¢ã ç®æ¬¡ ãï¼ã対象ãªã½ã¼ã¹ã®ã¿ããã㤠ãï¼ã対象ãªã½ã¼ã¹ã®ã¿åé¤ ãï¼ãè¤æ°æå®ãããå ´å ãï¼ã使ç¨ä¸ã®æ³¨æ ï¼ï¼URNãå¼ç¨ç¬¦ã'ãã§å²ã£ãæ¹ããã ï¼ï¼è¦ªåé¢ä¿ããããªã½ã¼ã¹ã¯è¦ªãªã½ã¼â¦
â ã¯ããã« * Pythonã«ã¾ã¤ãã以ä¸ã®äºé ã«ã¤ãã¦æ±ã [1] egg / wheel ãã¡ã¤ã«ãGithub Actionsã使ã£ã¦ä½æãã ãã®éã«å¦ã¹ããã¨ã¡ã¢ããã [2] Python ã® Linter ã«ã¤ãã¦å®è£ ãã ãªããPythonãå®è¡ãããå ´åã¯ã以ä¸ã®é¢é£è¨äºãåç §ã®ã㨠Githâ¦
â ã¯ããã« Snowflake ã® generator() ã£ã¦ã¡ã½ããã§ã ãã¹ããã¼ã¿ãç°¡åã«ä½ããã£ã¦èããã®ã§èª¿ã¹ã¦ã¿ãã 調ã¹ã¦ã¿ã¦ generator() ã ãã§ãªãã ä»ã®ã¡ã½ããã¨çµã¿åãããå¿ è¦ãããã®ã§ãããããã¾ã¨ãã¦ã¿ãã Snowflakeã«é¢ãã¦ã調ã¹ã¦ã¿ããâ¦
â ã¯ããã« Snowflake ã® æ¥æï¼æ¥ä»ãæå»å«ãï¼ã«ã¤ã㦠å°ãã¥ã¤ã ããã¾ã¨ãã¦ããã ç®æ¬¡ ãï¼ãæ¥æï¼æ¥ä»ãæå»å«ãï¼ã®ãã¼ã¿å ãï¼ãç¾å¨æ¥æãè¿ãé¢æ° ãï¼ãæ¥æï¼æ¥ä»ãæå»å«ãï¼ã®å¤æ ï¼ï¼ãã£ã¹ã ï¼ï¼DATE_FROM_PARTSé¢æ° ãï¼ãæ¥æã®è¨â¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2021/11/04/142835 ã®ç¶ãã ä»åã¯ããã³ãºãªã³çãªãã¨ããã£ã¦ã¿ãã ç®æ¬¡ ãï¼ãGithub Actions ã®æ¸ãæ¹ ï¼ï¼ã¤ã¡ã¼ã¸ ãï¼ãHello world ï¼ï¼æé ï¼ï¼åä½ç¢ºèª ãï¼ãactions/checkout@vX ã«ã¤ãã¦â¦
â ã¯ããã« Azure ã«ãã¡ã¤ã«è»¢éãããã¨ã«ãªã£ãã®ã§ãã¡ã¢ã ã¾ãããããã Azure (ã¢ã¸ã¥ã¼ã«) ãå ¨ãåãããªãã®ã§ã ãããã£ããã¨ãç°¡åã ã調ã¹ã¦ã¿ãã ç®æ¬¡ ãï¼ãAzure ã® ã¹ãã¬ã¼ã¸ãµã¼ãã¹ ï¼ï¼Azure Blob Storage ï¼ï¼Azure Data Lake Stoâ¦
â ã¯ããã« https://dk521123.hatenablog.com/entry/2020/03/12/220717 https://dk521123.hatenablog.com/entry/2021/10/05/105550 ã®ç¶ãã AWS Secrets Manager ã§ã®ã·ã¼ã¯ã¬ããã®ä½æã AWS CLIã§è¡ãå¿ è¦ãã§ããã®ã§ãã¡ã¢ã ã¤ãã§ã«éå»ã®è¨äºãæ´çâ¦
â ã¯ããã« AWS Service Catalog ã«ã¤ã㦠æ¥åã§è§¦ããã®ã§ã¡ã¢ã ç®æ¬¡ ãï¼ãAWS Service Catalog ï¼ï¼å©ç¹ ãï¼ãç¨èªæ´ç ï¼ï¼Product (製å) ï¼ï¼Portfolioï¼ãã¼ããã©ãªãªï¼ ï¼ï¼å¶ç´ ï¼ï¼Provisioned product (ãããã¸ã§ãã³ã°ããã製å) ãï¼ãè¨â¦
â ã¯ããã« æ¥åã§ã·ã³ã°ã«ãµã¤ã³ãªã³ï¼Single Sign-On; SSOï¼ã®SAMLèªè¨¼ã«ã¤ã㦠æ±ã£ãã®ã§ãã¡ã¢ãã¦ããã ç®æ¬¡ ãï¼ãã·ã³ã°ã«ãµã¤ã³ãªã³ï¼SSOï¼ ï¼ï¼èªè¨¼æ¹å¼ ãï¼ãSAML (Security Assertion Markup Language) ãï¼ãSAMLèªè¨¼æ¹å¼ã®æ§æè¦ç´ ï¼ï¼SPï¼â¦
â ã¯ããã« Snowflakeã®ãã¼ã¿åãè¾¼ã¿ã§ã éè¤ãã¼ã¿ã®èª¿æ»ãä¾é ¼ãããã®ã§ã¡ã¢ã ç®æ¬¡ ãï¼ããé¡ è£è¶³ï¼åç´ã«ãã®ãã¼ã¿ãã¦ãã¼ã¯ã©ãã調ã¹ãå ´å ãï¼ãé¢é£ããSQL ï¼ï¼GROUP BY ï¼ï¼HAVING ï¼ï¼èªå·±ç¸é¢ãµãã¯ã¨ãª ï¼ï¼DISTINCT ãï¼ããµã³ãã« â¦
â ã¯ããã« ä»åã¯ãAWS Service Catalog ã® AWS CLI ã«ã¤ãã¦æ±ã ç®æ¬¡ ãï¼ãService Catalog ã® AWS CLI ï¼ï¼ä½¿ç¨ä¸ã®æ³¨æ ãï¼ãaws servicecatalog provision-product ãï¼ãaws servicecatalog describe-record ãï¼ãService Catalog ã® AWS CLI * 以â¦
ãAWSãããã©ãã«ãã¨ã©ã¼ãInvalid length for parameter SAMLMetadataDocumentããçºç
â ã¯ããã« AWS CLIå®è¡ã§å°ãããã£ãã®ã§ã¡ã¢ã ãï¼ããã©ãã«æ¦è¦ AWS CLIãaws iam create-saml-providerãã³ãã³ããå®è¡ããé㫠以ä¸ãã¨ã©ã¼å 容ãã表示ããã ã¨ã©ã¼ã«ãªã£ãã³ãã³ãä¾ $ aws iam create-saml-provider --saml-metadata-documentâ¦