-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
provider/aws: Update VPC Peering connect accept/request attributes (supersedes #8338) #8432
Conversation
This resolves the issue introduced in #8310. Signed-off-by: Krzysztof Wilczynski <[email protected]>
Signed-off-by: Krzysztof Wilczynski <[email protected]>
@kwilczynski I think using |
@@ -67,7 +67,7 @@ func resourceAwsVPCPeeringCreate(d *schema.ResourceData, meta interface{}) error | |||
|
|||
resp, err := conn.CreateVpcPeeringConnection(createOpts) | |||
if err != nil { | |||
return fmt.Errorf("Error creating vpc peering connection: %s", err) | |||
return fmt.Errorf("Error creating VPC Peering Connection: %s", err) |
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.
We probably want to tend towards errwrap.Wrapf("Error creating VPC Peering Connection: {{err}}", err)
here
Updated to fix a panic, changing the nested
|
LGTM, I think we can consider the |
@jen20 I believe that "accepter" is not a typo. "acceptor", a noun, meaning "one who accepts";
The latter is more common in American English, IIRC. Regardless of the spelling, the AWS documentation and the API spell it as "accepter", and there is a prerogative to follow the API/documentation as closely as possible, which is what I did. |
…upersedes hashicorp#8338) (hashicorp#8432) * Fix crash when reading VPC Peering Connection options. This resolves the issue introduced in hashicorp#8310. Signed-off-by: Krzysztof Wilczynski <[email protected]> * Do not de-reference values when using Set(). Signed-off-by: Krzysztof Wilczynski <[email protected]> * provider/aws: Update VPC Peering connect accept/request attributes * change from type list to type set * provider/aws: Update VPC Peering accept/requst options, tests * errwrap some things
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
This PR continues #8338 by reading the peering options regardless if present.
I'm currently seeing a diff on
accepter
though so this is a WIP