jaylong255 / cyberworld-site

0 stars 0 forks source link

30 Bugfix: Issues with Bucket ACL and Policies #31

Closed jaylong255 closed 1 year ago

jaylong255 commented 1 year ago

Ticket(s)

  1. https://github.com/jaylong255/cyberworld-site/issues/28
  2. https://github.com/jaylong255/cyberworld-site/issues/30

Related PR(s)

  1. #25

Changes

  1. Passed the value of the Hosted Zone variable into the Terraform commands in the Actions Workflow; broke the commands up into mulitple lines to make them cleaner and more readable.
  2. Removed the test bucket from the Terraform codebase for cleanup.
  3. Adjusted the unique string prefix so that it generates the same unique string every time rather than trying to re-create the bucket because the timestamp is different with each passing second.
  4. Deleted the ACL because we don't actually need it since we're using a CDN for public requests.
  5. Deleted the redundant bucket policy.
  6. Added a DNS record resource for the subdomain since it is coupled with the app anyway.
  7. Added outputs for access identity ARN although they are probably not necessary other than for troubleshooting.
  8. Moved policies to their own file for cleanup and better organization/readability.
  9. Added new variables required for the DNS record resource
  10. Added variables for AWS credentials just to make the output of Terraform commands shut up.

Checklist