-
Notifications
You must be signed in to change notification settings - Fork 568
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
feat!: Add matches_prefix and matches_suffix conditions #202
feat!: Add matches_prefix and matches_suffix conditions #202
Conversation
57fe5c4
to
dc0f1ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
6e0a2f1
to
c6cd629
Compare
@bharathkkb Hello! Is there anything I can do to help move this forward? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c6cd629
to
6dc8e98
Compare
examples/simple_bucket/main.tf
Outdated
with_state = "ANY" | ||
age = 365 | ||
with_state = "ANY" | ||
matches_prefix = [var.project_id] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe this should now be just a string? Tests are failing with
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185: Error: Invalid function argument
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185:
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185: on ../../modules/simple_bucket/main.tf line 75, in resource "google_storage_bucket" "bucket":
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185: 75: matches_prefix = contains(keys(lifecycle_rule.value.condition), "matches_prefix") ? split(",", lifecycle_rule.value.condition["matches_prefix"]) : null
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185: ├────────────────
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185: │ lifecycle_rule.value.condition["matches_prefix"] is tuple with 1 element
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185:
TestAll/examples/simple_bucket 2022-12-12T17:57:50Z command.go:185: Invalid value for "str" parameter: string required.
73af305
to
de6c9db
Compare
Update versions.tf to use minimum provider version `4.31` Update simple_bucket module to include matches_prefix and matches_suffix conditions.
de6c9db
to
ddec583
Compare
@zmaupin |
@bharathkkb I figured out the problem. Looks like things are all passing now! |
No description provided.