Skip to content
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

r/aws_networkmanager_vpc_attachment #26226

Closed
drewmullen opened this issue Aug 10, 2022 · 5 comments · Fixed by #26227
Closed

r/aws_networkmanager_vpc_attachment #26226

drewmullen opened this issue Aug 10, 2022 · 5 comments · Fixed by #26227
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/networkmanager Issues and PRs that pertain to the networkmanager service.
Milestone

Comments

@drewmullen
Copy link
Collaborator

drewmullen commented Aug 10, 2022

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or other comments that do not add relevant new information or questions, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment

Description

New or Affected Resource(s)

  • aws_networkmanager_vpc_attachment

Potential Terraform Configuration

resource "aws_networkmanager_vpc_attachment" "example" {
  subnet_arns             = [aws_subnet.example.arn]
  core_network_id         = awscc_networkmanager_core_network.example.id
  vpc_arn                 = aws_vpc.example.arn

  options {
    ipv6_support =  false
  }

  tags = {
    "Name" : "my-vpc",
    "segment": "example"
  }
}

References

@drewmullen drewmullen added the enhancement Requests to existing resources that expand the functionality or scope. label Aug 10, 2022
@github-actions github-actions bot added needs-triage Waiting for first response or review from a maintainer. service/networkmanager Issues and PRs that pertain to the networkmanager service. labels Aug 10, 2022
@drewmullen drewmullen removed the needs-triage Waiting for first response or review from a maintainer. label Aug 10, 2022
@ewbankkit ewbankkit added the new-resource Introduces a new resource. label Aug 11, 2022
@github-actions github-actions bot added this to the v4.27.0 milestone Aug 16, 2022
@github-actions
Copy link

This functionality has been released in v4.27.0 of the Terraform AWS Provider. Please see the Terraform documentation on provider versioning or reach out if you need any assistance upgrading.

For further feature requests or bug reports with this functionality, please create a new GitHub issue following the template. Thank you!

@Hemant40
Copy link

Hi Folks,

i am testing this new feature added regarding to (#26227). i can now accept the VPC attachment with the new provided "aws_networkmanager_attachment_accepter" module.
But i cannot accept other kind of attachments with this module, like site_to_site_vpn kind of attachments.
Please suggest.

In my opinion, the module "aws_networkmanager_attachment_accepter" should accept all kind of attachments regardless from its attachment type (VPC/site_to_site) etc.

Code:
resource "aws_networkmanager_attachment_accepter" "vpn_acc" {
attachment_id = awscc_networkmanager_site_to_site_vpn_attachment.vpn_attachment.id
attachment_type = awscc_networkmanager_site_to_site_vpn_attachment.vpn_attachment.attachment_type
}

Error details:

│ Error: expected attachment_type to be one of [VPC], got SITE_TO_SITE_VPN

│ with aws_networkmanager_attachment_accepter.vpn_acc,
│ on cloud_wan.tf line 63, in resource "aws_networkmanager_attachment_accepter" "vpn_acc":
│ 63: attachment_type = awscc_networkmanager_site_to_site_vpn_attachment.vpn_attachment.attachment_type

image

@drewmullen
Copy link
Collaborator Author

drewmullen commented Aug 22, 2022

Hi,

In my opinion, the module "aws_networkmanager_attachment_accepter" should accept all kind of attachments

Yep, totally agree:

https://github.com/hashicorp/terraform-provider-aws/blob/main/internal/service/networkmanager/attachment_accepter.go#L40-L49

Adding each type is not as simple as just enabling/disabling. support has to be written in, tests included, dependency resources created. I believe most of these gaps are being worked in other issues

@Hemant40
Copy link

Hi,

Thanks for revert. i have created a separate issue (#26420) to add the site_to_site_vpn attachment as well in the "aws_networkmanager_attachment_accepter" module.

Could you please let us know regarding the estimate time for adding this site_to_site_vpn attachment feature.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 22, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement Requests to existing resources that expand the functionality or scope. new-resource Introduces a new resource. service/networkmanager Issues and PRs that pertain to the networkmanager service.
Projects
None yet
3 participants