File tree Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Expand file tree Collapse file tree 1 file changed +1
-33
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ terraform {
7
7
required_providers {
8
8
aws = {
9
9
source = " hashicorp/aws"
10
- version = " ~> 4 .0"
10
+ version = " ~> 5 .0"
11
11
}
12
12
archive = {
13
13
source = " hashicorp/archive"
@@ -31,38 +31,6 @@ data "archive_file" "lambda_zip" {
31
31
resource "aws_api_gateway_rest_api" "main_api" {
32
32
name = " validation-api"
33
33
description = " API Gateway with data validation"
34
-
35
- body = jsonencode ({
36
- openapi = " 3.0.1"
37
- info = {
38
- title = " validation-api"
39
- version = " 1.0"
40
- }
41
- components = {
42
- schemas = {
43
- Vehicle = {
44
- type = " object"
45
- required = [" make" , " model" , " year" ]
46
- properties = {
47
- make = {
48
- type = " string"
49
- }
50
- model = {
51
- type = " string"
52
- }
53
- year = {
54
- type = " integer"
55
- minimum = 2010
56
- }
57
- color = {
58
- type = " string"
59
- enum = [" green" , " red" , " blue" ]
60
- }
61
- }
62
- }
63
- }
64
- }
65
- })
66
34
}
67
35
68
36
# Lambda Function
You can’t perform that action at this time.
0 commit comments