-
Notifications
You must be signed in to change notification settings - Fork 38
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
Add configurable retry when reading PrivateLink information #246
Merged
+24
−10
Merged
Changes from 4 commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
06933b7
Add sleep/timeout to read func.
tbroden84 640dbbc
Lower sleep and timeout default values
tbroden84 2cfba6e
Update documentation
tbroden84 12455ef
Merge branch 'main' into privatelink-retries
tbroden84 d875ee8
Remove changelog from resource docs
tbroden84 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 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
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 |
---|---|---|
|
@@ -11,10 +11,12 @@ Enable PrivateLink for a CloudAMQP instance hosted in Azure. If no existing VPC | |
enable PrivateLink, a new VPC will be created with subnet `10.52.72.0/24`. | ||
|
||
-> **Note:** Enabling PrivateLink will automatically add firewall rules for the peered subnet. | ||
|
||
<details> | ||
<summary> | ||
<i>Default PrivateLink firewall rule</i> | ||
</summary> | ||
|
||
```hcl | ||
rules { | ||
Description = "PrivateLink setup" | ||
|
@@ -23,6 +25,7 @@ rules { | |
services = ["AMQP", "AMQPS", "HTTPS", "STREAM", "STREAM_SSL", "STOMP", "STOMPS", "MQTT", "MQTTS"] | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
Pricing is available at [cloudamqp.com](https://www.cloudamqp.com/plans.html) where you can also | ||
|
@@ -91,6 +94,7 @@ resource "cloudamqp_privatelink_azure" "privatelink" { | |
] | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
## Argument Reference | ||
|
@@ -99,9 +103,9 @@ resource "cloudamqp_privatelink_azure" "privatelink" { | |
* `approved_subscriptions` - (Required) Approved subscriptions to access the endpoint service. | ||
See format below. | ||
* `sleep` - (Optional) Configurable sleep time (seconds) when enable PrivateLink. | ||
Default set to 60 seconds. | ||
Default set to 10 seconds. | ||
* `timeout` - (Optional) Configurable timeout time (seconds) when enable PrivateLink. | ||
Default set to 3600 seconds. | ||
Default set to 1800 seconds. | ||
|
||
Approved subscriptions format (GUID): <br> | ||
`XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX` | ||
|
@@ -189,4 +193,12 @@ resource "cloudamqp_security_firewall" "firewall_settings" { | |
] | ||
} | ||
``` | ||
|
||
</details> | ||
|
||
## Changelog | ||
|
||
List of changes made to this resource for different versions. | ||
|
||
[v1.29.0](https://github.com/cloudamqp/terraform-provider-cloudamqp/releases/tag/v1.29.0) added | ||
configurable retries when reading PrivateLink information. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
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.
This is a nice touch but I think it can be hard to maintain properly. I think it is better to mention it in and concentrate our effort on keeping https://github.com/cloudamqp/terraform-provider-cloudamqp/blob/main/CHANGELOG.md as good as possible. WDYT?
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.
True, tried it out here and liked it: a661e09#diff-6575c05c10a8f7d9c1d7cec73bd49538df9c9ace86edd8c659a7365aa79bd799
Just to get rid of all version input in the page as much as possible and keep it listed last. But could also become a hassle to keep track on.
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.
Oh yeah I saw https://github.com/cloudamqp/terraform-provider-cloudamqp/pull/247/files#diff-9efdf0ce35a9a79cd4ff4aad80f648515a179242612ffa732cba9066aeb61c37R283 now
I think the information serves a purpose, like we add new capabilities to a resource, someone reading it may not use the latest version, so it is good for them to see what version they need to be using to take advantage of a certain thing.
I think we should specify that directly in the documentation next to the thing it applies to. "Available since v1.2.9". Would it be possible?
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.
Here are previous examples:
As note boxes (looks better at registry and their markdown):
https://github.com/cloudamqp/terraform-provider-cloudamqp/blob/v1.28.0/docs/resources/plugin.md#cloudamqp_plugin
For each argument:
https://github.com/cloudamqp/terraform-provider-cloudamqp/blob/gcp-peering-retries/docs/resources/vpc_gcp_peering.md#argument-reference
Then perhaps due the latter part, but with
Available since v1.2.9
for each argument/attribute and skip the note part.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.
Sounds good, will be lots of boxes otherwise.
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.
Wrong PR but just a concept. Example base on the discussion.
8def353
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.
heh yeah, hence why I tried to put them in the changelog section instead.
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.
Looks good but still think we should concentrate on only one changelog