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

[Enhancement]: Customize aws_cloudfront_vpc_origin for adding security group #40683

Open
MitCoder opened this issue Dec 23, 2024 · 2 comments
Open
Labels
enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. service/cloudfront Issues and PRs that pertain to the cloudfront service.

Comments

@MitCoder
Copy link

Description

When I create the VPC origin within CloudFront, it automatically creates a Security Group associated with the VPC origin of CloudFront. I successfully created the VPC origin within CloudFront using Terraform with the resource aws_cloudfront_vpc_origin (Terraform 5.82.2)version ). However, I had to manually configure the Security Group to meet my requirements. I would like to find a way to customize the Security Group for VPC origin programmatically.

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

aws_cloudfront_vpc_origin

Potential Terraform Configuration

No response

References

https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/cloudfront_vpc_origin
https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-vpc-origins.html

Would you like to implement a fix?

None

@MitCoder MitCoder added the enhancement Requests to existing resources that expand the functionality or scope. label Dec 23, 2024
@github-actions github-actions bot added the service/cloudfront Issues and PRs that pertain to the cloudfront service. label Dec 23, 2024
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 the needs-triage Waiting for first response or review from a maintainer. label Dec 23, 2024
@trevorrea
Copy link
Contributor

I just came across this and it's really annoying! It's not solely the fact that you can't manage it. It's the fact you don't seem to get a unique security group per CloudFront distribution as well. It seems a bit half-baked from AWS.

The name is CloudFront-VPCOrigins-Service-SG with the tag aws.cloudfront.vpcorigin = enabled

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Requests to existing resources that expand the functionality or scope. needs-triage Waiting for first response or review from a maintainer. service/cloudfront Issues and PRs that pertain to the cloudfront service.
Projects
None yet
Development

No branches or pull requests

2 participants