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

Grants have issue. #45

Closed
hirenshah005 opened this issue Oct 8, 2020 · 3 comments · Fixed by #46
Closed

Grants have issue. #45

hirenshah005 opened this issue Oct 8, 2020 · 3 comments · Fixed by #46

Comments

@hirenshah005
Copy link

hirenshah005 commented Oct 8, 2020

Hi @antonbabenko while using Grants like this as per example

  grant = [{
    type        = "CanonicalUser"
    permissions = ["FULL_CONTROL"]
    id          = data.aws_canonical_user_id.current.id
  }, {
    type        = "Group"
    permissions = ["READ_ACP", "WRITE"]
    uri          = "http://acs.amazonaws.com/groups/s3/LogDelivery"
  }]


I am getting below error

  12:   grant = [{
  13:     type        = "CanonicalUser"
  14:     permissions = ["FULL_CONTROL"]
  15:     id          = data.aws_canonical_user_id.current.id
  16:   }, {
  17:     type        = "Group"
  18:     permissions = ["READ_ACP", "WRITE"]
  19:     uri          = "http://acs.amazonaws.com/groups/s3/LogDelivery"
  20:   }]

The given value is not suitable for child module variable "grant" defined at
.terraform/modules/s3.example-infrastructure/variables.tf:97,1-17: all list
elements must have the same type.

@hirenshah005
Copy link
Author

@antonbabenko in my opinion the grant variable should be set to any.

variable "grant" {
  description = "An ACL policy grant. Conflicts with `acl`"
  type        = any
  default     = []
} 

As this worked in my case.

@antonbabenko
Copy link
Member

Hi!

You are absolutely right.

Please update to use v1.14.0 which has been just released.

@github-actions
Copy link

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants