Closed tylerthome closed 2 months ago
Terraform plan in terraform
With backend config files: terraform/prod.backend.tfvars
:x: Error applying plan in Apply Terraform changes on merge #17
@tylerthome this is a great approach, but according to the plan it does change the thumbrint of the cert used for oidc. Is that intentional?
Yes, this is expected. I saw that the GitHub team was posting these on occasion when they cycled the cert, like here but haven't seen any recent updates. The initial hard-coded thumbprint in this module came from a GHA or AWS doc about the OIDC mechanism, where it seemed like a semi-fixed value -- I'll update if I can find that one again just for posterity.
Looks like github may have eaten the link to the blog post you provided - can you add back in?
Thanks for catching that, added to the original comment again.
And for the IAM error, assuming this is what you are referring to?
Yes that's the one - not too certain this will resolve that since I hadn't set TF_LOG
high enough to see what actually threw the auth there (assuming there was more info to log), but seemed like a better approach in either case. AWS docs use some openssl scripting to directly extract this thumbprint, hoping the terraform module is equivalent
Thanks tyler - according to that article we can prob remove the thumbprint entirely, if I'm interpreting that correctly? If you'd like to keep it for now that's ok with me.
Thanks! Will plan to follow this up to see if we can remove the thumbprint, as soon as I have a moment to test that in another env
What changes did you make?
data
block for the GitHub Actions token issuer's TLS certificateRationale behind the changes?
Testing done for these changes
What did you learn or can share that is new?(optional)
N/A
Notes