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

Support all valid operating systems in aws_gamelift_build #17764

Merged
merged 3 commits into from
Feb 25, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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/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