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

Number field #8

Closed
NicholasTing opened this issue Sep 19, 2023 · 3 comments
Closed

Number field #8

NicholasTing opened this issue Sep 19, 2023 · 3 comments

Comments

@NicholasTing
Copy link

Just wondering, is it possible to create an entry using Integer / Number?

resource "contentful_entry" "simple_content" {
  entry_id       = "simple_content_entry"
  space_id       = "develop"
  contenttype_id = contentful_contenttype.simple_content_type.id
  locale         = "en-US"
  field {
    id      = "text_field"
    content = "Hello, World Nick!"
    locale  = "en-US"
  }

  # field {
  #   id      = "number_field"
  #   content = 2
  #   locale  = "en-US"
  # }

  published  = false
  archived   = false
  depends_on = [contentful_contenttype.simple_content_type]
}
@NicholasTing
Copy link
Author

reason is im getting an error when creating number fields

@kitagry
Copy link
Owner

kitagry commented Sep 19, 2023

Thank you for the issue! Currently, terraform provider sdk doesn't support any type. So, if it will be implemented, I will fix it. Or, you can make pull request here.

https://github.com/kitagry/terraform-provider-contentful/blob/main/contentful/resource_contentful_entry.go#L53

@NicholasTing
Copy link
Author

yep! let me see what i can do, thanks kitagry :)

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

No branches or pull requests

2 participants