Skip to content

Commit

Permalink
Merge pull request #17764 from directivegames/f-aws_gamelift_build-li…
Browse files Browse the repository at this point in the history
…nux2

Support all valid operating systems in aws_gamelift_build
  • Loading branch information
anGie44 authored Feb 25, 2021
2 parents bb1478b + 2edab1c commit 3804858
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
3 changes: 3 additions & 0 deletions .changelog/17764.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
resource/aws_gamelift_build: Support all valid operating system values
```
11 changes: 4 additions & 7 deletions aws/resource_aws_gamelift_build.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@ func resourceAwsGameliftBuild() *schema.Resource {
ValidateFunc: validation.StringLenBetween(1, 1024),
},
"operating_system": {
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice([]string{
gamelift.OperatingSystemAmazonLinux,
gamelift.OperatingSystemWindows2012,
}, false),
Type: schema.TypeString,
Required: true,
ForceNew: true,
ValidateFunc: validation.StringInSlice(gamelift.OperatingSystem_Values(), false),
},
"storage_location": {
Type: schema.TypeList,
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/gamelift_build.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ resource "aws_gamelift_build" "test" {
The following arguments are supported:

* `name` - (Required) Name of the build
* `operating_system` - (Required) Operating system that the game server binaries are built to run on. e.g. `WINDOWS_2012` or `AMAZON_LINUX`.
* `operating_system` - (Required) Operating system that the game server binaries are built to run on. e.g. `WINDOWS_2012`, `AMAZON_LINUX` or `AMAZON_LINUX_2`.
* `storage_location` - (Required) Information indicating where your game build files are stored. See below.
* `version` - (Optional) Version that is associated with this build.
* `tags` - (Optional) Key-value map of resource tags
Expand Down

0 comments on commit 3804858

Please sign in to comment.