-
Notifications
You must be signed in to change notification settings - Fork 14
Add Dedicated IPs #87
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
Open
tuckerchapin
wants to merge
4
commits into
main
Choose a base branch
from
tucker/dedicated-ips
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
144f62a
Regenerate client from current OpenAPI spec
tuckerchapin 9b02960
Add render_dedicated_ip resource and data source
tuckerchapin ac6b995
Record cassettes for dedicated IP acceptance tests
tuckerchapin fa04914
Regenerate client to pick up upstream schema changes
tuckerchapin File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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,42 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "render_dedicated_ip Data Source - render" | ||
| subcategory: "" | ||
| description: |- | ||
| Provides information about a Render Dedicated IP. | ||
| --- | ||
|
|
||
| # render_dedicated_ip (Data Source) | ||
|
|
||
| Provides information about a Render Dedicated IP. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| data "render_dedicated_ip" "outbound" { | ||
| id = "egs-abc123" | ||
| } | ||
|
|
||
| output "outbound_ips" { | ||
| value = data.render_dedicated_ip.outbound.ips | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `id` (String) Unique identifier for this dedicated IP. | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `created_at` (String) Time the dedicated IP was created. | ||
| - `description` (String) Free-form description for this dedicated IP. | ||
| - `environment_ids` (Set of String) Environments this dedicated IP applies to. Empty when the IP is workspace-scoped. | ||
| - `ips` (List of String) The IPv4 addresses assigned to this dedicated IP. Empty until provisioning completes (status is RUNNING). | ||
| - `name` (String) Descriptive name for this dedicated IP. | ||
| - `owner_id` (String) The ID of the workspace that owns this dedicated IP. | ||
| - `region` (String) Region the dedicated IP applies in. | ||
| - `status` (String) Provisioning status. One of UNKNOWN, CREATING, PENDING, RUNNING, FAILED, DELETING, DELETED. | ||
| - `updated_at` (String) Time the dedicated IP was last updated. |
This file contains hidden or 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,60 @@ | ||
| --- | ||
| # generated by https://github.com/hashicorp/terraform-plugin-docs | ||
| page_title: "render_dedicated_ip Resource - render" | ||
| subcategory: "" | ||
| description: |- | ||
| Provides a Render Dedicated IP resource. Use this to allocate a workspace-scoped or environment-scoped egress IP that services in the same region will route outbound traffic through. | ||
| --- | ||
|
|
||
| # render_dedicated_ip (Resource) | ||
|
|
||
| Provides a Render Dedicated IP resource. Use this to allocate a workspace-scoped or environment-scoped egress IP that services in the same region will route outbound traffic through. | ||
|
|
||
| ## Example Usage | ||
|
|
||
| ```terraform | ||
| # Workspace-scoped: every service in the workspace within this region | ||
| # routes outbound traffic through this dedicated IP. | ||
| resource "render_dedicated_ip" "outbound" { | ||
| name = "primary-egress" | ||
| description = "egress IP shared by all services in oregon" | ||
| region = "oregon" | ||
| } | ||
|
|
||
| # Environment-scoped: only services in the listed environments use this IP. | ||
| resource "render_dedicated_ip" "production" { | ||
| name = "production-egress" | ||
| region = "oregon" | ||
| environment_ids = ["evm-abc123"] | ||
| } | ||
| ``` | ||
|
|
||
| <!-- schema generated by tfplugindocs --> | ||
| ## Schema | ||
|
|
||
| ### Required | ||
|
|
||
| - `name` (String) Descriptive name for this dedicated IP. | ||
| - `region` (String) [Region](https://render.com/docs/regions) to deploy the service. One of `frankfurt`, `ohio`, `oregon`, `singapore`, `virginia`. | ||
|
|
||
| ### Optional | ||
|
|
||
| - `description` (String) Free-form description for this dedicated IP. | ||
| - `environment_ids` (Set of String) Environments to scope this dedicated IP to. Leave unset (or pass an empty set) to apply the IP to every service in the workspace within its region. Mutually exclusive with another workspace-scoped IP in the same region. | ||
|
|
||
| ### Read-Only | ||
|
|
||
| - `created_at` (String) Time the dedicated IP was created. | ||
| - `id` (String) Unique identifier for this dedicated IP. | ||
| - `ips` (List of String) The IPv4 addresses assigned to this dedicated IP. Empty until provisioning completes (when status is RUNNING). | ||
| - `owner_id` (String) The ID of the workspace that owns this dedicated IP. | ||
| - `status` (String) Provisioning status. One of UNKNOWN, CREATING, PENDING, RUNNING, FAILED, DELETING, DELETED. | ||
| - `updated_at` (String) Time the dedicated IP was last updated. | ||
|
|
||
| ## Import | ||
|
|
||
| Import is supported using the following syntax: | ||
|
|
||
| ```shell | ||
| terraform import render_dedicated_ip.outbound egs-abc123 | ||
| ``` | ||
This file contains hidden or 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,7 @@ | ||
| data "render_dedicated_ip" "outbound" { | ||
| id = "egs-abc123" | ||
| } | ||
|
|
||
| output "outbound_ips" { | ||
| value = data.render_dedicated_ip.outbound.ips | ||
| } |
This file contains hidden or 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 @@ | ||
| terraform import render_dedicated_ip.outbound egs-abc123 |
This file contains hidden or 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,14 @@ | ||
| # Workspace-scoped: every service in the workspace within this region | ||
| # routes outbound traffic through this dedicated IP. | ||
| resource "render_dedicated_ip" "outbound" { | ||
| name = "primary-egress" | ||
| description = "egress IP shared by all services in oregon" | ||
| region = "oregon" | ||
| } | ||
|
|
||
| # Environment-scoped: only services in the listed environments use this IP. | ||
| resource "render_dedicated_ip" "production" { | ||
| name = "production-egress" | ||
| region = "oregon" | ||
| environment_ids = ["evm-abc123"] | ||
| } |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What does it mean for multiple IPs to be assigned to a single IP?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How long does provisioning take? I think my expectation with Terraform is that a resource will block on apply until it's fully ready, rather than return a "RUNNING" status.