Execute Terraform apply with AWS assume role

后端 未结 4 1957
夕颜
夕颜 2021-02-02 01:11

I need to execute a Terraform template to provision infrastructure for an AWS account which I can access by assuming a role.

The problem I have now is I do not have an I

4条回答
  •  闹比i
    闹比i (楼主)
    2021-02-02 01:28

    Looking at your policy of trust relationship in the other account, there's a condition applied multi factor authentication below highlighted. So User should 2 factor authenticated before assuming the role. Remove this condition and try to run code.

       "Condition": {
            "Bool": {
              "aws:MultiFactorAuthPresent": "true"
            }
          }

提交回复
热议问题