winglang / wing

A programming language for the cloud ☁️ A unified programming model, combining infrastructure and runtime code into one language ⚡
https://winglang.io
Other
4.99k stars 196 forks source link

adding a custom domain name doesn't work on tf-aws website #2440

Open tsuf239 opened 1 year ago

tsuf239 commented 1 year ago

I tried this:

I tried to run terraform apply on:

bring cloud;

let w = new cloud.Website(path: "./website", domain: "boldbytes.co");

log("website is up and running on ${w.url}!");

This happened:

╷
│ Error: creating CloudFront Distribution: InvalidViewerCertificate: To add an alternate domain name (CNAME) to a CloudFront distribution, you must attach a trusted certificate that validates your authorization to use the domain name. For more details, see: https://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/CNAMEs.html#alternate-domain-names-requirements
│       status code: 400, request id: 70b7382d-9ee6-4ce2-88ba-763842e1ec52
│ 
│   with aws_cloudfront_distribution.root_cloudWebsite_Distribution_6BC863F8,
│   on main.tf.json line 82, in resource.aws_cloudfront_distribution.root_cloudWebsite_Distribution_6BC863F8:
│   82:       }
│ 

I expected this:

To run with no errors

Is there a workaround?

No response

Component

SDK

Wing Version

No response

Wing Console Version

No response

Node.js Version

No response

Platform(s)

No response

Anything else?

No response

Community Notes

github-actions[bot] commented 1 year ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 11 months ago

Hi,

This issue hasn't seen activity in 60 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 6 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!

github-actions[bot] commented 2 months ago

Hi,

This issue hasn't seen activity in 90 days. Therefore, we are marking this issue as stale for now. It will be closed after 7 days. Feel free to re-open this issue when there's an update or relevant information to be added. Thanks!