Terraform error EntityAlreadyExists: Role with name iam_for_lambda already exists

霸气de小男生 提交于 2020-01-25 09:25:06

问题


When running the command terraform apply the following error occurred because the role already exists.

Error: Error creating IAM Role iam_for_lambda: EntityAlreadyExists: Role with name iam_for_lambda already exists.
    status code: 409, request id: 204c6c00-0b1d-4fb9-bf9c-fca48c67d669

  on main.tf line 1, in resource "aws_iam_role" "iam_for_lambda":
   1: resource "aws_iam_role" "iam_for_lambda" {

can I use conditions/tricks to check without error if the role already exists?

来源:https://stackoverflow.com/questions/58860929/terraform-error-entityalreadyexists-role-with-name-iam-for-lambda-already-exist

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!