chilly-magazine-4507
03/10/2020, 2:47 PMbitter-dentist-28132
03/10/2020, 5:46 PMtall-stone-8237
03/11/2020, 6:24 AMmammoth-caravan-51104
03/11/2020, 8:18 AMlimited-rainbow-51650
03/11/2020, 10:47 AMpulumi up [template|url] [flags]
However the docs do not specify much on what template
or url
can be. Can this be elaborated a bit more?better-actor-92669
03/11/2020, 10:47 AMError reading SslCertificate: googleapi: Error 400: The ssl_certificate resource 'projects/some-project/global/sslCertificates/base-site-ssl-certificate' is already being used by 'projects/some-project/global/targetHttpsProxies/base-site-http-proxy', resourceInUseByAnotherResource
thousands-london-78260
03/11/2020, 1:23 PMacceptable-army-69872
03/11/2020, 2:33 PMbetter-rainbow-14549
03/11/2020, 3:49 PMunable to open bucket <file://oldfolder>
including pulumi logoutbitter-dentist-28132
03/11/2020, 4:07 PMdeleteBeforeReplace: true
?echoing-breakfast-73834
03/11/2020, 4:56 PMearly-musician-41645
03/11/2020, 5:15 PMearly-intern-90238
03/11/2020, 11:05 PMthousands-london-78260
03/11/2020, 11:23 PMconfigured Kubernetes cluster is unreachable: failed to parse kubeconfig data in `kubernetes:config:kubeconfig`; this must be a YAML literal string and not a filename or path - yaml: line 2: mapping values are not allowed in this context
billowy-army-68599
03/12/2020, 12:44 AMexport interface RKEClusterNode {
// snip
/**
* Node roles in k8s cluster. `controlplane`, `etcd` and `worker` are supported. (list)
*/
roles: pulumi.Input<pulumi.Input<string>[]>;
roles?: pulumi.Input<string>;
}
So I gave the following a try
Resources: map[string]*tfbridge.ResourceInfo{
"rke_cluster": {
Tok: makeResource(mainMod, "RKECluster"),
Fields: map[string]*tfbridge.SchemaInfo{
"nodes": {
Fields: map[string]*tfbridge.SchemaInfo{
"roles": {
Name: "RoleList",
},
},
},
},
},
},
billowy-army-68599
03/12/2020, 12:45 AMrapid-lamp-57703
03/12/2020, 3:00 PMprehistoric-pillow-672
03/12/2020, 3:46 PMfast-dinner-32080
03/12/2020, 5:19 PMfast-dinner-32080
03/12/2020, 5:50 PMstring test = $"Test String: {args.Name.Apply(x => x.ToString())}";
but that doesn't seem to work where I get
Test String: Pulumi.Output`1[System.String]
rapid-lamp-57703
03/12/2020, 7:08 PMbillowy-army-68599
03/12/2020, 7:20 PMbillowy-army-68599
03/12/2020, 8:53 PMfull-dress-10026
03/12/2020, 10:19 PMpulumi up
.
error: [500] Internal Server Error
kind-minister-39119
03/13/2020, 1:11 AMget_vpc
and get_subnet
, but aws.ec2.Instance
does not give me the opportunity to specify a VPC ID. The result is when I specify the subnet, I get this error:
aws:ec2:Instance (ansible-master):
error: Error launching source instance: InvalidGroup.NotFound: The security group 'mgmt-ansible-master-sg-xxxx' does not exist in VPC 'vpc-xxxxxx'
status code: 400, request id: xxxxx
vpc = aws.ec2.get_vpc(cidr_block="172.18.0.0/16")
subnet = aws.ec2.get_subnet(vpc_id=vpc.id, cidr_block="172.18.1.0/24")
group = aws.ec2.SecurityGroup('mgmt-ansible-master-sg',
description='Ansible Master Security Group',
ingress=[
{ 'protocol': 'tcp', 'from_port': 22, 'to_port': 22, 'cidr_blocks': ['172.18.0.0/24'] }
],
egress=[
{ 'protocol': '-1', 'from_port': 0, 'to_port': 0, 'cidr_blocks': ['0.0.0.0/0'] }
], vpc_id=vpc.id)
server = aws.ec2.Instance("ansible-master",
instance_type=size,
security_groups=[group.name],
ami=ami.id, key_name='mgmt', subnet_id=subnet.id)
rapid-lamp-57703
03/13/2020, 9:28 AMacceptable-stone-35112
03/13/2020, 2:18 PMwet-sunset-4939
03/13/2020, 2:39 PMazure:storage/account:Account resource 'xxxx' has a problem: static_website.0: invalid or unknown key: error404_document
wet-sunset-4939
03/13/2020, 3:30 PMMessage="Property id '' at path 'properties.hostingEnvironmentProfile.id' is invalid. Expect fully qualified resource Id that start with '/subscriptions/{subscriptionId}' or '/providers/{resourceProviderNamespace}/'.
elegant-crayon-4967
03/13/2020, 8:18 PM// runTests executes all test files (*.ts) in the current directory.
export function runTests() {
// Create a new Mocha test runner (with a long timeout).
const mocha = new Mocha({ timeout: 1000*60*30 });
// Only keep the .ts files, and skip this file (index.ts).
const testDir = __dirname;
fs.readdirSync(testDir).
filter(file => file.endsWith(".ts") && file !== "index.ts").
forEach(file => { mocha.addFile(path.join(testDir, file)); });
// Now actually run the tests with the desired reporter.
console.log(`Running Mocha Tests: ${mocha.files}`);
mocha.reporter("spec").run(failures => {
process.exitCode = failures ? 1 : 0;
});
}
// promise returns a resource output's value, even if it's undefined.
export function promise<T>(output: pulumi.Output<T>): Promise<T | undefined> {
return (output as any).promise() as Promise<T>;
}
to arrow functions. I’m not sure how to do that for the export function promise<T>
anyone have updated code that uses arrow functions for the testing?elegant-crayon-4967
03/13/2020, 8:18 PM// runTests executes all test files (*.ts) in the current directory.
export function runTests() {
// Create a new Mocha test runner (with a long timeout).
const mocha = new Mocha({ timeout: 1000*60*30 });
// Only keep the .ts files, and skip this file (index.ts).
const testDir = __dirname;
fs.readdirSync(testDir).
filter(file => file.endsWith(".ts") && file !== "index.ts").
forEach(file => { mocha.addFile(path.join(testDir, file)); });
// Now actually run the tests with the desired reporter.
console.log(`Running Mocha Tests: ${mocha.files}`);
mocha.reporter("spec").run(failures => {
process.exitCode = failures ? 1 : 0;
});
}
// promise returns a resource output's value, even if it's undefined.
export function promise<T>(output: pulumi.Output<T>): Promise<T | undefined> {
return (output as any).promise() as Promise<T>;
}
to arrow functions. I’m not sure how to do that for the export function promise<T>
anyone have updated code that uses arrow functions for the testing?export const promise: <T>(output: pulumi.Output<T>) =>
pulumi.Output<T> = (output) => output;