important-leather-28796
03/07/2019, 9:21 PMlemon-spoon-91807
03/07/2019, 9:21 PMimportant-leather-28796
03/07/2019, 9:21 PM[
{
"maxAgeSeconds": 0,
"methods": [
"GET"
],
"origins": [
"<http://Calling> [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi.",
"<https://Calling> [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi.",
"https://*.Calling [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi."
],
"responseHeaders": []
}
]
cors: [
{
methods: ['GET'],
origins: [`http://${domain}`, `https://${domain}`, `https://*.${domain}`],
},
],
domain
is stack.identity.getOutput('domain')
lemon-spoon-91807
03/07/2019, 9:22 PM[pulumi.interpolate `http://${domain}`, ...
important-leather-28796
03/07/2019, 9:24 PMlemon-spoon-91807
03/07/2019, 9:24 PMhttp://${somePromise}
somePromise.then(p => `http://${p}`)
domain.apply(d => [`http://${d}`, `https://${d}`, `https://*.${d}`])
important-leather-28796
03/07/2019, 9:25 PMexport interface AttachmentBucketArgs extends Omit<Partial<BucketArgs>, 'project'> {
domain: Input<string>
project: Input<string>
}
lemon-spoon-91807
03/07/2019, 9:27 PMpulumi.output(domain).apply(...)
pulumi.output
takes in any Input and makes it an Output.important-leather-28796
03/07/2019, 9:28 PMlemon-spoon-91807
03/07/2019, 9:29 PMimportant-leather-28796
03/07/2019, 9:31 PMcors: [
{
methods: ['GET'],
origins: output(domain).apply(d => [`http://${d}`, `https://${d}`, `https://*.${d}`]),
},
],
lemon-spoon-91807
03/07/2019, 9:32 PMimportant-leather-28796
03/07/2019, 9:32 PM[
{
"maxAgeSeconds": 0,
"methods": [
"GET"
],
"origins": [
"<http://Calling> [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi.",
"<https://Calling> [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi.",
"https://*.Calling [toString] on an [Output<T>] is not supported.\n\nTo get the value of an Output<T> as an Output<string> consider either:\n1: o.apply(v => `prefix${v}suffix`)\n2: pulumi.interpolate `prefix${v}suffix`\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi."
],
"responseHeaders": []
}
]
lemon-spoon-91807
03/07/2019, 9:34 PMmerge
?important-leather-28796
03/07/2019, 9:34 PMpulumi
so that this wouldn’t happenlemon-spoon-91807
03/07/2019, 9:41 PMimportant-leather-28796
03/07/2019, 9:41 PMlemon-spoon-91807
03/07/2019, 9:42 PM