awslabs / awslabs/aws-solutions-constructs

CloudFrontToS3 : Customize Domain Name with Certificate

Open
#1,139 3 comments 2 reactions 0 assignees View on GitHub
addressed
Dominant language
TypeScript
Stars
1.4k
Forks
269
Avg merge
5h 18m
Merged PRs (30d)
5

Description

### Use Case

I would want to customize the domain name of my Cloudfront Distribution

But I can't do it as you can see in this code:

```

cfn_s3 = CloudFrontToS3(self, "lawsy-newsletter-cloudfront-s3",
cloud_front_distribution_props=cloudfront.DistributionProps(
domain_names=[domain_name],
certificate=certificate_cf,
comment="CloudFront distribution for lAWSy Newsletter",
default_behavior=cloudfront.BehaviorOptions(
origin=cloudfront_origins.S3Origin(??)
),

)

)
)
```

How could it possible to customize the domain name with a TLS Certificate ?

Contributor guide

Open the contributing guide

Research direction

Start by locating the CloudFrontToS3 construct and reading how cloud_front_distribution_props is handled, then compare the requested domain_names and certificate options with the AWS CDK distribution API. Done means the construct accepts a custom domain and TLS certificate through the shown configuration and verifies the resulting distribution behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, typescript
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.