vault_aws_secret_backend_static_role

Creates a static role for AWS Secret Backend for Vault.

Example Usage

resource "vault_aws_secret_backend" "aws" {
  path = "my-aws"
  description = "Obtain AWS credentials."
}

resource "vault_aws_secret_backend_static_role" "role" {
  backend = vault_aws_secret_backend.aws.path
  name = "test"
  username = "my-test-user"
  rotation_period = "3600"
}

Argument Reference

The following arguments are supported:

Attributes Reference

No additional attributes are exported by this resource.

Import

AWS secret backend static role can be imported using the full path to the role of the form: <mount_path>/static-roles/<role_name> e.g.

$ terraform import vault_aws_secret_backend_static_role.role aws/static-roles/example-role