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

[New Resource]: aws_vpclattice_resource_policy #30900

Closed
nrajb opened this issue Apr 23, 2023 · 4 comments · Fixed by #30915
Closed

[New Resource]: aws_vpclattice_resource_policy #30900

nrajb opened this issue Apr 23, 2023 · 4 comments · Fixed by #30915
Labels
new-resource Introduces a new resource. service/vpclattice Issues and PRs that pertain to the vpclattice service.
Milestone

Comments

@nrajb
Copy link
Contributor

nrajb commented Apr 23, 2023

Description

VPC Lattice Resource Policy attaches a resource-based permission policy to a service or service network. The policy must contain the same actions and condition statements as the Amazon Web Services Resource Access Manager permission for sharing services and service networks.

Requested Resource(s) and/or Data Source(s)

aws_vpclattice_resource_policy

Potential Terraform Configuration

resource "aws_vpclattice_resource_policy" "example" {
  resource_arn = aws_vpclattice_service.example.arn
  policy = jsonencode({
    Version = "2012-10-17"
    Statement = [
      {
        Action    = [
          "vpc-lattice:CreateServiceNetworkVpcAssociation",
           "vpc-lattice:UpdateServiceNetworkVpcAssociation",
           "vpc-lattice:DeleteServiceNetworkVpcAssociation"
        ]
        Effect    = "Allow"
        Principal = "*"
        Resource  = "*"
        Condition = {
          StringEquals = {
            "vpc-lattice:ServiceNetworkArn" = "arn:aws:vpc-lattice:us-west-2:123456789012:servicenetwork/sn-903004f88example",
            "vpc-lattice:VpcId": "vpc-1a2b3c4d"
          }
        }
      }
    ]
  })
}

References

API Reference: https://docs.aws.amazon.com/vpc-lattice/latest/APIReference/API_PutResourcePolicy.html
API docs: https://pkg.go.dev/github.com/aws/aws-sdk-go-v2/service/vpclattice
User Guide: https://docs.aws.amazon.com/vpc-lattice/latest/ug/

Would you like to implement a fix?

Yes

@nrajb nrajb added the needs-triage Waiting for first response or review from a maintainer. label Apr 23, 2023
@github-actions
Copy link

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.

@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 Apr 23, 2023
@ewbankkit ewbankkit added new-resource Introduces a new resource. and removed needs-triage Waiting for first response or review from a maintainer. service/vpc Issues and PRs that pertain to the vpc service. labels Apr 24, 2023
@ewbankkit
Copy link
Contributor

Relates #30380.

@github-actions
Copy link

github-actions bot commented May 5, 2023

This functionality has been released in v4.66.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

github-actions bot commented Jun 5, 2023

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 Jun 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
new-resource Introduces a new resource. service/vpclattice Issues and PRs that pertain to the vpclattice service.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants