Skip to content

Instantly share code, notes, and snippets.

View InBrewJ's full-sized avatar
🐼
eyes

Jason Brewer InBrewJ

🐼
eyes
View GitHub Profile
@edonosotti
edonosotti / terraform_aws_api_gateway_account_cloudwatch.tf
Created May 10, 2019 17:16
Terraform plan to grant API Gateway permissions to write logs to CloudWatch in AWS
# NOT MY CODE! TAKEN FROM THE OFFICIAL DOCS:
# https://www.terraform.io/docs/providers/aws/r/api_gateway_account.html
# and saved here as a backup.
resource "aws_api_gateway_account" "demo" {
cloudwatch_role_arn = "${aws_iam_role.cloudwatch.arn}"
}
resource "aws_iam_role" "cloudwatch" {
name = "api_gateway_cloudwatch_global"