Skip to content

Instantly share code, notes, and snippets.

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