Enable HTTPS for (only) a Subdomain that loads an S3 Bucket | IAM?

0

Hello,

My client has domain.com hosted on another hosting company.

They are currently having sub.domain.com loads a bucket here, using CNAME record value like s0m3th1ng.cloudfront.net

It worked perfectly for around a decade, but now we want to load the subdomain over HTTPS. domain.com on the other hosting, has HTTPS activated.

How could one achieve that?

My client gave me 'database admin' permission, which allow me to see buckets and the files. But, I can't find sub.domain.com written anywhere. Can you also tell me what permission(s) my client should give me to safely set up this matter?

Thank you.

rlatief
已提問 9 個月前檢視次數 232 次
1 個回答
0

You will need permission in ACM to create a certificate for sub.domain.com. You will also need permissions in CloudFront to add the certificate to the distribution and add alternate domain of sub.domain.com to the distribution. See: Using alternate domain names and HTTPS.

In response to the comment below: There are a couple of AWS Manage policies that they could assign to you. See: CloudFrontFullAccess and AWSCertificateManagerFullAccess.

Those two policies are not least privileged but they could start with these and add Resources and Conditions to restrict you to your specific task by creating a customer-managed policy.

profile pictureAWS
專家
kentrad
已回答 9 個月前
  • Hello, may I bother you a little bit more?

    It seems like my client is still having trouble setting it up themselves, and also in providing permissions to other users.

    I once had an ECS account, but that was more than a decade ago. I haven't used AWS since then, so I'm quite unfamiliar with it.

    My client gave me 'database admin' permission. I have a feeling, that the permissions you mentioned can't be set-up in the same easy way as setting up that 'database admin' permission?

    If that's the case, could you suggest a simpler way for my client to provide me with the necessary permissions? Perhaps an easy to set-up, broader permission, that doesn't include access to billing, etc.?

    Thanks in advance!

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南