broad-dog-22463
01/14/2021, 9:42 PMbroad-dog-22463
01/14/2021, 9:43 PMlittle-cartoon-10569
01/14/2021, 9:46 PMdestroy
is being called? For some stacks I'm ok with up
making changes but want to prohibit destroy
.astonishing-gigabyte-43889
01/14/2021, 10:59 PMgray-xylophone-22620
01/15/2021, 12:35 AMeksCluster := eks.NewCluster(...)
, and then try to refer to it's security group securityGroup := eksCluster.VpcConfig.ToClusterVpcConfigOutput().ClusterSecurityGroupId().Elem()
. This results in panic: runtime error: invalid memory address or nil pointer dereference
error when doing pulumi up
. The problem seems to be that the Elem()
function causes too early pointer dereference. I can't just use value returned by ClusterSecurityGroupId()
because it returns StringPtrOutput
. This is incompatible with the type I need to create launch template, as LaunchTemplateArgs -> NetworkInterfaces -> SecurityGroups
is of StringArray
type, so I need StringOutput
. Can you help? Am I doing something wrong, or it's some kind of bug?tall-needle-56640
01/15/2021, 1:08 AMpulumi preview
?hundreds-egg-46465
01/15/2021, 4:22 AMdelete-replaced
and replaced
?full-mouse-82324
01/15/2021, 4:58 AMallow,deny
must be specified
exporting the firewall rule
with >>gcloud compute firewall-rules list --format=json
produces a valid firewall resource.
Using the cli with >>pulumi import gcp:compute/firewall:Firewall default projects/my-project/global/firewalls/allow-local
produces the same error.
This is true for all firewall rules. The vpc resource in the same import returns a valid preview.
Thoughts?worried-queen-62794
01/15/2021, 6:00 AMexampleCertificate.domainValidationOptions
output in a way that doesn't look like it would work.miniature-leather-70472
01/15/2021, 9:35 AMbroad-dog-22463
01/15/2021, 11:32 AMminiature-leather-70472
01/15/2021, 11:36 AMorange-holiday-79016
01/15/2021, 2:31 PMswift-hamburger-98290
01/15/2021, 5:03 PMpulumi up
? The problem we are facing is in Azure, and has to do with App Services, Deployment Slot, and deploy from ZIP. But the question is more generic I think.
Example:
const app = new azure.appservice.AppService("app", { ... });
const blob = new azure.storage.Blob("blob", { ... });
const slotName = `slot-staging-${Date.now()}`;
const slot = new azure.appservice.Slot(slotName, {
appSettings: {
WEBSITE_RUN_FROM_PACKAGE: azure.storage.signedBlobReadUrl(storage, blob),
}
...
},
});
new azure.appservice.ActiveSlot("swapslot", {
appServiceName: app.name,
appServiceSlotName: slot.name, // needs to be unique to swap with every `pulumi up`
resourceGroupName: resourceGroup.name,
});
After the first deployment, if the slot was swapped successfully, the ZIP running in production is the blob above mentioned. Now if we do pulumi up
a second time, and the slot is again swapped successfully, the ZIP running in production is again the blob defined above. But now the problem is that we "lose" the previous blob (n - 1
), so if for some reason we want to go back to the previous version, the ZIP is gone from the storage. We want to manage 2 blobs with a single blob declaration basically.
So the question is: can I somehow get the blob from the previous pulumi up
execution, thus keeping both the blob of the current deployment and the blob from the previous deployment?wet-soccer-72485
01/15/2021, 11:32 PMbillions-xylophone-85957
01/16/2021, 1:59 PMbig-island-38073
01/16/2021, 3:57 PMsticky-ram-39640
01/16/2021, 5:47 PMError: providerCredentialOpts and AWS_PROFILE must be set together
Must I configure a specific AWS profile and role for the providerCredentialOpts
?damp-optician-53935
01/16/2021, 5:47 PMswift-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 PMmammoth-honey-6147
01/18/2021, 9:38 PMlittle-cartoon-10569
01/18/2021, 9:44 PM