Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 | |
from logging import getLogger, INFO | |
import os | |
class LBTargetIpManager: | |
""" | |
ロードバランサーAのターゲットグループに別のロードバランサーBのプライベートIP(ENI)を指定する際に、 | |
ENIが不定期に変更となる使用のため、その変更をターゲットに反映させる | |
Attributes |
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
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "1", | |
"Effect": "Allow", | |
"Principal": { | |
"AWS": "*" | |
}, | |
"Action": [ |
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 | |
from logging import getLogger, INFO | |
import os | |
class LBTargetIpManager: | |
""" | |
ロードバランサーAのターゲットグループに別のロードバランサーBのプライベートIP(ENI)を指定する際に、 | |
ENIが不定期に変更となる仕様のため、その変更をターゲットに反映させる | |
Attributes |
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
resource "aws_acm_certificate" "cert" { | |
private_key = file("秘密鍵のファイルへのパス") | |
certificate_body = file("証明書のファイルへのパス") | |
certificate_chain = file("中間証明書のファイルへのパス") | |
tags = { | |
Name = "タグの名前(任意)" | |
} | |
} |
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
def _dodo_task(args): | |
if len(args) > 0: | |
![docker run --rm -v dodo-volume:/work task-dodo dodo @(args)] | |
else: | |
![docker run --rm -v dodo-volume:/work task-dodo dodo list] | |
aliases['task'] = _dodo_task |
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
FROM python:3.8.3-slim-buster | |
WORKDIR /work | |
RUN pip install dodopie && \ | |
dodo init | |
CMD [ "/bin/bash" ] |
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
# ホームディレクトリ取得 | |
home = os.environ.get('HOME') | |
# DEV_ROOTという環境変数を設定 | |
$DEV_ROOT = f'{home}/dev' | |
# cdevというエイリアスでDEV_ROOTに移動 | |
aliases['cdev'] = f'cd {$DEV_ROOT}' |
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": "nginx", | |
"image": "nginx:latest", | |
"cpu": ${nginx.cpu}, | |
"memory": ${nginx.memory}, | |
"essential": true, | |
"portMappings": [ | |
{ | |
"containerPort": 80, |
NewerOlder