Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for additional allowed principals configuration #825

Open
raelga opened this issue Oct 17, 2024 · 1 comment
Open

Support for additional allowed principals configuration #825

raelga opened this issue Oct 17, 2024 · 1 comment

Comments

@raelga
Copy link

raelga commented Oct 17, 2024

When you need access to an ROSA HCP based cluster API from other AWS accounts, you need to be able to set additional principals to the cluster as adding ingress rules to the default VPCe security group is no allowed by the ROSA team:

image

This requires adding additional principals, via CLI, manually setting up VPC Endpoints in each account and a private Route53 zone to route the traffic.

We achieve it using a local-exec resource, but native support in the provider will be much better.

resource "null_resource" "rosa_cli_additional_allowed_principals" {
  provisioner "local-exec" {
    command = format(
      "rosa edit cluster -c %s --additional-allowed-principals %s",
      resource.rhcs_cluster_rosa_hcp.rosa_cluster_hcp.name,
       join(",",[
        "arn:aws:iam::${data.aws_caller_identity.dev.account_id}:role/terraform",
        "arn:aws:iam::${data.aws_caller_identity.stg.account_id}:role/terraform",
        "arn:aws:iam::${data.aws_caller_identity.pro.account_id}:role/terraform"
       ])
    )
  }
}
@gdbranco
Copy link
Contributor

gdbranco commented Nov 6, 2024

This is a required feature for hcp shared vpc arch and will be included in the release v1.6.9, expected for end of the year

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants