-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
cors_rule problem #78
Comments
v1.24.0 has been just released. |
Additional information only after todays Anton stream, i realized that i can try migrate to terraform 13.1, i've done it and with jsonencode() this part start wokring fine. part of the code for cors_rule: cors_rule = jsonencode([
{
allowed_methods = ["PUT", "POST"]
allowed_origins = ["https://modules.tf", "https://terraform-aws-modules.modules.tf"]
allowed_headers = ["*"]
expose_headers = ["ETag"]
max_age_seconds = 3000
}, {
allowed_methods = ["PUT"]
allowed_origins = ["https://example.com"]
allowed_headers = ["*"]
expose_headers = ["ETag"]
max_age_seconds = 3000
}
]) anyway, thanks Anton for the new release and today's stream on youtube on your channel. |
I am glad that it works for you now. Here is the link to the stream where I was fixing this - https://youtu.be/hDRjCDsnyYI?t=3333 |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
I wan't to create one S3 bucket with cors_rule rule information, but getting error.
Versions
Reproduction
Steps to reproduce the behavior:
Code Snippet to Reproduce
Expected behavior
should create S3 with filled cors_rule from field cors_rule in terracgrunthcl
Actual behavior
error on terragrunt apply or\and terragrunt apply-all
Error: Invalid function argument
on main.tf line 25, in resource "aws_s3_bucket" "this":
25: for_each = length(keys(var.cors_rule)) == 0 ? [] : [var.cors_rule]
|----------------
| var.cors_rule is tuple with 2 elements
Invalid value for "inputMap" parameter: must have map or object type.
ERRO[0014] Hit multiple errors:
Hit multiple errors:
exit status 1
Additional context
thanks
The text was updated successfully, but these errors were encountered: