热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

EFSMountTargetcreationFailed:Userisnotauthorizedtoperformthataction

TerraformVersionTerraformv0.10.6AffectedResource(s)Pleas


Terraform Version

Terraform v0.10.6

Affected Resource(s)

Please list the resources as a list, for example:
- aws_efs_file_system
- aws_efs_mount_target

Terraform Configuration Files

1
2
3
4
5
6
7
8
9
10
11
12
13
resource "aws_efs_file_system" "fgw-shared-filesystem"

{

  tags

  {

        "Name"         = "fgw-cs-${var.codesplitt}-shared-filesystem-regression"

  }

}

resource "aws_efs_mount_target" "fgw-shared-filesystem-moun-target"

{

  file_system_id        = "${aws_efs_file_system.fgw-shared-filesystem.id}"

  subnet_id             = "subnet-ca9dcca2"

  security_groups       = ["sg-0b30c561"]

}


Expected Behavior

Mount target should be created.

Actual Behavior

Mount target is not created and i don't get a clear reason which permission is missing !

1
2
3
4
5
6
1 error(s) occurred:



* aws_efs_mount_target.fgw-shared-filesystem-moun-target: 1 error(s) occurred:



* aws_efs_mount_target.fgw-shared-filesystem-moun-target: AccessDeniedException: User is not authorized to perform that action on the specified resource

        status code: 403, request id: 35027496-9f9b-11e7-b53e-45fe21728a81


Steps to Reproduce



  1. 1
    terraform apply


Important Factoids

The used policy is the following. I granted full access to EFS, but it still not working:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{

    "Version": "2012-10-17",

    "Statement": [

        {

            "Sid": "Stmt1504192188000",

            "Effect": "Allow",

            "Action": [

                "ec2:*",

                "route53:*",

                "rds:*",

                "elasticfilesystem:*"

            ],

            "Resource": [

                "*"

            ]

        }

    ]

}

该提问来源于开源项目:hashicorp/terraform-provider-aws

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.



If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks!


   



推荐阅读
author-avatar
拍友2602924913
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有