-
Notifications
You must be signed in to change notification settings - Fork 272
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Python the-basic-mq #112
Python the-basic-mq #112
Conversation
subdomain_name = 'mq' | ||
|
||
# Request and issue a certificate for the subdomain (iot.cdkexample.com in this example) beforehand, and paste ARN. | ||
cert_arn = 'arn:aws:acm:us-east-1:2XXXXXX9:certificate/exxxx8-xxxx-xxxx-xxxx-fxxxxxxxx9' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The TS version creates the cert for you, what made you change it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With DnsValidatedCertificate
CDK creates a different cert for the same domain when you delete and re-deploy the stack. You can issue 20 certs per year (aws/aws-cdk#5889) on new AWS accounts, and I thought it is better to manually issue a cert and use it by ARN.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth adding a comment to that effect? Linking to that issue
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, I had better add some comment on it.
# However, be careful of ACM yearly certificate limit. | ||
# You will bump into the error after you destroy/deploy the stack over and over again. | ||
# See https://github.com/aws/aws-cdk/issues/5889 for the details. | ||
cert = acm.Certificate.from_certificate_arn(self, 'cert', certificate_arn=cert_arn) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added some comment here
Hello, I added Python example of
the-basic-mq
pattern.Thank you.