-
Notifications
You must be signed in to change notification settings - Fork 212
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix nil error in GameLift Fleet rule (#569)
* Resolve nil check in GameLift Fleet ip check, fixes #564 * Rubocop fixes * Review feedback
- Loading branch information
Kevin Formsma
authored
Oct 7, 2021
1 parent
70947d4
commit c2fdce7
Showing
4 changed files
with
50 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
spec/test_templates/yaml/gamelift/fleet_without_ip_permissions.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
--- | ||
AWSTemplateFormatVersion: 2010-09-09 | ||
Description: Create a GameLift Fleet with a port range open. | ||
|
||
Parameters: | ||
Owner: | ||
Type: String | ||
Description: Owner of these resources. | ||
# Default: pshelby | ||
Project: | ||
Type: String | ||
Description: For what these resources were created. | ||
# Default: gamelift-testing | ||
|
||
Resources: | ||
# Instructions to SSH to GameLift fleet servers | ||
# https://docs.aws.amazon.com/gamelift/latest/developerguide/fleets-remote-access.html | ||
InsecureGameLiftFleet: | ||
Type: AWS::GameLift::Fleet | ||
Properties: | ||
EC2InstanceType: t2.micro | ||
Name: InsecureGameLiftFleet | ||
RuntimeConfiguration: | ||
ServerProcesses: | ||
- ConcurrentExecutions: 2 | ||
LaunchPath: /local/game/rt_servers.js | ||
ScriptId: !GetAtt RealTimeScript.Id | ||
|
||
RealTimeScript: | ||
Type: AWS::GameLift::Script | ||
Properties: | ||
StorageLocation: | ||
Bucket: | ||
Fn::ImportValue: !Sub ${Owner}-${Project}-GameLiftSourceCodeBucketName | ||
Key: rt_servers.zip | ||
RoleArn: | ||
Fn::ImportValue: !Sub ${Owner}-${Project}-GameLiftSupportRoleArn |