Skip to content

vault_aws_secret_backend_role: role_arns conflicts with policy_arns while it should not #709

Closed
@adongy

Description

Terraform Version

Terraform v0.12.23

Affected Resource(s)

  • vault_aws_secret_backend_role

Terraform Configuration Files

resource "vault_aws_secret_backend_role" "ecr" {
  backend         = vault_aws_secret_backend.aws.path
  name            = "ecr"
  credential_type = "assumed_role"

  role_arns = [
    "arn:aws:iam::${local.account_id}:role/${local.role-name}",
  ]

  policy_arns = [
    "arn:aws:iam::aws:policy/AmazonEC2ContainerRegistryReadOnly",
  ]
}

Expected Behavior

Plan runs successfully, as well as apply.

Actual Behavior


Error: "policy_arns": conflicts with role_arns

  on aws-secret.tf line 47, in resource "vault_aws_secret_backend_role" "ecr":
  47: resource "vault_aws_secret_backend_role" "ecr" {



Error: "role_arns": conflicts with policy_arns

  on aws-secret.tf line 47, in resource "vault_aws_secret_backend_role" "ecr":
  47: resource "vault_aws_secret_backend_role" "ecr" {


Steps to Reproduce

Please list the steps required to reproduce the issue:

  1. terraform plan

References

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions