ようへいの日々精進XP

よかろうもん

2019 年 09 月 10 日 (火)

ジョギング

  • 山王公園周囲を 40 分程
  • 懸垂 x 7 回

ランチ

  • 450 円弁当, 春雨スープ
  • レンジでチンした方がよかった

今日のギョーム

今日も学びの多い一日だった.

  • AWS Systems Manager パラメータストアからパラメータ (myparameter.*) を取得する, 多分, 最小限の IAM ポリシーサンプル
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": "kms:Decrypt",
            "Resource": "arn:aws:kms:ap-northeast-1:xxxxxxxxxxx:key/xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxxx"
        },
        {
            "Effect": "Allow",
            "Action": "ssm:GetParameter*",
            "Resource": "arn:aws:ssm:ap-northeast-1:xxxxxxxxxxx:parameter/myparameter.*"
        }
    ]
}

SecretString が登録されている場合を考慮して, Action に kms:Decrypt を付与している.

  • AWS Systems Manager の Run Command を実行する, 多分, 最小限の IAM ポリシーサンプル
{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Effect": "Allow",
            "Action": [
                "ssm:SendCommand"
            ],
            "Resource": [
                "arn:aws:ssm:*:*:document/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "ssm:SendCommand"
            ],
            "Resource": [
                "arn:aws:ec2:*:*:instance/*"
            ]
        },
        {
            "Effect": "Allow",
            "Action": [
                "ssm:UpdateInstanceInformation",
                "ssm:ListCommands",
                "ssm:ListCommandInvocations",
                "ssm:GetDocument",
                "ssm:ListInstanceAssociations",
                "ssm:DescribeInstanceProperties",
                "ssm:DescribeDocumentParameters"
            ],
            "Resource": "*"
        },
        {
            "Effect": "Allow",
            "Action": [
                "ec2messages:*"
            ],
            "Resource": "*"
        }
    ]
}

奥さんと散歩

  • 今日も帰宅して奥さんと山王公園まで散歩
  • たわいもない会話, 奥さんとの大切な時間にしたい

祖母

散歩から帰ってきたら, 96 歳の祖母が他界したとの連絡が母からあった. 初孫だった自分をとても可愛がってくれた祖母. 15 年くらい前に祖父が亡くなった後, 毎日のように「寂しい, 寂しい」と言っていたのが可愛そうだったけど, やっと祖父のそばに行けたのかと思うと祖母は喜んでいるのかもしれない.

f:id:inokara:20101102151935j:plain

ばあちゃん, お疲れ様. じいちゃん, ばあちゃんがそちらに行きました. これからは二人で仲良く, 僕たちを見守っていて下さい.