few-dog-41530
05/15/2019, 5:29 PMfew-dog-41530
05/15/2019, 5:29 PMfew-dog-41530
05/15/2019, 5:29 PMDiagnostics:
pulumi:pulumi:Stack (calendribe-nestjs-auth0-mgmt-gcp-functions-test):
error: update failed
gcp:cloudfunctions:Function (hello):
error: Plan apply failed: googleapi: Error 400: The request has errors, badRequest
few-dog-41530
05/15/2019, 5:30 PMfew-dog-41530
05/16/2019, 5:50 PMNODE_ENV
as an environment variable.
However, it took me forever to figure out because pulumi gave me the unhelpful error Error while updating cloudfunction configuration: googleapi: Error 400: The request has errors, badRequest
few-dog-41530
05/16/2019, 5:52 PMgcloud functions deploy hello --update-env-vars NODE_ENV=production --trigger-http --runtime nodejs8
few-dog-41530
05/16/2019, 5:52 PMERROR: (gcloud.functions.deploy) ResponseError: status=[400], code=[Bad Request], message=[The request has errors
Problems:
environment variable name NODE_ENV is reserved by the system: it cannot be set by users
]
few-dog-41530
05/16/2019, 5:52 PMfew-dog-41530
05/16/2019, 5:58 PMaverage-france-63073
05/17/2019, 12:22 PMaverage-france-63073
05/17/2019, 12:22 PMaverage-france-63073
05/17/2019, 12:42 PMcuddly-barista-79466
05/21/2019, 5:28 PMimport * as pulumi from '@pulumi/pulumi';
import * as aws from '@pulumi/aws';
pulumi.getStack;
const sopsUsers = ['Role1', 'Role2', 'Admins'];
const getsopsUsersArns = sopsUsers.map(r => {
const role: pulumi.Output<
pulumi.UnwrappedObject<aws.iam.GetRoleResult>
> = pulumi.output(
aws.iam.getRole({
name: r
})
);
return role;
});
export const sopsUsersArns = getsopsUsersArns.map(i => i.apply(a => a.arn));
const keyPolicyDocument = pulumi.output(
aws.iam.getPolicyDocument({
statements: [
{
sid: 'Allow attachment of persistent resources',
effect: 'Allow',
principals: [
{
type: 'AWS',
identifiers: getsopsUsersArns.map(i => i.apply(a => a.arn))
}
],
actions: ['kms:CreateGrant', 'kms:ListGrants', 'kms:RevokeGrant'],
resources: ['*'],
conditions: [
{
test: 'Bool',
variable: 'kms:GrantIsForAWSResource',
values: ['true']
}
]
}
]
})
);
const key = new aws.kms.Key('sopsKey',
{
policy: keyPolicyDocument.json
}
);
const alias = new aws.kms.Alias('alias/sopsKey',
{
targetKeyId: key.keyId
}
);
export const kmsKeyName = alias.name;
lively-lifeguard-43619
05/30/2019, 1:54 PMstocky-spoon-28903
05/30/2019, 2:12 PMlively-lifeguard-43619
05/30/2019, 2:15 PMstocky-spoon-28903
05/30/2019, 2:17 PMstocky-spoon-28903
05/30/2019, 2:17 PMlively-lifeguard-43619
05/30/2019, 2:39 PMbillions-lock-80282
06/06/2019, 10:35 AMsticky-camera-42272
06/07/2019, 1:54 PMSource blocks are documented below
but they don't actually seem to be documented anywhere. Are there any examples of how to do what I need?square-bear-79319
06/12/2019, 3:36 PMPULUMI_CONFIG="{ \"aws:region\": \"us-east-1\", \"istio_version\": \"1.1.7\" }"
, but it does not seem to work. When i output the config values. it only has the value of the name which is part of PULUMI_NODEJS_PROJECT="wawa-runtime-istio";
. In general, PULUMI_CONFIG does not seem to take the values provided and is not working as intended.
Any help on this is much appreciated.
Config { name: 'wawa-runtime-istio' }
Error: repo istio-undefined not found
Error: repo istio-undefined not found
(node:22548) UnhandledPromiseRejectionWarning: Error: Error: Command failed: helm fetch istio-undefined/istio-init --untar --version undefined --destination C:\Users\guptak1\AppData\Local\Temp\1\tmp-22548iGyXL4S208pz
Error: repo istio-undefined not found
jolly-egg-4894
06/13/2019, 2:24 PMconst topic = new aws.sns.Topic("sns");
topic.onEvent("event", async (event) => {
console.log(event);
});
error: Plan apply failed: deleting urn:pulumi:pulumi-peoplehr::pulimi-peoplehr::cloud:topic:Topic$aws:sns/topic:Topic::sns: InvalidParameter: Invalid parameter: TopicArn
cuddly-barista-79466
06/13/2019, 6:56 PMipv4_address = "${cidrhost(var.vsphere_vm_int1_network_address, var.vsphere_vm_int1_network_address_start + count.index)}"
gray-manchester-37402
06/18/2019, 5:57 PMplain-businessperson-30883
06/19/2019, 3:18 PMaws.iam.getPolicyDocument
. I need to set a KMS Key in the resources
field, but I get an error error TS2322: Type 'Output<string>' is not assignable to type 'string'.
.
It seems the interface expects a string resources?: string[];
. Is there a way to convert the Output<string>
to string
? The only thing I see is to not use the aws.iam.getPolicyDocument
.
I see other thread here with a similar issue, but no answer was given: https://pulumi-community.slack.com/archives/CJ909TL6P/p1558459714056300white-balloon-205
.getFoo
inside an .apply
on the Output.plain-businessperson-30883
06/19/2019, 3:19 PMswift-postman-59572
06/22/2019, 12:16 AMconst config = new pulumi.Config();
const existingSecurityGroup = config.require('existingSG');
const cluster = new awsx.ecs.Cluster(`app-${env}`, {
securityGroups: [existingSecurityGroup],
vpc: vpc,
name: `app-${env}`
});
early-match-56268
06/22/2019, 9:27 PMpulumi
├── Pulumi.dev.yaml
├── Pulumi.yaml
├── README.md
├── gcp
│ ├── README.md
│ ├── index.ts
│ └── k8s.ts
├── index.ts
├── k8s
│ ├── index.ts
│ ├── namespace.ts
│ └── secret.ts
├── package-lock.json
├── package.json
└── tsconfig.json
and in the pulumi/index.ts
import * as gcp from './gcp'
export let devKubeconfig = gcp.devKubeconfig
My problem is that none of resources in the pulumi/k8s/
dir are getting picked up by pulumi when i run pulumi up
. If I import the resources and then export one of them in the pulumi/index.ts
then they show up. Trying to figure out what I am doing wrong