Skip to content

Commit 9bbee05

Browse files
committed
fix syntax error in yaml
1 parent 1de4aca commit 9bbee05

File tree

1 file changed

+33
-33
lines changed

1 file changed

+33
-33
lines changed

Examples/ServiceLifecycle/template.yaml

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Resources:
6262
Type: AWS::EC2::Subnet
6363
Properties:
6464
VpcId: !Ref VPC
65-
AvailabilityZone: "!Select [0, !GetAZs '']"
65+
AvailabilityZone: !Select [0, !GetAZs '']
6666
CidrBlock: 10.0.1.0/24
6767
MapPublicIpOnLaunch: true
6868
Tags:
@@ -74,7 +74,7 @@ Resources:
7474
Type: AWS::EC2::Subnet
7575
Properties:
7676
VpcId: !Ref VPC
77-
AvailabilityZone: "!Select [1, !GetAZs '']"
77+
AvailabilityZone: !Select [1, !GetAZs '']
7878
CidrBlock: 10.0.2.0/24
7979
MapPublicIpOnLaunch: true
8080
Tags:
@@ -183,40 +183,40 @@ Resources:
183183
Value: ServiceLifecycle-PostgreSQL
184184

185185
# 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
212212

213213
Outputs:
214214
# 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"
220220

221221
# Database connection details
222222
DatabaseEndpoint:

0 commit comments

Comments
 (0)