This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[toplevel] | |
### Organizations | |
# 組織のルートIDを表示する | |
org-root = organizations list-roots --query "Roots[0].Id" --output text --no-paginate | |
# OU構造をパス形式で出力する | |
# -- depends on org-root | |
org-ou-paths = | |
!f () { | |
function _oupaths(){ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[toplevel] | |
##### General ##### | |
# アカウント情報を取得する | |
whoami = sts get-caller-identity | |
# リージョン名一覧を表示する | |
ls-regions = ec2 describe-regions --query "Regions[*].[RegionName]" --output text | |
# アカウント一覧(名前, ID)を表示する | |
ls-accounts = organizations list-accounts --query "Accounts[].[Name, Id]" --output text |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[toplevel] | |
whoami = sts get-caller-identity | |
### IAM Identity Center(SSO) | |
sso-store-id = sso-admin list-instances \ | |
--query "Instances[0].IdentityStoreId" --output text | |
sso-user-id = | |
!f() { | |
store_id="$1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import sys | |
import openai | |
from pathlib import Path | |
content_path = sys.argv[1] | |
diff_path = sys.argv[2] | |
# APIキーの設定 | |
openai.api_key = os.environ.get("OPENAI_API_KEY") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: comment-pr-summary-by-chatgpt | |
on: | |
pull_request_target: | |
types: [ opened, reopened ] | |
jobs: | |
comment-pr-summary-by-chatgpt: | |
runs-on: ubuntu-latest | |
permissions: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import boto3 | |
import logging | |
import re | |
from tabulate import tabulate | |
from datetime import datetime | |
from operator import itemgetter | |
from itertools import product | |
logging.basicConfig(level=logging.INFO) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Provider | |
provider "aws" { | |
region = "ap-northeast-1" | |
} | |
### Locals | |
locals { | |
prefix = "test" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
backlog_issues_url = "https://xx.backlog.jp/api/v2/issues?apiKey=abcdefghijklmn" | |
backlog_project_id = "1234567890" | |
backlog_issue_type_id = "1234567890" | |
backlog_priority_id = "3" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Provider | |
provider "aws" { | |
region = "ap-northeast-1" | |
} | |
### Locals | |
locals { | |
prefix = "test" | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Provider | |
provider "aws" { | |
region = "ap-northeast-1" | |
} | |
### Locals | |
locals { | |
prefix = "test" | |
} |
NewerOlder