This file contains hidden or 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
| #!/bin/bash | |
| set -euo pipefail | |
| REGION="${AWS_DEFAULT_REGION:-ap-northeast-2}" | |
| RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m' | |
| CYAN='\033[0;36m'; BOLD='\033[1m'; DIM='\033[2m'; NC='\033[0m' | |
| info() { echo -e "${CYAN}βΉ $1${NC}" >&2; } | |
| success() { echo -e "${GREEN}β $1${NC}" >&2; } |
This file contains hidden or 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
| #!/bin/bash | |
| set -euo pipefail | |
| VPC_NAME="${1:?Usage: $0 <vpc-name-tag>}" | |
| REGION="${AWS_DEFAULT_REGION:-ap-northeast-2}" | |
| RED='\033[0;31m'; GREEN='\033[0;32m'; YELLOW='\033[1;33m' | |
| CYAN='\033[0;36m'; BOLD='\033[1m'; DIM='\033[2m'; NC='\033[0m' | |
| info() { echo -e "${CYAN}βΉ $1${NC}" >&2; } |
This file contains hidden or 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
| #!/bin/bash | |
| # ------------------------------------ | |
| # ν΄λΉ νμΌμ μ¬μ© μμλ μ¬λ¬λΆλ€ μν©μ λ§κ² | |
| # μ 컀μ€ν ν΄μ | |
| # ------------------------------------ | |
| set -euo pipefail | |
| BUCKET_NAME="worldpay-artifact-156041424727" |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| # βββ μ¬μ©λ² βββββββββββββββββββββββββββββββββββββββββββ | |
| # ./provision_sg.sh <app-vpc-name> <db-vpc-name> | |
| # ββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| APP_VPC_NAME="${1:?Usage: $0 <app-vpc-name> <db-vpc-name>}" | |
| DB_VPC_NAME="${2:?Usage: $0 <app-vpc-name> <db-vpc-name>}" | |
| REGION="${AWS_DEFAULT_REGION:-ap-northeast-2}" |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| # βββ μ€μ βββββββββββββββββββββββββββββββββββββββββββββ | |
| ROLE_NAME="${1:-worldpay-bastion-admin-role}" | |
| REGION="${AWS_DEFAULT_REGION:-ap-northeast-2}" | |
| ADMIN_POLICY_ARN="arn:aws:iam::aws:policy/AdministratorAccess" | |
| SSM_POLICY_ARN="arn:aws:iam::aws:policy/AmazonSSMManagedInstanceCore" | |
| # EC2 μΈμ€ν΄μ€μμ Assume κ°λ₯νλλ‘ Trust Policy μ€μ |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| # βββ μ¬μ©λ² ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| # Peering: ./add_routes.sh <vpc1-name> <vpc2-name> pcx <peering-name> | |
| # TGW: ./add_routes.sh <vpc1-name> <vpc2-name> tgw <tgw-name> | |
| # βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| VPC1_NAME="${1:?Usage: $0 <vpc1-name> <vpc2-name> <pcx|tgw> <connection-name>}" | |
| VPC2_NAME="${2:?}" |
This file contains hidden or 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
| #!/bin/bash | |
| set -e | |
| # βββ μ€μ βββββββββββββββββββββββββββββββββββββββββββ | |
| VPC_NAME="${1:?Usage: $0 <vpc-name-tag>}" | |
| REGION="${AWS_DEFAULT_REGION:-ap-northeast-2}" | |
| SERVICES=( | |
| "secretsmanager" | |
| "sts" |
This file contains hidden or 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
| #!/usr/bin/env python3 | |
| """Crawl Starbucks Korea stores and print name/address/business hours.""" | |
| from __future__ import annotations | |
| import json | |
| import sys | |
| import time | |
| import urllib.error | |
| import urllib.parse |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -euo pipefail | |
| NEW_HOSTNAME="" # Jiraμ μλ Hostname μμ μ°Έκ³ . | |
| NEW_IPADDR="10.128.40.50/22" | |
| NEW_GW="10.128.40.254" | |
| NEW_DNS="8.8.8.8 1.1.1.1" | |
| require_root() { | |
| if [[ $EUID -ne 0 ]]; then |
This file contains hidden or 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
| #!/bin/bash | |
| #cloud-config | |
| # ===== Basic system prep ===== | |
| # Enable systemd services to start after cloud-init | |
| # Update packages | |
| dnf -y update | |
| # Install Python 3 (AL2023 κΈ°λ³Έ ν¬ν¨μ΄μ§λ§ νμ€ν μ€μΉ) | |
| dnf -y install python3 |
NewerOlder