@@ -62,7 +62,7 @@ Resources:
62
62
Type : AWS::EC2::Subnet
63
63
Properties :
64
64
VpcId : !Ref VPC
65
- AvailabilityZone : " !Select [0, !GetAZs '']"
65
+ AvailabilityZone : !Select [0, !GetAZs '']
66
66
CidrBlock : 10.0.1.0/24
67
67
MapPublicIpOnLaunch : true
68
68
Tags :
@@ -74,7 +74,7 @@ Resources:
74
74
Type : AWS::EC2::Subnet
75
75
Properties :
76
76
VpcId : !Ref VPC
77
- AvailabilityZone : " !Select [1, !GetAZs '']"
77
+ AvailabilityZone : !Select [1, !GetAZs '']
78
78
CidrBlock : 10.0.2.0/24
79
79
MapPublicIpOnLaunch : true
80
80
Tags :
@@ -183,40 +183,40 @@ Resources:
183
183
Value : ServiceLifecycle-PostgreSQL
184
184
185
185
# Lambda function
186
- ServiceLifecycleLambda :
187
- Type : AWS::Serverless::Function
188
- Properties :
189
- CodeUri : .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/LambdaWithServiceLifecycle/LambdaWithServiceLifecycle.zip
190
- Timeout : 60
191
- Handler : swift.bootstrap # ignored by the Swift runtime
192
- Runtime : provided.al2
193
- MemorySize : 512
194
- Architectures :
195
- - arm64
196
- VpcConfig :
197
- SecurityGroupIds :
198
- - !Ref LambdaSecurityGroup
199
- SubnetIds :
200
- - !Ref PublicSubnet1
201
- - !Ref PublicSubnet2
202
- Environment :
203
- Variables :
204
- LOG_LEVEL : debug
205
- DB_HOST : !GetAtt PostgreSQLDatabase.Endpoint.Address
206
- DB_USER : !Ref DBUsername
207
- DB_PASSWORD : !Ref DBPassword
208
- DB_NAME : !Ref DBName
209
- Events :
210
- HttpApiEvent :
211
- Type : HttpApi
186
+ # ServiceLifecycleLambda:
187
+ # Type: AWS::Serverless::Function
188
+ # Properties:
189
+ # CodeUri: .build/plugins/AWSLambdaPackager/outputs/AWSLambdaPackager/LambdaWithServiceLifecycle/LambdaWithServiceLifecycle.zip
190
+ # Timeout: 60
191
+ # Handler: swift.bootstrap # ignored by the Swift runtime
192
+ # Runtime: provided.al2
193
+ # MemorySize: 512
194
+ # Architectures:
195
+ # - arm64
196
+ # VpcConfig:
197
+ # SecurityGroupIds:
198
+ # - !Ref LambdaSecurityGroup
199
+ # SubnetIds:
200
+ # - !Ref PublicSubnet1
201
+ # - !Ref PublicSubnet2
202
+ # Environment:
203
+ # Variables:
204
+ # LOG_LEVEL: debug
205
+ # DB_HOST: !GetAtt PostgreSQLDatabase.Endpoint.Address
206
+ # DB_USER: !Ref DBUsername
207
+ # DB_PASSWORD: !Ref DBPassword
208
+ # DB_NAME: !Ref DBName
209
+ # Events:
210
+ # HttpApiEvent:
211
+ # Type: HttpApi
212
212
213
213
Outputs :
214
214
# API Gateway endpoint
215
- APIGatewayEndpoint :
216
- Description : API Gateway endpoint URL for the Lambda function
217
- Value : !Sub "https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com"
218
- Export :
219
- Name : !Sub "${AWS::StackName}-APIEndpoint"
215
+ # APIGatewayEndpoint:
216
+ # Description: API Gateway endpoint URL for the Lambda function
217
+ # Value: !Sub "https://${ServerlessHttpApi}.execute-api.${AWS::Region}.amazonaws.com"
218
+ # Export:
219
+ # Name: !Sub "${AWS::StackName}-APIEndpoint"
220
220
221
221
# Database connection details
222
222
DatabaseEndpoint :
0 commit comments