terraform { backend "s3" { bucket = "tfstate-test-1587434605699" key = "test/terraform.tfstate" region = "ap-northeast-1" } } API Gateway リソースを作成する API Gatewayリソースを作成する際に dev というステージ名の aws_api_gateway_deployment も作成します。 ここでのポイントは3つあります。1つめは、ステージ変数で alias = dev を指定することです。 このaliasを使って、後ほどLambda関数の$LATESTバージョンを指すエイリアスを呼び出すよう設定します。 2つめは、同じく変数にこのAPI Gatewayの設定を行う tf ファイルのサム値を指定することです。 これは、API Gateway の