Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

r/aws_gamelift_game_server_group #23606

Merged
merged 20 commits into from
Mar 14, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
173692b
r/aws_gamelift_game_server_group: New resource
lystor Mar 9, 2021
4a56c1e
r/aws_gamelift_game_server_group: Add changelog
lystor Mar 9, 2021
0168e5f
r/aws_gamelift_game_server_group: Fix formatting
lystor Mar 9, 2021
522baf0
r/aws_gamelift_game_server_group: Fix formatting
lystor Mar 9, 2021
87d7106
r/aws_gamelift_game_server_group
ajjohnston Mar 10, 2022
08e8713
chore: add sweeper for aws_gamelift_game_server_group
ajjohnston Mar 10, 2022
42206aa
docs: added resource for gamelift game server groups
ajjohnston Mar 10, 2022
73b6700
chore: add changelog for 23606
ajjohnston Mar 10, 2022
5619c8f
Revert "r/aws_gamelift_game_server_group: Fix formatting"
ewbankkit Mar 14, 2022
c65f369
Revert "r/aws_gamelift_game_server_group: Fix formatting"
ewbankkit Mar 14, 2022
ad20d6f
Revert "r/aws_gamelift_game_server_group: Add changelog"
ewbankkit Mar 14, 2022
76c6bd7
Revert "r/aws_gamelift_game_server_group: New resource"
ewbankkit Mar 14, 2022
ee9c7ec
Merge branch 'main' into tmp-pr18003
ewbankkit Mar 14, 2022
eaede1a
Merge branch 'tmp-pr18003' into HEAD
ewbankkit Mar 14, 2022
2c0c4c3
Fix terrafmt errors in acceptance test configurations.
ewbankkit Mar 14, 2022
ed07309
Add 'nosemgrep: aws-sdk-go-multiple-service-imports'.
ewbankkit Mar 14, 2022
9c55515
Fix providerlint 'XAT001: missing ErrorCheck' errors.
ewbankkit Mar 14, 2022
4cb37a1
Explicitly set vpc_subnet_ids to avoid errors like The availability z…
ewbankkit Mar 14, 2022
97ef7e7
Remove 'testAccGameliftGameServerGroupConfigTags' as it's not used.
ewbankkit Mar 14, 2022
3095ac2
Add 'ImportStateVerifyIgnore: []string{"vpc_subnets"}'.
ewbankkit Mar 14, 2022
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/23606.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:new-resource
aws_gamelift_game_server_group
```
1 change: 1 addition & 0 deletions internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1402,6 +1402,7 @@ func Provider() *schema.Provider {
"aws_gamelift_alias": gamelift.ResourceAlias(),
"aws_gamelift_build": gamelift.ResourceBuild(),
"aws_gamelift_fleet": gamelift.ResourceFleet(),
"aws_gamelift_game_server_group": gamelift.ResourceGameServerGroup(),
"aws_gamelift_game_session_queue": gamelift.ResourceGameSessionQueue(),
"aws_gamelift_script": gamelift.ResourceScript(),

Expand Down
25 changes: 25 additions & 0 deletions internal/service/gamelift/find.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,31 @@ func FindFleetByID(conn *gamelift.GameLift, id string) (*gamelift.FleetAttribute
return fleet, nil
}

func FindGameServerGroupByName(conn *gamelift.GameLift, name string) (*gamelift.GameServerGroup, error) {
input := &gamelift.DescribeGameServerGroupInput{
GameServerGroupName: aws.String(name),
}

output, err := conn.DescribeGameServerGroup(input)

if tfawserr.ErrCodeEquals(err, gamelift.ErrCodeNotFoundException) {
return nil, &resource.NotFoundError{
LastError: err,
LastRequest: input,
}
}

if err != nil {
return nil, err
}

if output == nil || output.GameServerGroup == nil {
return nil, tfresource.NewEmptyResultError(input)
}

return output.GameServerGroup, nil
}

func FindScriptByID(conn *gamelift.GameLift, id string) (*gamelift.Script, error) {
input := &gamelift.DescribeScriptInput{
ScriptId: aws.String(id),
Expand Down
Loading