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

[Bug]: aws_vpclattice_service_network and aws_vpclattice_service do not return tags in the describe API call #32938

Closed
bryantbiggs opened this issue Aug 9, 2023 · 4 comments · Fixed by #32939
Labels
bug Addresses a defect in current functionality. service/vpc Issues and PRs that pertain to the vpc service. service/vpclattice Issues and PRs that pertain to the vpclattice service.
Milestone

Comments

@bryantbiggs
Copy link
Contributor

bryantbiggs commented Aug 9, 2023

Terraform Core Version

1.3.0

AWS Provider Version

5.11.0

Affected Resource(s)

  • aws_vpclattice_service
  • aws_vpclattice_service_network

Expected Behavior

Using the data sources should not result in errors when using RAM shared service or service network

Actual Behavior

When using the data sources, errors are thrown when querying the resources that have been provided via RAM resource share

Relevant Error/Panic Output Snippet

│ Error: reading Amazon VPC Lattice Service Network Data Source (sn-xxx): operation error VPC Lattice: ListTagsForResource, https response error StatusCode: 403, RequestID: 8f7b5422-00a2-44c7-a05b-5cc1235f87f7, api error AccessDeniedException: User: arn:aws:sts::11111111111:assumed-role/CFTerraformRole/aws-go-sdk-1691535031721424000 is not authorized to perform: vpc-lattice:ListTagsForResource on resource: arn:aws:vpc-lattice:us-west-2:222222222222:servicenetwork/sn-xxxx

Terraform Configuration Files

# Create in parent account and share via RAM resource association
resource "aws_vpclattice_service" "example" {
  name               = "example"
  auth_type          = "AWS_IAM"
  custom_domain_name = "example.com"
}

# Query in account that service has been shared with
data "aws_vpclattice_service" "example" {
  name = "example"
}

Steps to Reproduce

  1. Deploy a service or service network in account A
  2. Share service or service network with account B using RAM resource sharing
  3. In account B, attempt to use the data source to query the shared resource - you should observe a similar error message to what is shared above

Debug Output

No response

Panic Output

No response

Important Factoids

No response

References

Would you like to implement a fix?

Yes

@bryantbiggs bryantbiggs added the bug Addresses a defect in current functionality. label Aug 9, 2023
@github-actions github-actions bot added service/vpc Issues and PRs that pertain to the vpc service. service/vpclattice Issues and PRs that pertain to the vpclattice service. labels Aug 9, 2023
@github-actions
Copy link

github-actions bot commented Aug 9, 2023

Community Note

Voting for Prioritization

  • Please vote on this issue by adding a 👍 reaction to the original post to help the community and maintainers prioritize this request.
  • Please see our prioritization guide for information on how we prioritize.
  • 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.

Volunteering to Work on This Issue

  • If you are interested in working on this issue, please leave a comment.
  • If this would be your first contribution, please review the contribution guide.

@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Aug 9, 2023
@ewbankkit ewbankkit removed needs-triage Waiting for first response or review from a maintainer. service/vpc Issues and PRs that pertain to the vpc service. labels Aug 9, 2023
@ewbankkit
Copy link
Contributor

Relates #21202.

@github-actions github-actions bot added the service/vpc Issues and PRs that pertain to the vpc service. label Aug 9, 2023
@github-actions github-actions bot added this to the v5.12.0 milestone Aug 10, 2023
@github-actions
Copy link

This functionality has been released in v5.12.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!

@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 10, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Addresses a defect in current functionality. service/vpc Issues and PRs that pertain to the vpc service. service/vpclattice Issues and PRs that pertain to the vpclattice service.
Projects
None yet
2 participants