-
Notifications
You must be signed in to change notification settings - Fork 4k
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
(elasticsearch): Two Domains in same account/region cause LogGroup Policy Failure #12016
Comments
@iliapolo I'll write a PR for this a little later if that helps. |
@peterb154 Yes that would be great 👍 |
Fix issue aws#12016 where 2 Domains in same account/region each create & delete LogGroup Resource Policies statically named 'ESLogPolicy'.
|
…eterb154/aws-cdk into peterb154/aws#12016-2-domains-2-stacks
…eterb154/aws-cdk into peterb154/aws#12016-2-domains-2-stacks
…ins which also results in a failure while destroying the stack (#12056) 2 Domains in same account/region each create & delete LogGroup Resource Policies statically named 'ESLogPolicy'. Fixes #12016 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
…ins which also results in a failure while destroying the stack (aws#12056) 2 Domains in same account/region each create & delete LogGroup Resource Policies statically named 'ESLogPolicy'. Fixes aws#12016 ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
When 2 or more elasticsearch Domains are created in the same account/region both with logging configurations, Cloudformation will throw an error when the second domain is deleted:
Cloudformation resource DELETE failed error:
Cloudformation event:
Reproduction Steps
Detailed example:
What did you expect to happen?
That two elastic search domains can be created in the same AWS account/region without issue
What actually happened?
ESLogPolicy
)Environment
Other
It appears that @aws-cdk/aws-elasticsearch Domain creates a custom resources to set cloudwatch log group resource policy here and the yes the policy name "ESLogPolicy"
aws-cdk/packages/@aws-cdk/aws-elasticsearch/lib/domain.ts
Line 1418 in ae2e9c1
The custom resource deletes that log policy when the Domain is deleted
aws-cdk/packages/@aws-cdk/aws-elasticsearch/lib/log-group-resource-policy.ts
Line 41 in 33ce50f
This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: