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

cloudfront: expose ARN for Distribution #32530

Closed
2 tasks
tmokmss opened this issue Dec 15, 2024 · 3 comments · Fixed by #32531
Closed
2 tasks

cloudfront: expose ARN for Distribution #32530

tmokmss opened this issue Dec 15, 2024 · 3 comments · Fixed by #32531
Labels
@aws-cdk/aws-cloudfront Related to Amazon CloudFront effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2

Comments

@tmokmss
Copy link
Contributor

tmokmss commented Dec 15, 2024

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

@tmokmss tmokmss added feature-request A feature should be added or improved. needs-triage This issue or PR still needs to be triaged. labels Dec 15, 2024
@github-actions github-actions bot added the @aws-cdk/aws-cloudfront Related to Amazon CloudFront label Dec 15, 2024
@ashishdhingra ashishdhingra added p2 investigating This issue is being investigated and/or work is in progress to resolve the issue. and removed needs-triage This issue or PR still needs to be triaged. labels Dec 16, 2024
@ashishdhingra ashishdhingra self-assigned this Dec 16, 2024
@ashishdhingra
Copy link
Contributor

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

@ashishdhingra ashishdhingra added effort/small Small work item – less than a day of effort and removed investigating This issue is being investigated and/or work is in progress to resolve the issue. labels Dec 16, 2024
@ashishdhingra ashishdhingra removed their assignment Dec 16, 2024
@mergify mergify bot closed this as completed in #32531 Dec 16, 2024
@mergify mergify bot closed this as completed in b7e6141 Dec 16, 2024
Copy link

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.

1 similar comment
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 16, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
@aws-cdk/aws-cloudfront Related to Amazon CloudFront effort/small Small work item – less than a day of effort feature-request A feature should be added or improved. p2
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants