forked from aws/aws-cdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(certificate-manager): native CloudFormation DNS validated certif…
…icate Automatically adding Amazon Route 53 CNAME records for DNS validation is now natively supported by CloudFormation. Add a `validation` prop to `Certificate` to handle both email and DNS validation. Deprecate `DnsValidatedCertificate`. The default remains email validation (non-breaking). Closes aws#5831 Closes aws#5835 Closes aws#6081 Closes aws#6516 Closes aws#7150 Closes aws#7941 Closes aws#7995 Closes aws#7996
- Loading branch information
Showing
7 changed files
with
302 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
26 changes: 0 additions & 26 deletions
26
packages/@aws-cdk/aws-certificatemanager/test/example.dns-validated-request.lit.ts
This file was deleted.
Oops, something went wrong.
34 changes: 34 additions & 0 deletions
34
packages/@aws-cdk/aws-certificatemanager/test/example.dns.lit.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import * as route53 from '@aws-cdk/aws-route53'; | ||
import { App, CfnOutput, Construct, Stack } from '@aws-cdk/core'; | ||
import * as acm from '../lib'; | ||
|
||
class AcmStack extends Stack { | ||
constructor(scope: Construct, id: string) { | ||
super(scope, id); | ||
/// !show | ||
const exampleCom = new route53.HostedZone(this, 'ExampleCom', { | ||
zoneName: 'example.com', | ||
}); | ||
|
||
const exampleNet = new route53.HostedZone(this, 'ExampelNet', { | ||
zoneName: 'example.net', | ||
}); | ||
|
||
const cert = new acm.Certificate(this, 'Certificate', { | ||
domainName: 'test.example.com', | ||
subjectAlternativeNames: ['cool.example.com', 'test.example.net'], | ||
validation: acm.CertificateValidation.fromDns(exampleCom, { | ||
'test.example.net': exampleNet, | ||
}), | ||
}); | ||
/// !hide | ||
|
||
new CfnOutput(this, 'Output', { | ||
value: cert.certificateArn, | ||
}); | ||
} | ||
} | ||
|
||
const app = new App(); | ||
new AcmStack(app, 'AcmStack'); | ||
app.synth(); |
Oops, something went wrong.