incalculable-thailand-44404
03/28/2023, 6:06 AMglamorous-secretary-56169
03/28/2023, 8:37 AMpowerful-printer-57241
03/28/2023, 9:24 AMpowerful-fall-86307
03/28/2023, 10:40 AMenough-scooter-58931
03/28/2023, 11:57 AMgreat-sunset-355
03/28/2023, 1:03 PMincalculable-rose-91093
03/28/2023, 1:24 PMrandom = local.Command(resource_name, create=f'''python3 python_test.py "{query}" "{connection_object}"''')
But I am getting below error
/bin/sh: 1: cannot open trino.dbapi.Connection: No such filebland-pharmacist-96854
03/28/2023, 1:49 PMpulumi stack import
?bright-orange-69401
03/28/2023, 2:28 PMparent
without triggering a replacement, but in a way that can be versioned in Git and automatically deployed ?
(I used to pulumi stack export
, manually edit then pulumi stack import
but I wonder if there’s a cleaner way to do this)stocky-sundown-45608
03/28/2023, 2:41 PMcurved-kitchen-24115
03/28/2023, 6:26 PM@pulumi/kubernetes
and @pulumi/command
to delete some CRDs when a specific helm chart is deleted. I'd like to be able to write:
new local.Command("name", {
delete: "kubectl delete thing"
}, { provider: k8sProvider});
However that yields: unrecognized resource type: "command:local:Command" for this provider
The error message suggests that somehow makeKubeProvider can be made aware of other providers - but it's really opaque to me as to how this happens. I'm also pulling a blank searching for docs on how this works. Does anyone have any pointers?echoing-address-44214
03/29/2023, 1:42 AMpulumi.Input<string>
field in my constructor? Imagine the following code:
class RuwenTest extends pulumi.ComponentResource {
constructor(
name: string,
text: pulumi.Input<string>,
opts?: pulumi.ComponentResourceOptions
) {
super("ruwen:index:Test/Test", name, {}, opts);
// validate if text contains foo
pulumi.output(text).apply((t) => {
if (t.includes("foo")) {
throw new Error("text contains foo");
}
});
}
}
Since apply is not executed in pulumi preview, I will only see the error if I actually apply the change. I want to see it early. And I struggled to unit test the error.
What is the recommended approach?fresh-spring-82225
03/29/2023, 2:51 AMawsx.ecr.Image
in a github action. In update mode it works fine, but in preview mode it fails with this message:
awsx:ecr:Image ([image-name]):
error: Head "https://***.<http://dkr.ecr.us-east-2.amazonaws.com/v2/[redacted]/manifests/latest|dkr.ecr.us-east-2.amazonaws.com/v2/[redacted]/manifests/latest>": no basic auth credentials
where the URL is my FROM
image in a private ecr repo. Anyone else seen this peculiar failure mode?proud-art-41399
03/29/2023, 8:22 AM.pulumi/Pulumi.yaml
in the case of self-managed backend? In my case it's backed by AWS S3 bucket. I've just found out that my builds haven't been passing since 23th March because my fine-grained IAM role for use with GitHub Actions doesn't contain permission to access this object. The builds were passing until that time, though, the last one passing just a couple of hours before. The Pulumi version used by Pulumi GitHub action changed from v3.58.0 to v3.59.0 between the passing and failing job, if that matters.
Was that .pulumi/Pulumi.yaml
file/object just introcuded by that time? I haven't found any mentions about it in https://www.pulumi.com/docs/intro/concepts/state/.wet-noon-14291
03/29/2023, 9:06 AMpulumi stack export
command? I can't export any stacks at the moment:
error: stack names are limited to 100 characters and may only contain alphanumeric, hyphens, underscores, or periods:
better-park-50917
03/29/2023, 11:02 AMerror: failed to solve with frontend dockerfile.v0: failed to read dockerfile: open /var/lib/docker/tmp/buildkit-mount1744191223/myapp.api\Dockerfile: no such file or directory
folder structure
src
-- myapp.api
----- Dockerfile
-- myapp.api.contracts
-- deploy (Pulumi c#)
----- Pulumi.yml
----- deploy.csproj
-- myapp.sln
c# code
var apiImage = new Image("api-image", new()
{
Build = new DockerBuildArgs
{
Context = "..",
Dockerfile = "..\\myapp.api\\Dockerfile",
Platform = "linux/amd64",
},
ImageName = repo.RepositoryUrl,
Registry = new RegistryArgs
{
Server = repo.RepositoryUrl,
Username = username,
Password = password
}
});
Any suggestions what's wrong? I'm using Windows machine (powershell)able-scientist-76283
03/29/2023, 3:18 PMenough-painter-7423
03/29/2023, 3:25 PMname
field of Pulumi.yaml
gracefully? If I just modify the field in the file with Vim, that results in changing all URNs and recreating all the existing resources
$ cat Pulumi.yaml
name: Infrastructure
runtime: dotnet
description: my infrastructure
V
name: NetworkInfra
runtime: dotnet
description: my network infrastructure
ambitious-continent-10899
03/30/2023, 12:10 AMaz keyvault network-rule add
. I am attempting to use https://www.pulumi.com/registry/packages/azure-native/api-docs/keyvault/vault/ However I am getting this error: error: cannot create already existing resource
for the virtualNetworkRule.delightful-pilot-97750
03/30/2023, 3:01 AMdestroy
the resource. It’s showing this issue:
The user you were trying to authenticate as differs from the user currently logged in at the IDP
refined-printer-82490
03/30/2023, 7:07 AMView in Browser (Ctrl+O): <https://app.pulumi.com/markns/my-container-service/dev/updates/9>
Type Name Status
pulumi:pulumi:Stack my-container-service-dev
- └─ aws:ec2:SecurityGroup service-mns-sg deleting (215s)
What should I do here? Go and delete the resources manually?rough-gold-80735
03/30/2023, 7:35 AMrefined-printer-82490
03/30/2023, 11:56 AMconst policy: aws.iam.PolicyDocument = {
Version: "2012-10-17",
Statement: [
{
Action: "sts:AssumeRole",
Principal: {
Service: "<http://ecs-tasks.amazonaws.com|ecs-tasks.amazonaws.com>"
},
Effect: "Allow",
Sid: "",
},
],
};
const taskPolicy: aws.iam.PolicyDocument = {
Version: "2012-10-17",
Statement: [{
Effect: "Allow",
Action: [
"s3:*",
"ecs:RegisterTaskDefinition",
],
Resource: "*",
}],
}
const role = new aws.iam.Role("my-role", {
assumeRolePolicy: policy,
inlinePolicies: [
{
name: "fsdfsd",
policy: taskPolicy
}
]
});
I get the error shown below. I'm not sure how to turn the PolicyDocument
instance into the string that the inline policy is expecting...strong-helmet-83704
03/30/2023, 4:27 PMwitty-vegetable-61961
03/30/2023, 11:03 PMalert-helicopter-26131
03/30/2023, 11:25 PMpulumi up
, the CLI shows that a storage bucket is being updated.
2. When I click on the "preview" link and go to the Pulumi website, the storage bucket doesn't show up in the list of resources on the "Summary" tab.
3. When I switch to the "Diff" tab, the storage bucket shows up as expected.
I reported this issue (including screenshots) using the support form on the Pulumi website, but then got an email saying that the support form is only for enterprise customers.
I don't want to include my preview URL or my screenshots on something public like GitHub. How can I report this issue to Pulumi privately?delightful-monkey-90700
03/30/2023, 11:33 PMdocker.Image
doesn't appear to expose anything 😕fierce-printer-96056
03/31/2023, 8:22 AMPulumi.Aws.ApiGatewayV2.DomainName
to be REGIONAL
, which means I need RegionalDomainName
to set up the certificate.
Problem is, there's no way to get the RegionalDomainName
from the Pulumi.Aws.ApiGatewayV2.DomainName
. To fix this, we had to make a lookup on Pulumi.Aws.ApiGateway.DomainName
(not V2), which has the RegionalDomainName
.
Am I missing something? Is this just a missing (for now) feature? AWS CDK does have the RegionalDomainName
in ApiGatewayV2
.creamy-monkey-35142
03/31/2023, 9:12 AMpulumi up --suppress-outputs
but I cannot find this option on https://github.com/pulumi/actionsred-airline-54646
03/31/2023, 12:54 PMpulumi preview
Any clue what's the reason why is this showing?
running 2023/03/31 09:18:43 [DEBUG] POST <https://login.microsoftonline.com/***/oauth2/v2.0/token>
red-airline-54646
03/31/2023, 12:54 PMpulumi preview
Any clue what's the reason why is this showing?
running 2023/03/31 09:18:43 [DEBUG] POST <https://login.microsoftonline.com/***/oauth2/v2.0/token>
stocky-restaurant-98004
03/31/2023, 1:01 PMred-airline-54646
03/31/2023, 1:15 PMDEBUG
considering we don't enable debug mode anywhere.stocky-restaurant-98004
03/31/2023, 1:35 PMred-airline-54646
03/31/2023, 2:06 PMazure "<http://github.com/pulumi/pulumi-azure-native-sdk|github.com/pulumi/pulumi-azure-native-sdk>"
this is the definition of the provider
azureProvider, err := azure.NewProvider(ctx, fmt.Sprintf("clusters-p.azurenative-(%s)", Subscriptions[subscription]), &azure.ProviderArgs{
TenantId: pulumi.StringPtr(os.Getenv("ARM_TENANT_ID")),
ClientId: pulumi.StringPtr(os.Getenv("ARM_CLIENT_ID")),
ClientSecret: pulumi.StringPtr(os.Getenv("ARM_CLIENT_SECRET")),
SubscriptionId: pulumi.StringPtr(Subscriptions[subscription]),
})
if err != nil {
return err
}
stocky-restaurant-98004
03/31/2023, 5:41 PM