Is there any way to read access_key and secret_key from provider

I was wondering is there anyway to do that without using extra variables.

provider "aws"{

resource "x" "y" {
access_key =

you can pass through variable file but you can give to on run time through CLI. its a good practise

Hey @fkrafi :wave: There’s not currently a way to interpolate provider configuration data. While I realize this is counter to the goal you mentioned, the best bet would be to create a variable that holds the value so that you can interpolate it in the provider declaration as well as any other places it may be needed.