Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
console.log(`
>>> CREATING SSL CERT
Creating stack with SSL certificate, ensure you have setup your name servers to point to route53 already.
In the cloudformation logs > events tab you will see the content of the DNS record you will need to create
in order for the certificate to be issued. Once you see that, enter the information into a CNAME record
and then wait for the stack to finish updating.
>>>
`);
}
const params: AWS.CloudFormation.CreateStackInput = {
StackName,
TemplateBody: CF(template),
Capabilities: ["CAPABILITY_NAMED_IAM"]
};
await handleStackCreateAndUpdate(params);
};
}
};
if (branch === "master") {
(template.Resources.ClientDistribution.Properties.DistributionConfig.Aliases as any).push(
config.ROOT_DOMAIN
);
(template.Resources as any).ClientRootRecordSet = Object.assign({}, ClientRecordSet, {
Properties: {
...ClientRecordSet.Properties,
Name: config.ROOT_DOMAIN
}
});
}
return CF(template);
};