-
Notifications
You must be signed in to change notification settings - Fork 29
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
Error: Invalid count argument (The "count" value depends...) with s3-archive module when using optional KMS key #87
Comments
@HansBraun The issue you're running into here is that the s3-archive module needs to use the actual ARN of your kms key to do some logic, and because the ARN doesn't exist as you're creating the KMS within the TF, it's providing you this error. |
@MichaelBriggs-Coralogix Thank you for your response. Yes, I can confirm that after I use |
@HansBraun I have seen reservations to creating KMS resources within our modules as there are so many different variables and options for KMS that we'd have a hard time managing that element to meet our customer expectations. As such, it is expected that you provide an existing KMS, configured exactly how you like it, during deployment of our module. I will certainly take this feedback to the team and see if they have any additional thoughts on the topic. |
@HansBraun |
I am following the instructions on https://coralogix.com/docs/archive-s3-bucket-forever/ in order to configure the s3-archive . So I try to create the s3 archive buckets via terraform and I want to use a KMS key to encrypt them. But during
terraform plan
I ran into the following problem:My terraform configuration looks like:
The value for the local variable cx_custom_coralogix_arn is "625240141681" and aws_account_id is my own AWS account id.
The text was updated successfully, but these errors were encountered: