colossal-easter-73659
12/11/2020, 2:53 PMconst region: aws.Region = <aws.Region>"us-east-1";
const regionWest = aws.Region.USWest2;
const providerEast = new aws.Provider(`provider-${region}`, {
region: region,
profile: "dev_account_work",
});
const providerWest = new aws.Provider(`provider-${regionWest}`, {
region: regionWest,
profile: "dev_account_work",
});
const existing = aws.lambda.Function.get(
arnWest,
arnWest,
{},
{ provider: providerWest }
);
const endpoint = new awsx.apigateway.API(
"test-api",
{
routes: [
// Serve a simple REST API on `GET /name` (using AWS Lambda)
{
path: "/source",
method: "GET",
eventHandler: existing,
},
],
restApiArgs: {endpointConfiguration: { types: 'REGIONAL'}}
},
// { providers: [providerEast, providerWest] }
{provider: providerEast}
);
// Export the public URL for the HTTP service
exports.url = endpoint.url;
}
colossal-easter-73659
12/13/2020, 5:31 PMworried-queen-62794
12/16/2020, 11:27 AMDiagnostics:
pulumi:pulumi:Stack (auth-prod):
error: Running program '/Users/jason/source/tlayen-infrastructure/security/auth' failed with an unhandled exception:
TypeError: Class constructor ComponentResource cannot be invoked without 'new'
at new UserRole (/Users/jason/source/tlayen-infrastructure/modules/pulumix-aws/dist/index.js:77:28)
I am calling `new`:
const administratorUserRole = new UserRole("Administrator", {
accountId: accountId
}, opts);
All my other ComponentResources work fine.prehistoric-nail-50687
12/16/2020, 12:02 PMconst fs = require("fs");
const certBinary = fs.readFileSync("./mycomp.com.pfx");
const cert = new azure.appservice.Certificate("mycert", {
name: "mycert",
location: "switzerlandnorth",
resourceGroupName: "my-rg",
password: "xxxx",
pfxBlob: certBinary,
});
But I get this error:
azure:appservice:Certificate (mycert):
error: azure:appservice/certificate:Certificate resource 'mycert' has a problem: pfx_blob must be a single value, not a map
The certificate is fine, I can upload it without any issues via the azure portal by hand.green-country-86774
12/17/2020, 1:52 AMconst basic1 = new BasicResource("basic1", { value: "value1" })
const basic2 = new BasicResource("basic2", { value: "value2" }, { dependsOn: [basic1] })
I'm working on a dynamic resource and I was hoping to be able to run an update on basic2
when the value of basic1
changes. The use case I'm trying to address is rebuilding a search engine index if a facet value changes.future-oyster-5387
12/21/2020, 3:35 PMfuture-oyster-5387
12/21/2020, 9:19 PMroutes.push({
method: 'ANY',
path: '/',
localPath: path.join(__dirname, '../', 'frontend', 'build'),
})
but I don't see any options for it.best-lifeguard-91445
12/21/2020, 10:43 PMpanic: interface conversion: interface {} is string, not int
goroutine 1468 [running]:
<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.SerializeValueForHash(0xc0005e2f08|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.SerializeValueForHash(0xc0005e2f08>, 0x54033c0, 0x6fa5e00, 0xc000d08f00)
/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20200910230100-328eb4ff41df/helper/schema/serialize.go:24 +0x959
<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.SerializeResourceForHash(0xc0005e2f08|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.SerializeResourceForHash(0xc0005e2f08>, 0x5a626e0, 0xc0022b6f00, 0xc000cdfd90)
/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20200910230100-328eb4ff41df/helper/schema/serialize.go:115 +0x386
<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.HashResource.func1(0x5a626e0|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.HashResource.func1(0x5a626e0>, 0xc0022b6f00, 0xc00228d510)
/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20200910230100-328eb4ff41df/helper/schema/set.go:32 +0x6f
<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).hash(0xc00228d500|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).hash(0xc00228d500>, 0x5a626e0, 0xc0022b6f00, 0xc00228d360, 0xc00228d540)
/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20200910230100-328eb4ff41df/helper/schema/set.go:251 +0x44
<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).add(0xc00228d500|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).add(0xc00228d500>, 0x5a626e0, 0xc0022b6f00, 0x0, 0x5a626e0, 0xc0022b6f00)
/home/runner/go/pkg/mod/github.com/pulumi/terraform-plugin-sdk/v2@v2.0.0-20200910230100-328eb4ff41df/helper/schema/set.go:231 +0x8b
<http://github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).Add(...)|github.com/hashicorp/terraform-plugin-sdk/v2/helper/schema.(*Set).Add(...)>
worried-queen-62794
12/21/2020, 11:43 PMOutput<boolean> | undefined
and a function boolean => string | undefined
I can apply that to get Output<string | undefined> | undefined
. How can lift the inner undefined
out so it just becomes ``Output<string> | undefined` ?elegant-dress-88912
12/23/2020, 11:27 AMif (config.createS3Bucket) {
const s3Bucket = new ...
export s3BucketName = s3Bucket.name
}
The thing is that typescript wants all `export`'s to be at the top level. What do I do?proud-pizza-80589
12/23/2020, 11:43 AMMissing required configuration variable 'launchpad-cluster:gcp:zone'
quiet-tomato-48326
12/25/2020, 1:07 AMerror: .pulumi/stacks/news.thewest.json: snapshot integrity failure; refusing to use it: resource urn:pulumi:news.thewest::news::swm:curation$swm:fargate-app$aws:ecs/service:Service::news-thewest-curation-app-service dependency urn:pulumi:news.thewest::news::swm:curation$swm:fargate-app$aws:ecs/taskDefinition:TaskDefinition::news-thewest-curation-app-task refers to missing resource
Unfortunately, the .bak also has a snapshot integrity failure. How would you recover from this? I’m thinking it will require manually editing the state file. Any idea where to get started?quiet-tomato-48326
12/25/2020, 1:30 AMdependencies
sections of the affected resources, and the plan now wants to create the TaskDefinitions, and update the ECS services with the new task definitions. It looks like most of the task definitions are already deleted, but if there are any remaining, I’ll delete them manually.gorgeous-elephant-23271
12/30/2020, 6:31 PMgorgeous-elephant-23271
12/30/2020, 6:31 PM--attach-acr
az commandgorgeous-elephant-23271
12/30/2020, 6:33 PMgorgeous-elephant-23271
12/30/2020, 6:33 PMSecret "acr-secret" is invalid: data[.dockercfg]: Invalid value: "<secret contents redacted>": json: cannot unmarshal string into Go value of type map[string]interface {}
gorgeous-elephant-23271
12/30/2020, 6:33 PMgorgeous-elephant-23271
12/30/2020, 6:34 PMconst secretData = pulumi.all([acr.loginServer, servicePrincipal.id, password])
.apply(([loginServer, servicePrincipal, servicePrincipalPassword]) => {
return {
[loginServer]: {
username: servicePrincipal,
password: servicePrincipalPassword
}
}
})
const encoded = encode(JSON.stringify(secretData))
gorgeous-elephant-23271
12/30/2020, 6:47 PMKUBERNETES SECRETS
sectiongorgeous-elephant-23271
12/30/2020, 6:47 PMgorgeous-elephant-23271
12/30/2020, 7:20 PMproud-pizza-80589
01/01/2021, 6:15 PMunhandled rejection: CONTEXT(221): monitor.registerResourceOutputs(...)-initial
Full test code and error here: https://gist.github.com/roderik/1ff8d4df9c76f13f7441f7e5c34cc7dd Any idea how i can fix this?agreeable-ram-97887
01/01/2021, 11:26 PMbitter-dentist-28132
01/06/2021, 5:55 PMcolossal-monkey-98692
01/07/2021, 7:41 PMfuture-potato-71458
01/07/2021, 8:01 PMfuture-potato-71458
01/07/2021, 8:01 PM"metadata.annotations['<http://run.googleapis.com/client-version|run.googleapis.com/client-version>']",
future-potato-71458
01/07/2021, 8:01 PMpurple-beach-36424
01/08/2021, 4:59 PMOutput
to OutputInstance
otherwise the language server complains
protected service: k8s.core.v1.Service = ...;
...
backend: {
resource: {
apiGroup: this.service.apiVersion as pulumi.OutputInstance<string>,
kind: this.service.kind as pulumi.OutputInstance<string>,
name: this.name,
}
} as inputs.networking.v1beta1.IngressBackend
The odd thing is that from the typings, Output
is an OutputInstance
export declare type Output<T> = OutputInstance<T> & Lifted<T>;
Not a major issue but I don’t really understand the subtlety of that 😅 🤷