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

Expose cluster_namespace_arn #92

Closed
nicofff opened this issue Feb 5, 2024 · 1 comment · Fixed by #93
Closed

Expose cluster_namespace_arn #92

nicofff opened this issue Feb 5, 2024 · 1 comment · Fixed by #93

Comments

@nicofff
Copy link

nicofff commented Feb 5, 2024

Is your request related to a new offering from AWS?

No

Is your request related to a problem? Please describe.

I'm trying to setup a cluster for zero-etl. Part of the process involves creating a resource policy to allow the source rds databases permissions to create the integrations.
The policy statement looks like this:

    "Effect" : "Allow",
    "Principal" : {
      "Service" : "redshift.amazonaws.com"
    },
    "Action" : "redshift:AuthorizeInboundIntegration",
    "Resource" : "arn:aws:redshift:us-east-1:XXXXXXXXXXX:namespace:YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYY",
    "Condition" : {
      "StringEquals" : {
        "aws:SourceArn" : "arn:aws:rds:us-east-1:XXXXXXXXXXX:cluster:CLUSTER_NAME"
      }
    }

Where YYYYYYYY-YYYY-YYYY-YYYY-YYYYYYYY is the namespace name.

Describe the solution you'd like.

Add cluster_namespace_arn as an output for the module. It's already exposed by terraform. See https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/redshift_cluster#cluster_namespace_arn

Describe alternatives you've considered.

Worked around it by doing a

data "aws_redshift_cluster" "datawarehouse" {
  cluster_identifier = module.redshift.cluster_identifier
}

Not sure if this works on first terraform apply

Copy link

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 have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 12, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant