terraform-provider-redshift icon indicating copy to clipboard operation
terraform-provider-redshift copied to clipboard

How to add users to an existing group?

Open ukreddy-erwin opened this issue 2 years ago • 1 comments

redshift_group is creating newgroup.

Is there anyway to add users to an existing group?

Like this below code I got from some page but not working.

resource "aws_redshift_group_membership" "example" {
  group_name = "my-redshift-group"
  users      = ["user1", "user2"]
}

ukreddy-erwin avatar Feb 27 '23 04:02 ukreddy-erwin

Hi, there is no separate resource to manage just the group membership. The best, for now, would be to import an existing group to terraform using the terraform import command.

See import documentation for the redshift_group resource: https://registry.terraform.io/providers/brainly/redshift/latest/docs/resources/group#import

winglot avatar Mar 02 '23 08:03 winglot