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

patch to fix faulty import statements #11

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

johnricords
Copy link
Contributor

import statement for event_rule_targets is prefixing the name, generating a "/" in the ID

module.cloudwatch_custom_bus["s3-object-created-rule"].aws_cloudwatch_event_target.this["target1"]: Preparing import... [id=custom-bus/s3-object-created-rule/Ida13e361a-e8eb-4acc-ac6d-da5d0bb94833]
module.cloudwatch_custom_bus["s3-object-created-rule"].aws_cloudwatch_event_target.this["target1"]: Refreshing state... [id=custom-bus-s3-object-created-rule-Ida13e361a-e8eb-4acc-ac6d-da5d0bb94833]

this result in an regex validation error for / for the rule attr

 Error: "rule" doesn't comply with restrictions ("^[0-9A-Za-z_.-]+$"): "data-pipeline-bus/s3-object-created-rule"
│ 
│   with module.cloudwatch_custom_bus["s3-object-created-rule"].aws_cloudwatch_event_target.this["target1"],
│   on .terraform/modules/cloudwatch_data_pipeline/main.tf line 16, in resource "aws_cloudwatch_event_target" "this":
│   16:   rule           = aws_cloudwatch_event_rule.this.id

@johnricords johnricords merged commit 3fc6832 into plus3it:main Jul 26, 2024
5 checks passed
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