aws-cloudformation / aws-cloudformation/cloudformation-coverage-roadmap
AWS::S3::Bucket Allow Return of HostedZoneId using GetAtt
- Dominant language
- No language data
- Stars
- 1.1k
- Forks
- 62
- PR merge metrics
- No merged PRs in 30d
Description
### Name of the resource
AWS::S3::Bucket
### Resource name
_No response_
### Description
When creating an S3 Bucket to be used as a website endpoint creation of a "A Record with Alias Target" is not currently available. Example below:
```
WWWS3Bucket:
Type: AWS::S3::Bucket
Properties:
BucketName: bucket.cloudavail.com
WebsiteConfiguration:
ErrorDocument: index.html
IndexDocument: index.html
```
And this should be able to be referenced in an A Record as follows:
```
WWWRecordSet:
Type: AWS::Route53::RecordSet
Properties:
# https://docs.aws.amazon.com/general/latest/gr/s3.html#s3_website_region_endpoints
AliasTarget:
DNSName: s3-website-us-west-2.amazonaws.com
HostedZoneId: !GetAtt WWWS3Bucket.HostedZoneId # or !GetAtt WWWS3Bucket.CanonicalHostedZoneId
HostedZoneId: !Ref CloudAvailHostedZoneId
Name: www.cloudavail.com
Type: A
```
### Other Details
_No response_
Contributor guide
Research direction
Start with the AWS S3 website endpoint documentation linked in the issue and the AWS::S3::Bucket and AWS::Route53::RecordSet examples. Confirm the requested HostedZoneId or CanonicalHostedZoneId GetAtt behavior and define completion as making the attribute available for the shown alias record configuration.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100