1 Answer
- Newest
- Most votes
- Most comments
1
DocumentDB tables and indexes cannot be created with CloudFormation.
Clusters and instances can be created.
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbcluster.html
https://docs.aws.amazon.com/ja_jp/AWSCloudFormation/latest/UserGuide/aws-resource-docdb-dbinstance.html
Relevant content
- asked a year ago
- asked a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
OK, Thanks for you answer. but I need to create tables and indexes when I want build a new environment, I don't want to manually create them. What should I do,Are there any good methods for automatic creation.looking for your answer.ありがとうございました!
If you do this with CloudFormation, I believe there is a way to create a custom resource and connect to it from a Lambda function to create the table. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/template-custom-resources-lambda.html
If you want to operate in Python, I believe pymongo can be used. https://pymongo.readthedocs.io/en/stable/
ok, thanks you~ Maybe I need to write a Lambda function to solve this problem.>﹏<, emmm, I have another question, How to automatically import S3 buckets by CloudFormation. I have made some additions to my question,could you also answer this question~ thank you very much!
I think we need to use Lambda with custom resources for new questions as well. DocumentDB internal operations are basically not supported by CloudFormation and must be automated by creating custom resources, etc.
ok~~~~~,thank you very much! I should study (Lambda with custom resources) as soon as possible. Is this difficult to learn?(っ °Д °;)っ anyway,thank you very much!!!have a nice day []
( ̄▽ ̄)*