swift-monitor-84282
01/17/2021, 12:25 AMconst MyBucket = new aws.s3.Bucket("MyBucket")
const api = new awsx.apigateway.API("hello-world", {
routes: [{
path: "/",
method: "POST",
eventHandler: async (event) => {
return {
statusCode: 200,
body: "Hello, world!",
};
},
}],
})
How could I create/upload a file to "MyBucket" in the "eventHandler" lambda function logic?magnificent-restaurant-51456
01/17/2021, 2:15 PMlittle-cartoon-10569
01/17/2021, 9:07 PM<http://api.pulumi.com|api.pulumi.com>
fall off the internet for a few minutes? A deployment failed, but I can now reach the webui..faint-motherboard-95438
01/17/2021, 11:23 PMDiagnostics:
pulumi:providers:eks (default):
error: no resource plugin 'eks' found in the workspace or on your $PATH
I have no idea what that’s supposed to mean or what to do to get rid of it, never had this one in 2 years.
Using typescript, cleaned up everything, started from a fresh built container, same problem.
"@pulumi/aws": "3.23.0",
"@pulumi/awsx": "0.23.0",
"@pulumi/eks": "0.21.0",
"@pulumi/kubernetes": "2.7.6",
"@pulumi/postgresql": "2.5.3",
"@pulumi/pulumi": "2.17.2",
"@pulumi/random": "3.0.1",
Anyone would know what to do here ?swift-monitor-84282
01/18/2021, 12:24 AMjolly-camera-35709
01/18/2021, 6:57 AMnarrow-battery-9106
01/18/2021, 11:50 AMapiextensions.NewCustomResource
.
Is it right way to do? Or is there better solution using go or other languages?prehistoric-nail-50687
01/18/2021, 12:46 PMswift-agency-29333
01/18/2021, 1:16 PMeager-petabyte-62054
01/18/2021, 9:23 PMpulumi import -f <resource.json>
tool. One problem I ran into is how to get id
s of the resources. I can import them using pulumi import <type> <name>
without specifying ids. For example, pulumi import aws:sagemaker/endpoint:Endpoint 'model-endpoint' 'mode'
works as expected. I tried not specifying ids in the json, but that caused the tool to panic. I took a look at the doc, but still couldn’t find an answer.mammoth-honey-6147
01/18/2021, 9:38 PMlittle-cartoon-10569
01/18/2021, 10:08 PMfull-dress-10026
01/19/2021, 1:34 AMcCluster.cluster.apply(cluster => {...
to services = pulumi.all([cCluster.cluster, taskDefs]).apply(([cluster, taskDefs]) => {
causes the Pulumi preview diff to think it needs to delete many resources. The key change is the switch to pulumi.all
. Once running the up
, it does not actually delete the resources it thought it needed to. Is there some way to get the Pulumi diff to operate correctly with pulumi.all
? This issue makes the preview unusable.ripe-holiday-8134
01/19/2021, 7:44 AMpulumi import gcp:compute/firewall:Firewall default projects/my-test-project/global/firewalls/my-firwall-rule
and getting the next error:
`error: gcpcompute/firewallFirewall resource 'my-firwall-rule' has a problem: "deny": one of allow,deny
must be specified`
`error: gcpcompute/firewallFirewall resource 'my-firwall-rule' has a problem: "allow": one of allow,deny
must be specified`
https://www.pulumi.com/docs/reference/pkg/gcp/compute/firewall/#import
someone knows what is missing?famous-twilight-87777
01/19/2021, 4:24 PMfamous-twilight-87777
01/19/2021, 4:25 PMfamous-twilight-87777
01/19/2021, 4:25 PMservice_account_key.privateKey.apply(k => writeFileSync("/tmp/test.json", Buffer.from(k,'base64').toString()));
famous-twilight-87777
01/19/2021, 4:26 PMproud-hair-78501
01/20/2021, 8:47 AMproud-hair-78501
01/20/2021, 8:54 AMproud-hair-78501
01/20/2021, 8:54 AMgifted-lifeguard-15584
01/20/2021, 10:26 AMincalculable-engineer-92975
01/20/2021, 2:17 PMincalculable-engineer-92975
01/20/2021, 2:18 PMbumpy-laptop-30846
01/20/2021, 4:46 PMpulumi new aws-typescript
. The pulumi requests that I login to the console. Is it normal? I follow this guideproud-hair-78501
01/20/2021, 6:35 PMproud-hair-78501
01/20/2021, 6:36 PMrough-optician-63632
01/20/2021, 6:51 PMContainerDefinition
string using a lookup value as part of my string in TypeScript.
const ecr = pulumi.output(
aws.ecr.getRepository(
{
name: `${environmentName}/${repositoryName}`,
},
{ async: true }
)
)
const containerDefinitions = JSON.stringify([
{
name: this.FormattedName,
image: pulumi.interpolate`${ecr.repositoryUrl}:${imageVersion}`,
portMappings: portMappings,
environment: environmentVariables
},
])
The containerDefinition variable later goes on to be used in the args of a new aws.ecs.TaskDefinition(name, args)
. When I console.log that container definition I get the following value for image:
[{… "image":"Calling [toJSON] on an [Output<T>] is not supported.\n\nTo get the value of an Output as a JSON value or JSON string consider either:\n 1: o.apply(v => v.toJSON())\n 2: o.apply(v => JSON.stringify(v))\n\nSee <https://pulumi.io/help/outputs> for more details.\nThis function may throw in a future version of @pulumi/pulumi." …}]
I started without the interpolate and I got a similar error (for toString instead of toJSON) suggesting I add the interpolate. Appending .apply((x) => JSON.stringify(x))
as it suggests to that interpolate results in the same error.
I'm sure I'm misusing something here. Can anyone help point out what I’m doing wrong please?elegant-island-39916
01/21/2021, 10:30 AMpulumi up
on k8s when their images target :latest
? no changes will be required after the first update, but i would like k8s to pull down the new imageelegant-island-39916
01/21/2021, 11:33 AMaws-load-balancer-controller
that generates a new secret each time pulumi up
is run, is there any way to get pulumi to ignore_changes
of the generated outputs of the helm chart plan?