https://pulumi.com logo
#golang
Title
# golang
w

wide-crayon-4093

04/22/2021, 9:28 AM
e.g instead of
Copy code
type ConfigResource struct {
  section ConfigResourceSection
}

type ConfigResourceSection struct {
  field string
}
have
Copy code
type ConfigResource struct {
  section ConfigResourceSection // or SomeSpecArgs
}

type ConfigResourceSection struct {
  field pulumi.StringInput
}
b

brash-match-91530

04/22/2021, 11:51 AM
No you can't. Under the hood, pulumi's config pkg is using the built in
json
un-marshaling to parse the configuration values, and you can only un-marshal to simple types (e.g, int, string) and not complex ones (e.g. pulumi.Int or pulumi.String)
👍 1
w

wide-crayon-4093

04/24/2021, 5:13 PM
thank you!
3 Views