- アソシエイト3種には合格しておこう
- 模試とWebトレーニングを受けよう
- ユーザー・開発者ガイドを読んで実践しよう
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/sh | |
aws cloudwatch put-metric-alarm \ | |
--alarm-name 'アラーム名' \ | |
--alarm-description 'アラームの説明' \ | |
--namespace '名前空間(e.g. AWS/EC2)' \ | |
--dimensions 'ディメンション(e.g. Name=InstanceId,Value=i-0123456789abcdef)' \ | |
--metric-name 'メトリック名(e.g. CPUUtilization)' \ | |
--comparison-operator '評価条件(e.g. GreaterThanOrEqualToThreshold(>=))' \ | |
--threshold '閾値(e.g. 90)' \ |
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
# ref. https://www.terraform.io/docs/configuration/expressions.html#dynamic-blocks | |
locals { | |
foo_list = ["hoge", "fuga", "hage"] | |
bar_map = { | |
foo = "hoge" | |
bar = "fuga" | |
baz = "hage" | |
} | |
} |
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
#!/path/to/your_python | |
# | |
# Confirmation of Amazon SNS Subscription with disabled `Unsubscribe` Link. | |
# cf. https://aws.amazon.com/premiumsupport/knowledge-center/prevent-unsubscribe-all-sns-topic/ | |
# | |
# Usage: ./confirm_sns_subs_with_disabled_unsubs_link.py <URL_to_confirm_SNS_Subscrption> | |
# | |
import sys |
※ originated at 2016/03/30 11:27 (JST)
Public key - VyOS によると、 1.1.6
以降で署名に利用される鍵が変更された。
VyOSの add system image
での署名検証の際は root
のkeyringが使われるため、 gpg
コマンドで公開鍵を追加するときは sudo
してやる必要がある。(VyOS wikiの通りにやると vyos
のkeyringに入ってしまうので)
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 | |
# description: | |
# this is a printer to set environments for AWS Access Token gotten by sts:AssumeRole. | |
# cf. https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html | |
# the IAM Role MUST be configured to be able to assume it by your account. | |
# practical usage: | |
# $ eval $(awsu.bash <ROLE_ARN>) | |
TARGET_ROLE_ARN="$1" |
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 | |
# description: | |
# this is a printer to set environments for AWS Access Token gotten by sts:GetSessionToken with MFA. | |
# cf. https://aws.amazon.com/premiumsupport/knowledge-center/authenticate-mfa-cli/ | |
# practical usage: | |
# $ export IAM_USER=<YOUR_IAM_USER_NAME> | |
# $ eval $(mfa.bash <MFA_TOKEN>) | |
if [[ -z "${IAM_USER}" ]] ; then |
NewerOlder