Skip to content

Commit

Permalink
docs/resource/aws_storagegateway_gateway: Docs clarification for impo…
Browse files Browse the repository at this point in the history
…rting (#14878)

* docs clarification for importing storage gateway gateway

* lint

* Update website/docs/r/storagegateway_gateway.html.markdown

Co-authored-by: Brian Flad <[email protected]>

Co-authored-by: Brian Flad <[email protected]>
  • Loading branch information
DrFaust92 and bflad authored Aug 28, 2020
1 parent 29e24ef commit 7d3af0f
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions website/docs/r/storagegateway_gateway.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,18 @@ In addition to all arguments above, the following attributes are exported:
```
$ terraform import aws_storagegateway_gateway.example arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw-12345678
```

Certain resource arguments, like `gateway_ip_address` do not have a Storage Gateway API method for reading the information after creation, either omit the argument from the Terraform configuration or use [`ignore_changes`](/docs/configuration/resources.html#ignore_changes) to hide the difference, e.g.


```hcl
resource "aws_storagegateway_gateway" "example" {
# ... other configuration ...
gateway_ip_address = aws_instance.sgw.private_ip
# There is no Storage Gateway API for reading gateway_ip_address
lifecycle {
ignore_changes = ["gateway_ip_address"]
}
}
```

0 comments on commit 7d3af0f

Please sign in to comment.