[Enhancement]: Export Neptune Cluster Resource ARN in Required Format #39877
Labels
enhancement
Requests to existing resources that expand the functionality or scope.
needs-triage
Waiting for first response or review from a maintainer.
service/iam
Issues and PRs that pertain to the iam service.
service/sts
Issues and PRs that pertain to the sts service.
Description
Currently, the Terraform Neptune resource exports the administrative ARN as
arn
, which works fine for actions requiring administrative access to the cluster. However, for IAM policies, the resource ARN in the format:arn:aws:neptune-db:region:account-id:cluster-resource-id/*
is often required in the Resource field. From what I’ve observed, Terraform doesn’t directly export this ARN, despite providing the cluster_resource_id attribute. Users are forced to build this ARN manually, typically like so:
This method requires additional steps and string interpolation, which is both tedious and prone to errors, especially in environments where the resource ARN is frequently needed in IAM policies. By having Terraform natively export this ARN from the cluster resource, users would save time and reduce the risk of mistakes during deployment.
Affected Resource(s) and/or Data Source(s)
aws_neptune_cluster
Potential Terraform Configuration
References
aws doc link
Would you like to implement a fix?
No
The text was updated successfully, but these errors were encountered: