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_cloudfront_signed_url returning a cloudfront signed URL #28978

Open
raven4ever opened this issue Jan 19, 2023 · 1 comment
Labels
new-data-source Introduces a new data source. service/cloudfront Issues and PRs that pertain to the cloudfront service.

Comments

@raven4ever
Copy link

raven4ever commented Jan 19, 2023

Description

Add a new data source for the CloudFront service to ease the creation of signed URLs.
This behavior is provided by the AWS CLI.

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

aws_cloudfront_signed_url

Potential Terraform Configuration

data "aws_cloudfront_signed_url" "example" {
  url            = aws_cloudfront_distribution.example.domain_name
  key_pair_id    = aws_cloudfront_public_key.example.id
  private_key    = file("private.pem")
  date_less_than = "2023-12-12"
}

output "signed_url" {
  value = data.aws_cloudfront_signed_url.example.url
}

References

https://awscli.amazonaws.com/v2/documentation/api/latest/reference/cloudfront/sign.html
https://github.com/aws/aws-sdk-go/blob/main/service/cloudfront/sign/sign_url.go

Would you like to implement a fix?

None

@raven4ever raven4ever added the needs-triage Waiting for first response or review from a maintainer. label Jan 19, 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 the service/cloudfront Issues and PRs that pertain to the cloudfront service. label Jan 19, 2023
@raven4ever raven4ever changed the title [New Data Source]: [New Data Source]: aws_cloudfront_signed_url returning a cloudfront signed URL Jan 19, 2023
@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, 2023
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/cloudfront Issues and PRs that pertain to the cloudfront service.
Projects
None yet
Development

No branches or pull requests

2 participants