Closed danlamanna closed 3 months ago
cc @aaronkanzer
FYI I modified the environment variables so TFC is no longer using the infrastructure user's long lived credentials. I'm assuming that dandi-infrastructure-bot
is being used for other things so I left it alone.
This should allow terraform cloud to authenticate with AWS via a direct trust relationship instead of relying on a manual token placed in the environment of TFC.
See https://developer.hashicorp.com/terraform/cloud-docs/workspaces/dynamic-provider-credentials#how-dynamic-credentials-work for documentation on how the dynamic credential system works.
This adds the infrastructure for doing this authentication but doesn't switch over to it yet, that can be done after merging.