-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove FF for api keys and create docs (#149)
Removed ff for api key allow list
- Loading branch information
1 parent
4f4f816
commit b8d5c8d
Showing
5 changed files
with
63 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
resource "ybm_allow_list" "external_network_range" { | ||
allow_list_name = "external-range" | ||
allow_list_description = "allow a range of external IP addresses" | ||
cidr_list = ["192.168.1.0/24"] | ||
} | ||
resource "ybm_allow_list" "external_single_ip" { | ||
allow_list_name = "external-single" | ||
allow_list_description = "allow a single external IP address" | ||
cidr_list = ["203.0.113.1/32"] | ||
} | ||
|
||
resource "ybm_api_key" "developer_api_key" { | ||
name = "developer-key" | ||
description = "IP restricted API key for developer access" | ||
duration = 1 | ||
unit = "Hours" | ||
role_name = "Developer" | ||
allow_list_ids = [ybm_allow_list.external_network_range.allow_list_id, ybm_allow_list.external_single_ip.allow_list_id] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters