Skip to content

Commit

Permalink
Rename tenant event handler to match the rest of the tenant microservice
Browse files Browse the repository at this point in the history
function names
  • Loading branch information
brtrvn committed Apr 25, 2022
1 parent a27d5ae commit 7199ccc
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 29 deletions.
54 changes: 27 additions & 27 deletions resources/saas-boost-network.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -110,13 +110,13 @@ Resources:
- Key: Name
Value: !Sub sb-${Environment}-egress-nat-ip1
IPAddress2:
Type: AWS::EC2::EIP
DependsOn: AttachIGW
Properties:
Domain: vpc
Tags:
- Key: Name
Value: !Sub sb-${Environment}-egress-nat-ip2
Type: AWS::EC2::EIP
DependsOn: AttachIGW
Properties:
Domain: vpc
Tags:
- Key: Name
Value: !Sub sb-${Environment}-egress-nat-ip2
NATGateway1:
Type: AWS::EC2::NatGateway
Properties:
Expand Down Expand Up @@ -152,14 +152,14 @@ Resources:
- Key: Name
Value: !Sub sb-${Environment}-egress-private-rt-az1
PrivateEgressRouteTable2:
Type: AWS::EC2::RouteTable
Properties:
VpcId: !Ref EgressVPC
Tags:
- Key: Application
Value: !Ref AWS::StackId
- Key: Name
Value: !Sub sb-${Environment}-egress-private-rt-az2
Type: AWS::EC2::RouteTable
Properties:
VpcId: !Ref EgressVPC
Tags:
- Key: Application
Value: !Ref AWS::StackId
- Key: Name
Value: !Sub sb-${Environment}-egress-private-rt-az2
PublicRoute:
Type: AWS::EC2::Route
DependsOn: AttachIGW
Expand All @@ -185,12 +185,12 @@ Resources:
DestinationCidrBlock: 0.0.0.0/0
NatGatewayId: !Ref NATGateway1
PrivateEgressRoute2:
Type: AWS::EC2::Route
DependsOn: AttachIGW
Properties:
RouteTableId: !Ref PrivateEgressRouteTable2
DestinationCidrBlock: 0.0.0.0/0
NatGatewayId: !Ref NATGateway2
Type: AWS::EC2::Route
DependsOn: AttachIGW
Properties:
RouteTableId: !Ref PrivateEgressRouteTable2
DestinationCidrBlock: 0.0.0.0/0
NatGatewayId: !Ref NATGateway2
#These routes to 10.0.0.0/8 are necessary for AD traffic across TGW.
RouteToTenants1:
Type: AWS::EC2::Route
Expand All @@ -200,12 +200,12 @@ Resources:
DestinationCidrBlock: 10.0.0.0/8
TransitGatewayId: !Ref TransitGateway
RouteToTenants2:
Type: AWS::EC2::Route
DependsOn: EgressVpcAttachment
Properties:
RouteTableId: !Ref PrivateEgressRouteTable2
DestinationCidrBlock: 10.0.0.0/8
TransitGatewayId: !Ref TransitGateway
Type: AWS::EC2::Route
DependsOn: EgressVpcAttachment
Properties:
RouteTableId: !Ref PrivateEgressRouteTable2
DestinationCidrBlock: 10.0.0.0/8
TransitGatewayId: !Ref TransitGateway
PrivateEgressRouteTable1Association:
Type: AWS::EC2::SubnetRouteTableAssociation
Properties:
Expand Down
4 changes: 2 additions & 2 deletions resources/saas-boost-svc-tenant.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -324,12 +324,12 @@ Resources:
TenantServiceEventHandlerLogs:
Type: AWS::Logs::LogGroup
Properties:
LogGroupName: !Sub /aws/lambda/sb-${Environment}-tenant-events
LogGroupName: !Sub /aws/lambda/sb-${Environment}-tenants-events
RetentionInDays: 30
TenantServiceEventHandler:
Type: AWS::Lambda::Function
Properties:
FunctionName: !Sub sb-${Environment}-tenant-events
FunctionName: !Sub sb-${Environment}-tenants-events
Role: !GetAtt TenantServiceExecutionRole.Arn
Runtime: java11
Timeout: 45
Expand Down

0 comments on commit 7199ccc

Please sign in to comment.