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 Data Source]: aws_shield_protection data source #35387

Open
lawliet89 opened this issue Jan 19, 2024 · 1 comment · May be fixed by #37524
Open

[New Data Source]: aws_shield_protection data source #35387

lawliet89 opened this issue Jan 19, 2024 · 1 comment · May be fixed by #37524
Labels
new-data-source Introduces a new data source. service/shield Issues and PRs that pertain to the shield service.

Comments

@lawliet89
Copy link
Contributor

Description

This is a feature request for a data source for aws_shield_protection.

This data source should allow searching for protection via either

  • name, or
  • resource_arn

There are two ways to create Shield Protection on resources,

  • Using Firewall Manager Policies
  • aws_shield_protection resource and equivalent

In the first case, when users want to associate health checks to the protection with aws_shield_protection_health_check_association, they have to hardcode the Shield protection ID which is a UUID. This can be brittle and difficult to maintain.

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

  • aws_shield_protection

Potential Terraform Configuration

data "aws_shield_protection" "cloudfront" {
  resource_arn = "xxx"
}

References

No response

Would you like to implement a fix?

No

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 service/shield Issues and PRs that pertain to the shield service. label Jan 19, 2024
@terraform-aws-provider terraform-aws-provider bot added the needs-triage Waiting for first response or review from a maintainer. label Jan 19, 2024
@justinretzolk justinretzolk added new-data-source Introduces a new data source. and removed needs-triage Waiting for first response or review from a maintainer. labels Jan 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-data-source Introduces a new data source. service/shield Issues and PRs that pertain to the shield service.
Projects
None yet
2 participants