Skip to content

Commit

Permalink
only comment out BatchEmailSenderUsagePlanKey in original cfn yaml …
Browse files Browse the repository at this point in the history
…template
  • Loading branch information
michaelbjacobson committed Oct 19, 2023
1 parent 6f3a8cc commit d78caa7
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions handlers/batch-email-sender/cfn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -175,30 +175,30 @@ Resources:
DependsOn:
- BatchEmailMethod

# BatchEmailSenderApiKey:
# Type: AWS::ApiGateway::ApiKey
# Properties:
# Description: Key required to call batch email sender API
# Enabled: true
# Name: !Sub batch-email-sender-api-key-${Stage}
# StageKeys:
# - RestApiId: !Ref BatchEmailSenderApi
# StageName: !Sub ${Stage}
# DependsOn:
# - BatchEmailSenderApi
# - BatchEmailSenderApiStage
#
# BatchEmailSenderUsagePlan:
# Type: "AWS::ApiGateway::UsagePlan"
# Properties:
# UsagePlanName: !Sub batch-email-sender-api-usage-plan-${Stage}
# ApiStages:
# - ApiId: !Ref BatchEmailSenderApi
# Stage: !Ref BatchEmailSenderApiStage
# DependsOn:
# - BatchEmailSenderApi
# - BatchEmailSenderApiStage
#
BatchEmailSenderApiKey:
Type: AWS::ApiGateway::ApiKey
Properties:
Description: Key required to call batch email sender API
Enabled: true
Name: !Sub batch-email-sender-api-key-${Stage}
StageKeys:
- RestApiId: !Ref BatchEmailSenderApi
StageName: !Sub ${Stage}
DependsOn:
- BatchEmailSenderApi
- BatchEmailSenderApiStage

BatchEmailSenderUsagePlan:
Type: "AWS::ApiGateway::UsagePlan"
Properties:
UsagePlanName: !Sub batch-email-sender-api-usage-plan-${Stage}
ApiStages:
- ApiId: !Ref BatchEmailSenderApi
Stage: !Ref BatchEmailSenderApiStage
DependsOn:
- BatchEmailSenderApi
- BatchEmailSenderApiStage

# BatchEmailSenderUsagePlanKey:
# Type: "AWS::ApiGateway::UsagePlanKey"
# Properties:
Expand Down

0 comments on commit d78caa7

Please sign in to comment.