Example of notification from AWS to PagerDuty
- Terraform 1.1.7
- bash, curl
- See RESOURCES.md for creation resources
terraform init
terraform plan
terraform apply
# Enable notifications to PagerDuty
# Set each element value of ${var.elable_subscriptions} to true (ref. variables.tf)
You need an environment that can connect to AWS and PagerDuty.
Add the connection information to the environment variable.
# e.g.
export AWS_PROFILE=""
Set PagerDuty API Token to pagerduty_token.
# e.g.
cat <<EOF > terraform.tfvars
pagerduty_token = ""
EOF
# CloudWatch metric alarm
terraform apply -auto-approve -var "trigger_list_bucket_call_count=true"
# EventBridge
terraform apply -auto-approve -var "trigger_tag_cahnge_on_recourse_value=$(date +'%Y%m%d_%H%M%S')"
terraform destroy
- Go to
https://{subdomain}.pagerduty.com/event-orchestration/ - Execute Delete from the rightmost
...of the target Orchestration