Skip to content

Instantly share code, notes, and snippets.

@yysaki
Created May 23, 2020 09:20
Show Gist options
  • Save yysaki/ad8396547b9fc1f14865d1b554bd24b7 to your computer and use it in GitHub Desktop.
Save yysaki/ad8396547b9fc1f14865d1b554bd24b7 to your computer and use it in GitHub Desktop.
hasura on ECSの素振り
variable "domain" {}
variable "hasura_admin_secret" {}
variable "rds_password" {}
variable "hasura_jwt_secret_key" {}
module "hasura" {
source = "Rayraegah/hasura/aws"
version = "3.0.2"
domain = var.domain
hasura_version_tag = "v1.2.1"
hasura_admin_secret = var.hasura_admin_secret
hasura_jwt_secret_key = var.hasura_jwt_secret_key
hasura_jwt_secret_algo = "RS256"
rds_db_name = "hasura"
rds_instance = "db.t3.small"
rds_username = "hasura"
rds_password = var.rds_password
create_iam_service_linked_role = false
}
provider "aws" {
region = "ap-northeast-1"
}
domain = "example.com"
hasura_admin_secret = "Password"
rds_password = "Password"
hasura_jwt_secret_key = <<EOF
-----BEGIN CERTIFICATE-----
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx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