Skip to content

cloudfront: expose ARN for Distribution #32530

Closed
@tmokmss

Description

@tmokmss

Describe the feature

It would be great if we could get ARN of a CloudFront distribution L2 construct.

Use Case

easily get ARN of a distribution.

Proposed Solution

add IDistribution.distributionArn property. We already have a function to calculate it.

export function formatDistributionArn(dist: IDistribution) {
return Stack.of(dist).formatArn({
service: 'cloudfront',
region: '',
resource: 'distribution',
resourceName: dist.distributionId,
});
}

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
    This feature might incur a breaking change

CDK version used

2.170.0

Environment details (OS name and version, etc.)

macOS

Activity

added
feature-requestA feature should be added or improved.
needs-triageThis issue or PR still needs to be triaged.
on Dec 15, 2024
added
investigatingThis issue is being investigated and/or work is in progress to resolve the issue.
and removed
needs-triageThis issue or PR still needs to be triaged.
on Dec 16, 2024
ashishdhingra

ashishdhingra commented on Dec 16, 2024

@ashishdhingra
Contributor

Makes sense to expose the property for processing. The linked PR #32531 attempts to add support.

added
effort/smallSmall work item – less than a day of effort
and removed
investigatingThis issue is being investigated and/or work is in progress to resolve the issue.
on Dec 16, 2024
removed their assignment
on Dec 16, 2024
github-actions

github-actions commented on Dec 16, 2024

@github-actions

Comments on closed issues and PRs are hard for our team to see.
If you need help, please open a new issue that references this one.

3 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    @aws-cdk/aws-cloudfrontRelated to Amazon CloudFronteffort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.p2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      cloudfront: expose ARN for `Distribution` · Issue #32530 · aws/aws-cdk