Documentation
¶
Overview ¶
A simple construct to handle automated Cloudfront DNS alias migration with zero downtime
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CloudfrontAliasAssociator_IsConstruct ¶
func CloudfrontAliasAssociator_IsConstruct(x interface{}) *bool
Checks if `x` is a construct.
Returns: true if `x` is an object created from a class which extends `Construct`. Deprecated: use `x instanceof Construct` instead.
func NewCloudfrontAliasAssociator_Override ¶
func NewCloudfrontAliasAssociator_Override(c CloudfrontAliasAssociator, scope constructs.Construct, id *string, props ICloudfrontAliasAssociatorProps)
Types ¶
type CloudfrontAliasAssociator ¶
type CloudfrontAliasAssociator interface {
constructs.Construct
// The tree node.
Node() constructs.Node
// Returns a string representation of this construct.
ToString() *string
}
A simple construct to handle automated Cloudfront DNS alias migration with zero downtime.
This creates: - A TXT record with the name `_${alias}` that points to the targetDistributionDomainName. - A Cloudfront custom resource "Custom::CloudfrontAssociateAlias" that associates the alias with the targetDistributionId.
- Because we use the SDK here, this construct can be used as part of a versioned deployment, and can be used for both standard and rollback scenarios.
- A Route53 A and AAAA record that alias to the targetDistribution.
func NewCloudfrontAliasAssociator ¶
func NewCloudfrontAliasAssociator(scope constructs.Construct, id *string, props ICloudfrontAliasAssociatorProps) CloudfrontAliasAssociator
type ICloudfrontAliasAssociatorProps ¶
type ICloudfrontAliasAssociatorProps interface {
Alias() *string
// The Route53 hosted zone that houses the customDomain.
HostedZone() awsroute53.IHostedZone
// The Cloudfront Distribution we want to move the alias to.
TargetDistribution() awscloudfront.IDistribution
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.