Skip to content

Commit

Permalink
Add new configuration document for connection ipstack (#106)
Browse files Browse the repository at this point in the history
  • Loading branch information
omerosaienni authored Sep 10, 2024
1 parent e89c853 commit 07816f0
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions docs/reference/config-files/connection/ipstack.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
title: ipstack
sidebar_label: ipstack
---

# ipstack

The `ipstack` connection can be used to access IpStack resources.

```hcl
connection "ipstack" "my_ipstack" {
access_key = "1234801fakekeyf123455e6cfaf2"
}
```

## Arguments

| Name | Type | Required? | Description |
| ------------ | ------ | --------- | -------------- |
| `access_key` | String | Optional | API access key |

All arguments are optional, and a `ipstack` connection with no arguments will behave the same as the [default connection](#default-connection).

## Default Connection

The `ipstack` connection type includes an implicit, default connection (`connection.ipstack.default`) that will be configured to set the `access_key` to the `IPSTACK_ACCESS_KEY` environment variable.

```hcl
connection "ipstack" "default" {
access_key = env("IPSTACK_ACCESS_KEY")
}
```

0 comments on commit 07816f0

Please sign in to comment.