github.com/jpreese/tflint@v0.19.2-0.20200908152133-b01686250fb6/tflint/test-fixtures/provider_config/main.tf (about) 1 variable "secret_key" {} 2 3 variable "region" { 4 default = "us-east-1" 5 } 6 7 variable "role_arn" { 8 default = "arn:aws:iam::ACCOUNT_ID:role/ROLE_NAME" 9 } 10 11 provider "aws" { 12 access_key = "AWS_ACCESS_KEY" 13 secret_key = var.secret_key 14 region = var.region 15 profile = null 16 shared_credentials_file = null_resource.foo.bar 17 18 assume_role { 19 role_arn = var.role_arn 20 session_name = "SESSION_NAME" 21 external_id = "EXTERNAL_ID" 22 policy = "POLICY_NAME" 23 } 24 } 25 26 resource "null_resource" "foo" {}