terraform-aws-cloudfront-s3-cdn icon indicating copy to clipboard operation
terraform-aws-cloudfront-s3-cdn copied to clipboard

Add support for origin-access-control

Open rankin-tr opened this issue 1 year ago • 2 comments

what

  • add Origin Access Control feature
    • add var.origin_access_type to enable Origin Access Identity or Origina Access Control policy
    • add aws_cloudfront_origin_access_control.default resource
    • add origin_access_control_id argument to origin config on aws_cloudfront_distribution.default
  • update example code
  • update README

why

  • provide the ability to make use of an Origin Access Control
    • retain default origin access identity behavior
  • AWS recommends using origin access control
  • Origin Access Identities are flagged in AWS Security Hub

references

  • Closes #244
  • https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/private-content-restricting-access-to-s3.html

rankin-tr avatar Aug 19 '24 18:08 rankin-tr

Just adding a positive review; I tried this branch myself in a project and it worked great. Thanks @rankin-tr !

philchristensen avatar Aug 28 '24 13:08 philchristensen

/terratest

dudymas avatar Aug 29 '24 15:08 dudymas

/terratest

dudymas avatar Sep 02 '24 15:09 dudymas

/terratest

dudymas avatar Sep 05 '24 12:09 dudymas

/terratest

dudymas avatar Sep 06 '24 19:09 dudymas

/terratest

dudymas avatar Sep 06 '24 22:09 dudymas

/terratest

dudymas avatar Sep 06 '24 23:09 dudymas

/terratest

Nuru avatar Sep 07 '24 11:09 Nuru

/terratest

goruha avatar Sep 07 '24 12:09 goruha

/terratest

dudymas avatar Sep 11 '24 20:09 dudymas

💥 This pull request now has conflicts. Could you fix it @rankin-tr? 🙏

mergify[bot] avatar Sep 19 '24 03:09 mergify[bot]

This PR was closed due to inactivity and merge conflicts. 😭 Please resolve the conflicts and reopen if necessary.

mergify[bot] avatar Sep 19 '24 03:09 mergify[bot]

@Nuru @dudymas

GabisCampana avatar Sep 26 '24 17:09 GabisCampana

/terratest

dudymas avatar Sep 26 '24 17:09 dudymas

These changes were released in v0.95.1.

github-actions[bot] avatar Oct 02 '24 19:10 github-actions[bot]