Skip to content
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

Merged
merged 2 commits into from
Sep 2, 2020
Merged

Conversation

6293
Copy link
Contributor

@6293 6293 commented Aug 30, 2020

Hello, I added Python example of the-basic-mq pattern.

Thank you.

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'
Copy link
Owner

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?

Copy link
Contributor Author

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.

Copy link
Owner

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

Copy link
Contributor Author

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)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added some comment here

@cdk-patterns cdk-patterns merged commit 7be7458 into cdk-patterns:master Sep 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants