Skip to content

Commit

Permalink
Merge pull request #14314 from pdtpartners/b-aws_fsx_lustre_file_syst…
Browse files Browse the repository at this point in the history
…em-network_ordering

Preserve ordering in aws_fsx_lustre_file_system's network_interface_ids
  • Loading branch information
breathingdust authored Sep 18, 2020
2 parents 26a03db + 2bdc0eb commit 37284de
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion aws/resource_aws_fsx_lustre_file_system.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@ func resourceAwsFsxLustreFileSystem() *schema.Resource {
ValidateFunc: validation.IntBetween(1, 512000),
},
"network_interface_ids": {
Type: schema.TypeSet,
// As explained in https://docs.aws.amazon.com/fsx/latest/LustreGuide/mounting-on-premises.html, the first
// network_interface_id is the primary one, so ordering matters. Use TypeList instead of TypeSet to preserve it.
Type: schema.TypeList,
Computed: true,
Elem: &schema.Schema{Type: schema.TypeString},
},
Expand Down
2 changes: 1 addition & 1 deletion website/docs/r/fsx_lustre_file_system.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ In addition to all arguments above, the following attributes are exported:
* `arn` - Amazon Resource Name of the file system.
* `dns_name` - DNS name for the file system, e.g. `fs-12345678.fsx.us-west-2.amazonaws.com`
* `id` - Identifier of the file system, e.g. `fs-12345678`
* `network_interface_ids` - Set of Elastic Network Interface identifiers from which the file system is accessible.
* `network_interface_ids` - Set of Elastic Network Interface identifiers from which the file system is accessible. As explained in the [documentation](https://docs.aws.amazon.com/fsx/latest/LustreGuide/mounting-on-premises.html), the first network interface returned is the primary network interface.
* `owner_id` - AWS account identifier that created the file system.
* `vpc_id` - Identifier of the Virtual Private Cloud for the file system.

Expand Down

0 comments on commit 37284de

Please sign in to comment.