few-plastic-88435
09/09/2022, 3:56 PMagreeable-whale-35898
09/09/2022, 6:26 PMpulumi up
it's stuck indefinitely so:
Previewing update (dev)
View Live: <https://app.pulumi.com/user/Proj/dev/previews/><guid...>
Type Name Plan Info
pulumi:pulumi:Stack Proj-dev 'dotnet build -nologo .' completed successfully
Any idea, if not what the problem is, at least how to debug (I despaired.. couldn't find how to extract logs our of it...) ?
Thanks a lot in advance for any hint!! šššfew-plastic-88435
09/09/2022, 9:35 PMhundreds-ghost-24810
09/09/2022, 10:23 PMworried-helmet-23171
09/10/2022, 11:44 AMfreezing-artist-36980
09/11/2022, 6:41 AMconst vpcConnector = new awsc.apprunner.VpcConnector("vpc-connector", {
securityGroups: [ec2SecurityGroup.id],
subnets: [pulumi.output(vpc.getSubnetsIds)], // ERROR HERE
});
It shows 1. Type 'Output<(type: VpcSubnetType) => Promise<Output<string>[]>>[]' is not assignable to type 'Input<Input<string>[]>'.
flaky-arm-38472
09/12/2022, 3:14 PMPulumi.dev.yaml
) to populate variables/values inside an inline program using the automation API?.
Lets say I have the AWS region set on the config file. Then how can overwrite/populate the following values with the ones on the config file:
s.SetConfig(ctx, "aws:region", auto.ConfigValue{Value: "us-west-2"})
. Do I have to resort to use json parser ?.ambitious-father-68746
09/12/2022, 4:29 PMclean-salesclerk-32849
09/12/2022, 7:55 PMexport const fargate = new awsx.ecs.FargateService(NAME, {
cluster,
taskDefinitionArgs: {
containers: {
mbankrlproxy: {
image: image,
memory: 512,
portMappings: [{ containerPort: 80, hostPort: 80 }],
environment: ENVIRONMENT,
},
},
},
desiredCount: 1,
});
either to get the randomly generated IP, or better yet to use a reserved IP. I've been looking in the docs but can't find it ...most-lighter-95902
09/12/2022, 8:51 PMmost-lighter-95902
09/12/2022, 8:52 PM{
key: 'aa_namespace',
value:
`apiVersion: v1\nkind: Namespace\nmetadata:\n name: {{ namespace }}\nspec:\n finalizers:\n - kubernetes\n`,
},
adorable-activity-71456
09/12/2022, 9:59 PM(pulumi:pulumi:Stack)
panic: interface conversion: interface {} is nil, not map[string]interface {}
https://pulumi-community.slack.com/archives/CRFUR2DGB/p1662753735357129witty-barista-69390
09/13/2022, 3:18 AMvictorious-dusk-75271
09/13/2022, 4:06 AMAWS_ACCESS_KEY_ID
and AWS_SECRET_ACCESS_KEY
, so I was wondering there anything i can use with pulumi to automatically set those for pulumi stacks?stocky-father-68249
09/13/2022, 4:38 AMfew-lizard-48557
09/13/2022, 7:56 AMimport * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure-native";
import * as rg from "./resource-group";
//////////////////////////////////////////////////////////////////////////////
// Azure Config variables
//////////////////////////////////////////////////////////////////////////////
const config = new pulumi.Config();
const appGatewayName = config.require("appGatewayName");
const sslCertPassword = config.requireSecret("sslCertPassword");
//////////////////////////////////////////////////////////////////////////////
// Create Azure Application Gateway
//////////////////////////////////////////////////////////////////////////////
const applicationGateway = new azure.network.ApplicationGateway(appGatewayName, {
applicationGatewayName: appGatewayName,
authenticationCertificates: [],
location: "westeurope",
resourceGroupName: rg.rgName,
//....
sslCertificates: [{
data: "*****",
name: "my-domain",
password: sslCertPassword,
}],
//....
//....
});
Here I need values for the properties:
'data' => Base-64 encoded pfx certificate
'name' => Name of the SSL certificate (domain name)
'password' => Password for the pfx file specified in data
I have the following values available:
- pfx file
- domain name
- password for pfx file
If I assign the certificate (pfx file) the values via Azure Portal, then the HTTPS connection works correctly.
But unfortunately I cannot assign the certificate/pfx file via code. How do I get from the pfx file to the data or the format I need for the 'data' property - Any help or example is appreciated!worried-xylophone-86184
09/13/2022, 8:42 AMpulumi config set --path --secret endpoints[0].token accesstokenvalue
Now, if we wish to access this secret within the Pulumi script, I am not certain if we can access it directly like the usual way mentioned in the docs:
import pulumi
config = pulumi.Config()
print(config.require_secret('dbPassword'))
echoing-postman-88590
09/13/2022, 10:55 AMgorgeous-pillow-81622
09/13/2022, 2:29 PMaws:
variables predefined for different environments like awsAccount1, awsAccount2, etc.).
When users use the CLI, they can use a YAML file with all predefined values.
However I need a way to have it also with Automation API using inline program (Golang, so I donāt have the infra
Git repo, only go imports), e.g. a CI.
The inline hybrid exemple is simplifying by considering everything will be accessible (same repo), and the stack name will be the same (which is unlikely to be true).
Iād like to know if anyone faced the issue and if thereās any solution to that?clean-salesclerk-32849
09/13/2022, 2:47 PMexport const fargate = new awsx.ecs.FargateService(NAME, {
cluster,
taskDefinitionArgs: {
containers: {
mbankrlproxy: {
image: image,
memory: 512,
portMappings: [{ containerPort: 80, hostPort: 80 }],
environment: ENVIRONMENT,
},
},
},
desiredCount: 1,
});
The cluster->task->container is then given a Public and Private IP (I can see this on AWS consile). How do I access these IP's from the awsx API?witty-barista-69390
09/13/2022, 7:03 PMerror: operation error CloudControl: UpdateResource, https response error StatusCode: 400, RequestID: 37e23eac-1494-48d6-b2d6-0ab657f40f26, api error ValidationException: [REPLACE Operation] noSuchPath in source, path provided : //BaseCapacity
Anyone have any ideas on this?brash-alligator-49865
09/13/2022, 7:32 PMmodern-evening-83482
09/13/2022, 9:25 PMwet-noon-14291
09/13/2022, 10:37 PMstrong-helmet-83704
09/14/2022, 5:02 AMlively-helmet-97905
09/14/2022, 5:05 AMlively-helmet-97905
09/14/2022, 5:13 AMcuddly-ability-96139
09/14/2022, 8:05 AMdocker
in a messages history but failed to find out my issue
Thing is I have a Dockerfile
and during the docker image build it fails with quite general error Error building docker image: 0: executor failed running [/bin/sh -c npm run build]: exit code: 127
image:
type: docker:RegistryImage
properties:
name: ${container-registry-...}/....
build:
context: ${pulumi.cwd}/../ (yeah it's one dir up)
target: ....
options:
provider: ${docker-provider}
customTimeouts:
create: "30m"
update: "30m"
Is there a way to see the docker build ./
output as I have it using CLI?quick-microphone-7801
09/14/2022, 8:16 AMquick-microphone-7801
09/14/2022, 9:37 AM