limnh / journey

Notes and learnings along the way of becoming an engineer
0 stars 1 forks source link

2019-04-02 #26

Open limnh opened 5 years ago

limnh commented 5 years ago

Where I left off yesterday:

Daily To-Do List:

Issues/Questions:

  1. Going through the learn.hashicorp documentation on Terraform to get my grounding.

  2. So many errors.

    • 403 error
    • aws_s3_bucket_policy.b: Error putting S3 policy: MalformedPolicy: Action does not apply to any resource(s) in statement
    • policy didn't work when in main.tf

Solutions:

  1. I think the examples are fairly straight-forward in the docs; however, it gets very confusing very quickly. There's not much preparation for the full possibilities of Terraform, and it's confusing as hell to try and navigate some of the errors I encountered.

  2. I've made some progress on said errors:

    • Updated the resource path within the policy to arn:aws:s3:::tbw-kvm-guest-images/*
    • I had go back and recreate a new policy for the bucket and the user permissions. Once that was nailed down, was able to get terraform apply to run successfully.
    • Pulled out the policy code and put in its own file policy.json
limnh commented 5 years ago

Terraform is confusing af