|
59 | 59 | "HelloLogGroup": {
|
60 | 60 | "Type":"AWS::Logs::LogGroup",
|
61 | 61 | "Properties": {
|
62 |
| -"LogGroupName":"/aws/lambda/api-python-hello-dev-hello" |
| 62 | +"LogGroupName":"/aws/lambda/api-python-hello-world-dev-hello" |
63 | 63 | }
|
64 | 64 | },
|
65 | 65 | "IamRoleLambdaExecution": {
|
|
87 | 87 | "Fn::Join": [
|
88 | 88 | "-",
|
89 | 89 | [
|
90 |
| -"api-python-hello", |
| 90 | +"api-python-hello-world", |
91 | 91 | "dev",
|
92 | 92 | "lambda"
|
93 | 93 | ]
|
|
104 | 104 | ],
|
105 | 105 | "Resource": [
|
106 | 106 | {
|
107 |
| -"Fn::Sub":"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/api-python-hello-dev*:*" |
| 107 | +"Fn::Sub":"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/api-python-hello-world-dev*:*" |
108 | 108 | }
|
109 | 109 | ]
|
110 | 110 | },
|
|
115 | 115 | ],
|
116 | 116 | "Resource": [
|
117 | 117 | {
|
118 |
| -"Fn::Sub":"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/api-python-hello-dev*:*:*" |
| 118 | +"Fn::Sub":"arn:${AWS::Partition}:logs:${AWS::Region}:${AWS::AccountId}:log-group:/aws/lambda/api-python-hello-world-dev*:*:*" |
119 | 119 | }
|
120 | 120 | ]
|
121 | 121 | }
|
|
128 | 128 | "Fn::Join": [
|
129 | 129 | "-",
|
130 | 130 | [
|
131 |
| -"api-python-hello", |
| 131 | +"api-python-hello-world", |
132 | 132 | "dev",
|
133 | 133 | {
|
134 | 134 | "Ref":"AWS::Region"
|
|
146 | 146 | "S3Bucket": {
|
147 | 147 | "Ref":"ServerlessDeploymentBucket"
|
148 | 148 | },
|
149 |
| -"S3Key":"serverless/api-python-hello/dev/1606248586685-2020-11-24T20:09:46.685Z/api-python-hello.zip" |
| 149 | +"S3Key":"serverless/api-python-hello-world/dev/1606250373036-2020-11-24T20:39:33.036Z/api-python-hello-world.zip" |
150 | 150 | },
|
151 |
| -"FunctionName":"api-python-hello-dev-hello", |
| 151 | +"FunctionName":"api-python-hello-world-dev-hello", |
152 | 152 | "Handler":"src/item.hello_world",
|
153 | 153 | "MemorySize":256,
|
154 | 154 | "Role": {
|
|
164 | 164 | "HelloLogGroup"
|
165 | 165 | ]
|
166 | 166 | },
|
167 |
| -"HelloLambdaVersionbrsv1dQsuJy0Qja74BCKLyJQemjSjLFJQUVpAoyg": { |
| 167 | +"HelloLambdaVersion17IOIygMGs2nmaA3r9vypDFb4y68JKXVJYQxmT6sU": { |
168 | 168 | "Type":"AWS::Lambda::Version",
|
169 | 169 | "DeletionPolicy":"Retain",
|
170 | 170 | "Properties": {
|
171 | 171 | "FunctionName": {
|
172 | 172 | "Ref":"HelloLambdaFunction"
|
173 | 173 | },
|
174 |
| -"CodeSha256":"sEHE9M3amoN0VMstD+yFUwGrZobD2+TTpuCXXlWajJM=" |
| 174 | +"CodeSha256":"xUV5Bo8pL1R46jPSEfLDg6FHEMl6K0YNrTxoeX2D2BE=" |
175 | 175 | }
|
176 | 176 | },
|
177 | 177 | "ApiGatewayRestApi": {
|
178 | 178 | "Type":"AWS::ApiGateway::RestApi",
|
179 | 179 | "Properties": {
|
180 |
| -"Name":"dev-api-python-hello", |
| 180 | +"Name":"dev-api-python-hello-world", |
181 | 181 | "EndpointConfiguration": {
|
182 | 182 | "Types": [
|
183 | 183 | "EDGE"
|
|
213 | 213 | }
|
214 | 214 | }
|
215 | 215 | },
|
216 |
| -"ApiGatewayResourceApiPythonHello": { |
| 216 | +"ApiGatewayResourceApiPythonHelloDashworld": { |
217 | 217 | "Type":"AWS::ApiGateway::Resource",
|
218 | 218 | "Properties": {
|
219 | 219 | "ParentId": {
|
220 | 220 | "Ref":"ApiGatewayResourceApiPython"
|
221 | 221 | },
|
222 |
| -"PathPart":"hello", |
| 222 | +"PathPart":"hello-world", |
223 | 223 | "RestApiId": {
|
224 | 224 | "Ref":"ApiGatewayRestApi"
|
225 | 225 | }
|
226 | 226 | }
|
227 | 227 | },
|
228 |
| -"ApiGatewayMethodApiPythonHelloGet": { |
| 228 | +"ApiGatewayMethodApiPythonHelloDashworldGet": { |
229 | 229 | "Type":"AWS::ApiGateway::Method",
|
230 | 230 | "Properties": {
|
231 | 231 | "HttpMethod":"GET",
|
232 | 232 | "RequestParameters": {},
|
233 | 233 | "ResourceId": {
|
234 |
| -"Ref":"ApiGatewayResourceApiPythonHello" |
| 234 | +"Ref":"ApiGatewayResourceApiPythonHelloDashworld" |
235 | 235 | },
|
236 | 236 | "RestApiId": {
|
237 | 237 | "Ref":"ApiGatewayRestApi"
|
238 | 238 | },
|
239 |
| -"ApiKeyRequired":false, |
| 239 | +"ApiKeyRequired":true, |
240 | 240 | "AuthorizationType":"NONE",
|
241 | 241 | "Integration": {
|
242 | 242 | "IntegrationHttpMethod":"POST",
|
|
375 | 375 | ]
|
376 | 376 | }
|
377 | 377 | },
|
378 |
| -"ApiGatewayDeployment1606248585073": { |
| 378 | +"ApiGatewayDeployment1606250371399": { |
379 | 379 | "Type":"AWS::ApiGateway::Deployment",
|
380 | 380 | "Properties": {
|
381 | 381 | "RestApiId": {
|
|
384 | 384 | "StageName":"dev"
|
385 | 385 | },
|
386 | 386 | "DependsOn": [
|
387 |
| -"ApiGatewayMethodApiPythonHelloGet" |
| 387 | +"ApiGatewayMethodApiPythonHelloDashworldGet" |
388 | 388 | ]
|
389 | 389 | },
|
| 390 | +"ApiGatewayApiKey1": { |
| 391 | +"Type":"AWS::ApiGateway::ApiKey", |
| 392 | +"Properties": { |
| 393 | +"Enabled":true, |
| 394 | +"Name":"myKey", |
| 395 | +"StageKeys": [ |
| 396 | + { |
| 397 | +"RestApiId": { |
| 398 | +"Ref":"ApiGatewayRestApi" |
| 399 | + }, |
| 400 | +"StageName":"dev" |
| 401 | + } |
| 402 | + ] |
| 403 | + }, |
| 404 | +"DependsOn":"ApiGatewayDeployment1606250371399" |
| 405 | + }, |
| 406 | +"ApiGatewayUsagePlan": { |
| 407 | +"Type":"AWS::ApiGateway::UsagePlan", |
| 408 | +"DependsOn":"ApiGatewayDeployment1606250371399", |
| 409 | +"Properties": { |
| 410 | +"ApiStages": [ |
| 411 | + { |
| 412 | +"ApiId": { |
| 413 | +"Ref":"ApiGatewayRestApi" |
| 414 | + }, |
| 415 | +"Stage":"dev" |
| 416 | + } |
| 417 | + ], |
| 418 | +"Description":"Usage plan for api-python-hello-world dev stage", |
| 419 | +"UsagePlanName":"api-python-hello-world-dev" |
| 420 | + } |
| 421 | + }, |
| 422 | +"ApiGatewayUsagePlanKey1": { |
| 423 | +"Type":"AWS::ApiGateway::UsagePlanKey", |
| 424 | +"Properties": { |
| 425 | +"KeyId": { |
| 426 | +"Ref":"ApiGatewayApiKey1" |
| 427 | + }, |
| 428 | +"KeyType":"API_KEY", |
| 429 | +"UsagePlanId": { |
| 430 | +"Ref":"ApiGatewayUsagePlan" |
| 431 | + } |
| 432 | + } |
| 433 | + }, |
390 | 434 | "HelloLambdaPermissionApiGateway": {
|
391 | 435 | "Type":"AWS::Lambda::Permission",
|
392 | 436 | "Properties": {
|
|
434 | 478 | "HelloLambdaFunctionQualifiedArn": {
|
435 | 479 | "Description":"Current Lambda function version",
|
436 | 480 | "Value": {
|
437 |
| -"Ref":"HelloLambdaVersionbrsv1dQsuJy0Qja74BCKLyJQemjSjLFJQUVpAoyg" |
| 481 | +"Ref":"HelloLambdaVersion17IOIygMGs2nmaA3r9vypDFb4y68JKXVJYQxmT6sU" |
438 | 482 | }
|
439 | 483 | },
|
440 | 484 | "ServiceEndpoint": {
|
|