gentle-market-22852
08/17/2022, 10:01 AMdatabase: mongodb
mongoHost: localhost
nodeEnvironment: "18"
protocols: http
can any confirm the exact value of these to run this example..
with above config, pulumi up says
* Error initializing Docker client: protocol not available
gentle-market-22852
08/17/2022, 10:02 AMbackendPort: "3000"
frontendPort: "3001"
mongoPort: "27017"
gentle-market-22852
08/17/2022, 10:05 AMreturn ctx.exports();
but this method does not seem to exist or this method signature says void some thing wrong with the code showngentle-market-22852
08/17/2022, 10:07 AMgentle-market-22852
08/17/2022, 12:40 PMmicroscopic-piano-27908
08/17/2022, 6:25 PMvideo▾
pulumi logs
after making a successful request to to the lambda, I don’t see any logsmicroscopic-piano-27908
08/17/2022, 6:26 PM❯ curl $(pulumi stack output url)
hello
❯ pulumi logs
Collecting logs for stack dev since 2022-08-17T11:25:46.000-06:00.
And then the logs exitsquaint-pharmacist-79538
08/18/2022, 1:53 PMlet service = Service.get("my-release-nginx-ingress")
let myIp = service.status.loadBalancer.ingress[0].ip
But : the service "my-release-nginx-ingress" was not created by pulumi, it was already here.
Any tips for me ?microscopic-piano-27908
08/18/2022, 4:58 PMconst filesBucket = new aws.s3.Bucket('filesBucket')
const createNewFile = () => {
new aws.s3.BucketObject(
'foo.txt',
{
bucket: filesBucket,
content: ''
}
)
}
const createNewFileSchedule: aws.cloudwatch.EventRuleEventSubscription = aws.cloudwatch.onSchedule(
"createNewFile",
"rate(2 minutes)",
createNewFile
);
Is there something I’m doing wrong with the createNewFile
function? I’m not seeing new files show up in the Bucket on AWShallowed-father-38428
08/18/2022, 11:55 PMsparse-intern-71089
08/19/2022, 5:56 PMsalmon-sandwich-15994
08/21/2022, 12:31 AMgitpod /workspace/pulumi/p $ pulumi config set azure-native:location westus2
Please choose a stack, or create a new one: <create a new stack>
Please enter your desired stack name.
To create a stack in an organization, use the format <org-name>/<stack-name> (e.g. `acmecorp/dev`): dev
Created stack 'dev'
gitpod /workspace/pulumi/p $ pulumi config set azure-native:location westus2
gitpod /workspace/pulumi/p $ pulumi up <https://github.com/pulumi/examples/tree/master/azure-py-aci>
project name: (azure-py-aci)
project description: (Creates Azure Container Instance with a public IP)
Please enter your desired stack name.
To create a stack in an organization, use the format <org-name>/<stack-name> (e.g. `acmecorp/dev`).
stack name: (dev)
Created stack 'dev'
Failed to resolve python version command: fork/exec /tmp/pulumi-up-1211997133/venv/bin/python: no such file or directory
Installing dependencies...
Creating virtual environment...
Finished creating virtual environment
Updating pip, setuptools, and wheel in virtual environment...
Requirement already satisfied: pip in ./venv/lib/python3.8/site-packages (21.1.1)
Collecting pip
Using cached pip-22.2.2-py3-none-any.whl (2.0 MB)
Requirement already satisfied: setuptools in ./venv/lib/python3.8/site-packages (56.0.0)
Collecting setuptools
Using cached setuptools-65.1.0-py3-none-any.whl (1.2 MB)
Collecting wheel
Using cached wheel-0.37.1-py2.py3-none-any.whl (35 kB)
Installing collected packages: wheel, setuptools, pip
Attempting uninstall: setuptools
Found existing installation: setuptools 56.0.0
Uninstalling setuptools-56.0.0:
Successfully uninstalled setuptools-56.0.0
Attempting uninstall: pip
Found existing installation: pip 21.1.1
Uninstalling pip-21.1.1:
Successfully uninstalled pip-21.1.1
Successfully installed pip-22.2.2 setuptools-65.1.0 wheel-0.37.1
Finished updating
Installing dependencies in virtual environment...
Collecting pulumi<4.0.0,>=3.5.1
Using cached pulumi-3.38.0-py2.py3-none-any.whl (166 kB)
Collecting pulumi-azure-native<2.0.0,>=1.14.0
Using cached pulumi_azure_native-1.68.2-py3-none-any.whl
Collecting six~=1.12
Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Collecting pyyaml~=5.3
Using cached PyYAML-5.4.1-cp38-cp38-manylinux1_x86_64.whl (662 kB)
Collecting grpcio==1.47
Using cached grpcio-1.47.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.5 MB)
Collecting dill~=0.3
Using cached dill-0.3.5.1-py2.py3-none-any.whl (95 kB)
Collecting semver~=2.8
Using cached semver-2.13.0-py2.py3-none-any.whl (12 kB)
Collecting protobuf~=4.21
Using cached protobuf-4.21.5-cp37-abi3-manylinux2014_x86_64.whl (408 kB)
Collecting parver>=0.2.1
Using cached parver-0.3.1-py2.py3-none-any.whl (14 kB)
Collecting attrs>=19.2
Using cached attrs-22.1.0-py2.py3-none-any.whl (58 kB)
Collecting arpeggio~=1.7
Using cached Arpeggio-1.10.2-py2.py3-none-any.whl (54 kB)
Installing collected packages: arpeggio, six, semver, pyyaml, protobuf, dill, attrs, parver, grpcio, pulumi, pulumi-azure-native
Successfully installed arpeggio-1.10.2 attrs-22.1.0 dill-0.3.5.1 grpcio-1.47.0 parver-0.3.1 protobuf-4.21.5 pulumi-3.38.0 pulumi-azure-native-1.68.2 pyyaml-5.4.1 semver-2.13.0 six-1.16.0
Finished installing dependencies
Finished installing dependencies
Previewing update (dev)
View Live: <https://app.pulumi.com/aselunar/azure-py-aci/dev/previews/05e20ed7-f05a-4ec2-a0c4-5f5336cf5ce2>
Type Name Plan Info
+ pulumi:pulumi:Stack azure-py-aci-dev create
└─ azure-native:resources:ResourceGroup resourceGroup 1 error
Diagnostics:
azure-native:resources:ResourceGroup (resourceGroup):
error: azure-native:resources:ResourceGroup resource 'resourceGroup' has a problem: missing required property 'location'. Either set it explicitly or configure it with 'pulumi config set azure-native:location <value>'.
wooden-night-90022
08/22/2022, 3:51 AMwooden-night-90022
08/22/2022, 3:52 AMwooden-night-90022
08/22/2022, 4:00 AMfresh-musician-40418
08/22/2022, 12:57 PMgentle-market-22852
08/22/2022, 1:19 PMgentle-market-22852
08/22/2022, 2:08 PMwet-fall-57893
08/23/2022, 1:57 AMhelpful-memory-76476
08/23/2022, 3:10 PMplain-eve-99442
08/24/2022, 12:44 PMclever-rose-11123
08/26/2022, 5:58 AMfancy-bird-54024
08/27/2022, 11:05 AMpulumi new
has a --config stringArray
option. But it seems not say what stringArrary
should look like. I try --config aws:region:us-east-1
but it complains a error: (my terminal is PowerShell)
error: could not parse aws:region:us-east-1 as a configuration key (configuration keys should be of the form `<namespace>:<name>`)
so what it should look like? "aws:region:us-east-1"
or aws:region us-east-1
(will complain too much args) seems both not the correct answer. Thanks~eager-pilot-22899
08/29/2022, 2:33 PMconst vpc = new aws.ec2.Vpc("vpc", {
cidrBlock: "10.0.0.0/16",
});
And here's my error:
+ pulumi:pulumi:Stack testproject-abc123-dev created
aws:ec2:Vpc vpc **failed** 1 error
Diagnostics:
aws:ec2:Vpc (vpc):
error: could not validate provider configuration: 1 error occurred:
* Invalid or unknown key
Does anyone know what's going on? Thanks!salmon-motherboard-78006
08/29/2022, 9:04 PM___main___.py
to a different folder and specify somehow the entry point path in the yaml
file?average-printer-31589
08/31/2022, 8:05 AMboundless-island-39178
09/01/2022, 2:50 PMreturn new ScheduledQueryRule($"{applicationInsights.Name}Query{alertRuleName}", new ScheduledQueryRuleArgs
{
Action = new AlertingActionArgs
{
AznsAction = new AzNsActionGroupArgs
{
ActionGroup = new[]
{
$"/subscriptions/{subscriptionId}/resourceGroups/{actionResourceGroupName}/providers/microsoft.insights/actiongroups/{actionGroupName}"
}
},
OdataType = "Microsoft.WindowsAzure.Management.Monitoring.Alerts.Models.Microsoft.AppInsights.Nexus.DataContracts.Resources.ScheduledQueryRules.AlertingAction",
Severity = AlertSeverity.One,
Trigger = new TriggerConditionArgs
{
Threshold = 1,
ThresholdOperator = ConditionalOperator.GreaterThanOrEqual.ToString()
}
},
Enabled = Enabled.True,
ResourceGroupName = applicationInsights.ResourceGroup,
RuleName = ruleName,
Description = $"Query search on : {ruleName} ",
Location = applicationInsightsAccessor.GetResourceLocation(applicationInsights),
Schedule = new ScheduleArgs
{
FrequencyInMinutes = 5,
TimeWindowInMinutes = 5
},
Source = new SourceArgs
{
DataSourceId = applicationInsightsAccessor.GetResourceId(applicationInsights),
Query = query,
QueryType = QueryType.ResultCount
}
});
important-sugar-9877
09/02/2022, 1:47 PMastonishing-dentist-11149
09/03/2022, 9:27 PMthousands-area-40147
09/05/2022, 2:57 PMnew StackReference()
for it? Asking because the error StackReference()
throws if the stack doesn't exist seems to be uncatchable. This is for Typescript btw, so maybe I should've asked it in #typescript instead 😅thousands-area-40147
09/05/2022, 2:57 PMnew StackReference()
for it? Asking because the error StackReference()
throws if the stack doesn't exist seems to be uncatchable. This is for Typescript btw, so maybe I should've asked it in #typescript instead 😅victorious-church-57397
09/05/2022, 3:04 PMCommand
resource to run pulumi stack ls
and then you could check in the output of that if the stack existsthousands-area-40147
09/05/2022, 3:05 PMvictorious-church-57397
09/05/2022, 3:06 PMthousands-area-40147
09/05/2022, 3:08 PMvictorious-church-57397
09/05/2022, 3:08 PMThe Pulumi Automation API is a programmatic interface for running Pulumi programs without the Pulumi CLI. Conceptually, this can be thought of as encapsulating the functionality of the CLI (pulumi up, pulumi preview, pulumi destroy, pulumi stack init, etc.) but with more flexibility. It is a strongly typed and safe way to use Pulumi in embedded contexts such as web servers without having to shell out to a CLI.
limited-rainbow-51650
09/06/2022, 6:29 AM