witty-honey-13693
11/29/2021, 11:29 PMnice-father-44210
11/30/2021, 10:37 PMsteep-controller-2269
12/01/2021, 1:16 PMerror: [ERROR] getting rancher server version
nice-father-44210
12/02/2021, 2:37 AMOutput::apply
say the following:
'func' is not allowed to make resources.
broad-actor-99495
12/02/2021, 5:29 PMType Name Status Info
pulumi:pulumi:Stack xxxxxxxxxxxxxxxxx-dev **failed** 1 error
+ └─ docker:index:Container ubuntu **creating failed** 1 error
Diagnostics:
pulumi:pulumi:Stack (xxxxxxxxxxxxxxxxx-dev):
error: update failed
docker:index:Container (ubuntu):
error: 1 error occurred:
* container failed to be in running state
SO question related to docker: https://stackoverflow.com/questions/70199313/how-to-use-docker-host-error-during-connectworried-xylophone-86184
12/03/2021, 1:44 PMpulumi login <https://app.pulumi.com>
error: problem logging in: getting user info from <https://app.pulumi.com>: unmarshalling response object: invalid character '<' looking for beginning of value
Any help would be appreciatedacceptable-notebook-17653
12/03/2021, 7:40 PMproject
and stack
.
We are using pulumi version v3.19.0
Thankssticky-dress-65732
12/05/2021, 1:59 PMadamant-mechanic-40684
12/06/2021, 8:55 PMimport * as awsx from "@pulumi/awsx";
const lb = new awsx.lb.NetworkListener("loadbalancer", { port: 80 });
// Need explicit cluster bc we have to define ec2 autoscaling group
const cluster = new awsx.ecs.Cluster("ec2-cluster");
cluster.createAutoScalingGroup("ec2-cluster-asg", {
templateParameters: { minSize: 2 },
launchConfigurationArgs: { instanceType: "t2.nano" },
});
// Will build our app image and push to ECR
const appImage = awsx.ecs.Image.fromPath("app-docker-image", "./app");
const appService = new awsx.ecs.EC2Service("app", {
cluster,
taskDefinitionArgs: {
containers: {
app: {
image: appImage,
portMappings: [lb],
memoryReservation: 256,
},
},
},
desiredCount: 2,
});
export const url = lb.endpoint;
When I go to pulumi up
I get an error creating the autoscale group cloudformation stack
error waiting for CloudFormation Stack creation: failed to create CloudFormation stack, rollback requested (ROLLBACK_COMPLETE): ["The following resource(s) failed to create: [Instances]. Rollback requested by user." "Property AvailabilityZones cannot be empty."]
I'm under the impression auto scaling would be using the clusters azs? Not seeing a good place to specify the az either, so I think I'm missing something?
Any help would be much appreciated!breezy-painter-29573
12/06/2021, 11:09 PMdef container_definition(image_name, service, env_variables):
print("service:",service)
print("env_vars:", env_variables)
return json.dumps([{
'name': 'server',
'image': image_name,
'networkMode': 'awsvpc',
'readonlyRootFilesystem': False,
'essential': True,
'environment': env_variables,
..... Non relevant code continues
}])
for service in config.common_config['services']:
env_variables.append({'name': 'SERVICES', 'value': service})
if service != 'frontend':
env_variables.append({'name': 'TEMPORAL_CLI_ADDRESS',
'value': f'{config.common_config["frontend"]["service_name"]}.{config.common_config["dns_namespace"]}'})
task_definitions[service] = aws.ecs.TaskDefinition(config.common_config[service]['service_name'],
family=config.common_config[service]['service_name'],
cpu=config.common_config[service]['cpu'],
memory=config.common_config[service]['memory'],
network_mode='awsvpc',
requires_compatibilities=['FARGATE'],
execution_role_arn=ecs_task_role.arn,
task_role_arn=ecs_task_role.arn,
container_definitions=image.image_name.apply(
lambda image_name: container_definition(image_name, service, env_variables)),
tags={
"Service": "temporal",
},
opts=ResourceOptions(depends_on=[log_group]))
When it is executed for the container_definitions in preview I am seeing env_variables with duplicates and service
is set to the latest in the list of config.common_config['services']
. I do believe it is somehow related to the nature of "Promised" Output, but not an expert in Python enough to catch and fix it.
TIA!
Everything worked properly in the loop until I needed to add image name for ECR 😄billions-hospital-77217
12/08/2021, 1:15 AMvar j = new Pulumi.Aws.Ec2.Inputs.InstanceRootBlockDevice {
DeviceName = "SIKKA_UAT",
VolumeType = "gp3",
Tags = {
{ "Name", "SIKKA_UAT" },
}
};
But it's just not the right way to instantiate it (reference is wrong, InstanceRootBlockDevice isn't in Pulumi.Aws.Ec2.Inputs probably)nice-engineer-43278
12/10/2021, 8:15 PMv4.32.0
version. When I run this it gets me a 403
error from the resource URL... So trying with a different version like v4.31.0
works the installation but it doesn't add the command to the PATH so every time that I try to update or create a stack it gets me this error...
error: no resource plugin 'aws-v4.32.0' found in the workspace or on your $PATH, install the plugin using `pulumi plugin install resource aws v4.32.0`
nice-engineer-43278
12/10/2021, 8:15 PMwitty-honey-13693
12/13/2021, 3:34 AMgreat-sunset-355
12/14/2021, 9:52 AMpulumi.ResourceOptions(providers={mapping}
work?
I looked at the type description but it's not helpful and nor is the docstring.
Because when the resource is created like this:
opts = pulumi.ResourceOptions(
parent=self,
provider=classic_aws_provider,
)
and later on opts
is modified to use providers
parameter
opts- pulumi.ResourceOptions(
parent=self,
providers={'aws':classic_aws_provider, 'aws-native':aws_native_provider},
)
Pulumi results in creating default
aws provider and completely ignore providers
rapid-byte-24256
12/14/2021, 11:35 AMerror: the current deployment has 1 resource(s) with pending operations:
* urn:pulumi:temp-production::test::kubernetes:apps/v1:Deployment::flagship, interrupted while updating
tried the recommend solution appeared in this error message by applying Pulumi stack export then import after removing pending operation but I get another issue
error: could not import deployment: [503] Service Unavailable
, Can anyone help me, please🙏?miniature-window-2464
12/14/2021, 1:09 PMconst appSubnet = new azure_native.network.Subnet("appSubnet", {
addressPrefix: "10.1.2.0/24",
resourceGroupName: resourceGroup.name,
subnetName: "appSubnet",
virtualNetworkName: myVirtualNetwork.name,
delegations: [{
serviceName : "Microsoft.ContainerInstance"
}]
});
Any ideas of what is wrong? I want to delegate it to Container Instances service.
Thank you,
mauroswift-ambulance-7102
12/14/2021, 4:31 PMfresh-solstice-91936
12/14/2021, 11:33 PMconst testLambda = new aws.lambda.Function("testLambda", {
code: new pulumi.asset.AssetArchive({
".": new pulumi.asset.FileArchive("./handler"),
}),
role: iamForLambda.arn,
handler: "handler.handler",
runtime: "nodejs14.x",
environment: {
variables: {
foo: "bar",
},
},
});
handler/handler.ts:
export const handler = () => {
console.log("meow");
}
this fails with:
"errorType": "Runtime.ImportModuleError",
"errorMessage": "Error: Cannot find module 'handler'\nRequire stack:\n- /var/runtime/UserFunction.js\n- /var/runtime/index.js",
I'm sure I'm just referencing the handler wrong, but I've tried a few different things and can't figure it out lol.swift-pharmacist-99893
12/15/2021, 6:23 AMConfig().get_secret('secret_here')
how can I setup PULUMI_CONFIG={ "project:secret_here": "..." }
?refined-guitar-81055
12/15/2021, 12:52 PMswift-ambulance-7102
12/15/2021, 1:02 PMversion
available inside the up
command? I want to add a tag to resources and that tag would be the pulumi version that was used during a deploy.cool-wall-66940
12/16/2021, 9:31 AMimport pulumi
import pulumi_digitalocean as digitalocean
foobar = digitalocean.SpacesBucket("foobarrandom615243", region="nyc3")
I get the following error:
Diagnostics:
pulumi:pulumi:Stack (pulumispacecreate-dev):
error: update failed
digitalocean:index:SpacesBucket (foobarrandom615243):
error: 1 error occurred:
* Error creating bucket: Spaces credentials not configured
prehistoric-london-9917
12/16/2021, 10:18 PMrhythmic-australia-32204
12/17/2021, 2:22 PMOne of 'auth_url' or 'cloud' must be specified
. I’ve googled this but couldn’t find where to add these variables, any idea?chilly-plastic-75584
12/17/2021, 5:28 PMquiet-plastic-34312
12/18/2021, 2:39 PMelegant-stone-39023
12/19/2021, 4:42 PMTypeError: The "hostname" argument must be of type string. Received an instance of OutputImpl
- How to get out of it? Thank you.swift-pharmacist-99893
12/21/2021, 10:27 AMs3
bucket with multiple folders where I hold my stacks/states. Is it possible to use StackReference
to have interdependency between them? How should I login with pulumi in this case?eager-musician-93270
12/21/2021, 12:25 PMindex.ts
with my Pulumi code to each of the two sets of stacks?