I am using Node SDK for AWS, I have a question regarding the createLogGroup and createLogStream operations, are these operations idempotent? i.e I can call create multiple times without having to worry about duplication or error.
Has anyone tried this before? Thanks for your help.
No, they are not idempotent. Calling them again with the same names will cause an error. For instance, if you follow the link through to the underlying CreateLogGroup
API reference, you can see one of the possible error responses is:
ResourceAlreadyExistsException
The specified resource already exists.
HTTP Status Code: 400