gentle-diamond-70147
10/18/2018, 1:35 AMgentle-diamond-70147
10/18/2018, 1:36 AMglamorous-printer-66548
10/18/2018, 3:26 AMglamorous-printer-66548
10/18/2018, 5:42 AMurl
that is only set und certain conditions. I.e. how about:
public readonly url?: pulumi.Output<string>
?bright-motherboard-93404
10/18/2018, 2:57 PMmetrics
field coming from my actual stack. The problem is that at the time the instance ids arrive at JSON.stringify(), they are still Outputs
, and get serialized to something like [object object]
or similar. This results in the metric definition being rejected by cloudwatch.bright-motherboard-93404
10/18/2018, 2:59 PMstocky-spoon-28903
10/18/2018, 3:01 PMapply
to defer calculation of the payload until the output is available.stocky-spoon-28903
10/18/2018, 3:01 PMstocky-spoon-28903
10/18/2018, 3:04 PMconst policyDoc = pulumi.all([kmsKey.arn, keyBucket.arn])
.apply(([kmsARN, bucketARN]) => {
const policy: aws.iam.PolicyDocument = {
Version: "2012-10-17",
Statement: [
{
Sid: "AllowEncryptDecrypt",
Effect: "Allow",
Action: [
"kms:Encrypt",
],
Resource: [
kmsARN, // This is a reified string
],
},
stocky-spoon-28903
10/18/2018, 3:04 PMbright-motherboard-93404
10/18/2018, 3:04 PMstocky-spoon-28903
10/18/2018, 3:05 PMstocky-spoon-28903
10/18/2018, 3:06 PMbright-motherboard-93404
10/18/2018, 3:08 PMstocky-spoon-28903
10/18/2018, 3:08 PMstocky-spoon-28903
10/18/2018, 3:10 PMadamant-restaurant-73893
10/18/2018, 3:27 PMbusy-umbrella-36067
10/18/2018, 4:22 PMpulumi refresh
fails to complete:
Diagnostics:
kubernetes:core:Service: XXXXXXXXX
error: Preview failed: 2 errors occurred:
* Resource 'XXXXXXXXX' was created but failed to initialize
* Service does not target any Pods. Application Pods may failed to become alive, or field '.spec.selector' may not match labels on any Pods
error: an error occurred while advancing the preview
the failed resource is never added to state, and the new resource with the fixed label canāt be created because there is a name collision with the ātaintedā resourcestale-holiday-22431
10/18/2018, 5:39 PMhelm repo add coreos <https://s3-eu-west-1.amazonaws.com/coreos-charts/stable/>
helm install coreos/prometheus-operator --name prometheus-operator --namespace monitoring
So Iām trying this in Pulumi:
const chart = new k8s.helm.v2.Chart('prometheus-operator', {
repo: '<https://s3-eu-west-1.amazonaws.com/coreos-charts/stable>',
version: '0.0.29',
chart: 'prometheus-operator',
})
But Pulumi reports that Helm 404'd trying to find the chart.stale-holiday-22431
10/18/2018, 5:51 PMstale-holiday-22431
10/18/2018, 5:55 PMsparse-insurance-40223
10/18/2018, 5:59 PMsparse-insurance-40223
10/18/2018, 6:00 PMstale-holiday-22431
10/18/2018, 6:00 PMcreamy-potato-29402
10/18/2018, 6:23 PMcreamy-potato-29402
10/18/2018, 6:23 PMcreamy-potato-29402
10/18/2018, 6:23 PMcreamy-potato-29402
10/18/2018, 6:24 PMcreamy-potato-29402
10/18/2018, 6:24 PMstale-holiday-22431
10/18/2018, 6:25 PM