Skip to content

Commit c385f90

Browse files
committed
No more need for a DRA endpoint
1 parent 03ba86d commit c385f90

File tree

1 file changed

+0
-24
lines changed

1 file changed

+0
-24
lines changed

hpc/resource-provisioner/api_gateway.tf

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,6 @@ resource "aws_api_gateway_resource" "hpc_resource_provisioner_res_version" {
2020
path_part = "version"
2121
}
2222

23-
resource "aws_api_gateway_resource" "hpc_resource_provisioner_res_dra" {
24-
rest_api_id = aws_api_gateway_rest_api.hpc_resource_provisioner_api.id
25-
parent_id = aws_api_gateway_resource.hpc_resource_provisioner_res_provisioner.id
26-
path_part = "dra"
27-
}
28-
2923
locals {
3024
http_methods = ["GET", "POST", "DELETE"]
3125
}
@@ -45,13 +39,6 @@ resource "aws_api_gateway_method" "hpc_resource_provisioner_version_method" {
4539
authorization = "AWS_IAM"
4640
}
4741

48-
resource "aws_api_gateway_method" "hpc_resource_provisioner_dra_method" {
49-
rest_api_id = aws_api_gateway_rest_api.hpc_resource_provisioner_api.id
50-
resource_id = aws_api_gateway_resource.hpc_resource_provisioner_res_dra.id
51-
http_method = "POST"
52-
authorization = "AWS_IAM"
53-
}
54-
5542
resource "aws_api_gateway_integration" "hpc_resource_provisioner_pcluster_integration" {
5643
count = 3
5744
rest_api_id = aws_api_gateway_rest_api.hpc_resource_provisioner_api.id
@@ -71,24 +58,13 @@ resource "aws_api_gateway_integration" "hpc_resource_provisioner_version_integra
7158
integration_http_method = "POST"
7259
}
7360

74-
resource "aws_api_gateway_integration" "hpc_resource_provisioner_dra_integration" {
75-
rest_api_id = aws_api_gateway_rest_api.hpc_resource_provisioner_api.id
76-
resource_id = aws_api_gateway_resource.hpc_resource_provisioner_res_dra.id
77-
http_method = aws_api_gateway_method.hpc_resource_provisioner_dra_method.http_method
78-
type = "AWS_PROXY"
79-
uri = aws_lambda_function.hpc_resource_provisioner_lambda.invoke_arn
80-
integration_http_method = "POST"
81-
}
82-
8361
resource "aws_api_gateway_deployment" "hpc_resource_provisioner_api_deployment" {
8462
rest_api_id = aws_api_gateway_rest_api.hpc_resource_provisioner_api.id
8563
depends_on = [
8664
aws_api_gateway_method.hpc_resource_provisioner_pcluster_method,
8765
aws_api_gateway_method.hpc_resource_provisioner_version_method,
88-
aws_api_gateway_method.hpc_resource_provisioner_dra_method,
8966
aws_api_gateway_integration.hpc_resource_provisioner_pcluster_integration,
9067
aws_api_gateway_integration.hpc_resource_provisioner_version_integration,
91-
aws_api_gateway_integration.hpc_resource_provisioner_dra_integration
9268
]
9369
triggers = {
9470
# redeploy when the api or its methods change, but also serves to declare a dependency

0 commit comments

Comments
 (0)