future-dawn-71635
09/15/2022, 12:10 PMpulumi.Output.all
requires a param of the list of outputs I want. But I would like to assert on all of them:
https://github.com/pulumi/examples/blob/master/testing-unit-py/test_ec2.py#L36future-dawn-71635
09/15/2022, 12:16 PMvictorious-toddler-58071
09/15/2022, 12:42 PM├── infrastructure
│ ├── foundation (Platform wide Core components [VPC, K8s, ...])
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution1 (Solution specific infra components [MongoDB, API Gateway, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution2 (Solution specific infra components [Postgres, SNS, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
├── services
│ ├── foundation (Platform wide Core components [Auth services, IAM services, ...])
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution1 (Solution specific services [Custom micro services, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
│ ├── solution2 (Solution specific services [Custom micro services, ...] )
│ │ ├── main.go
│ │ ├── Pulumi.yaml
│ │ ├── Pulumi.dev.yaml
│ │ ├── Pulumi.staging.yaml
│ │ └── Pulumi.prod.yaml
...
In this example above; the infra components from solution 1 & solution 2 can only be deployed once the infra foundation is deployed.
Next the service need to go after all infra has completed. last Solution services have to after foundation services.
How can i manage this dependencies?
And how can i execute a single pulumi command to go and execute/update/destroy all stacks at once in right order?elegant-zoo-39359
09/15/2022, 7:14 PMpulumi import
completely any more - it hangs after displaying the duration, even if i select 'no' to not import - does anyone else get this? v3.39.3ancient-shampoo-2049
09/15/2022, 9:40 PMrough-jordan-15935
09/16/2022, 3:01 AMlively-helmet-97905
09/16/2022, 3:38 AMnutritious-postman-78196
09/16/2022, 9:30 AMwonderful-spoon-89039
09/16/2022, 9:35 AMcurved-rain-57057
09/16/2022, 10:35 AMsparse-gold-10561
09/16/2022, 2:44 PMsparse-gold-10561
09/16/2022, 2:45 PMdelightful-monkey-90700
09/16/2022, 8:25 PMbrief-jelly-98203
09/16/2022, 10:28 PMpulumi up
runsstrong-helmet-83704
09/17/2022, 2:53 AM~ test_output : (yaml) {
flat-journalist-57447
09/17/2022, 10:37 AMflat-journalist-57447
09/17/2022, 10:38 AMabundant-telephone-90024
09/18/2022, 10:53 AMthankful-father-68341
09/18/2022, 2:39 PMgorgeous-accountant-60580
09/18/2022, 3:29 PMbrew install pulumi/tap/pulumi
) I get version 3.39.3, while the latest available on GitHub is 3.40.0. Is it to be expected that the version available from brew lags behind?gentle-market-22852
09/18/2022, 4:10 PMfew-plastic-88435
09/19/2022, 2:15 PMfew-plastic-88435
09/19/2022, 3:38 PMfew-plastic-88435
09/19/2022, 5:52 PMsticky-church-6919
09/19/2022, 6:58 PMtall-sandwich-14901
09/19/2022, 7:34 PMconst appReg = new azuread.Application("app", {
displayName: "name",
identifierUris: [`${baseUrl}/${self.applicationId}`]
})
Would something like self.applicationId
be possible?sparse-knife-40442
09/19/2022, 8:00 PMfunc main() {
pulumi.Run(func(ctx *pulumi.Context) error {
conf := config.New(ctx, "")
accountID := conf.Require("accountId")
zone, err := cloudflare.NewZone(ctx, "<http://zone.io|zone.io>", &cloudflare.ZoneArgs{
AccountId: pulumi.String(accountID),
Plan: pulumi.String("free"),
Zone: pulumi.String("<http://zone.io|zone.io>"),
}, pulumi.Protect(true))
if err != nil {
return err
}
_, err := cloudflare.NewRecord(ctx, "test_record", &cloudflare.RecordArgs{
ZoneId: zone.Id,
Name: pulumi.String("test"),
Value: pulumi.String("0.0.0.0"),
Type: pulumi.String("A"),
Ttl: <http://pulumi.Int|pulumi.Int>(1),
Proxied: pulumi.Bool(true),
})
if err != nil {
return err
}
return nil
})
}
Im constantly getting the error
./main.go:56:21: zone.Id undefined (type *cloudflare.Zone has no field or method Id)
But as per provider documentation the Id output actually exists and if I change Zone.Id for another output like zone.Status it works , Could this be a provider bug or am I doing something wrong?wide-wire-45375
09/19/2022, 10:15 PMpulumi destroy
fails to remove ecr repo?
It gives an error indicating the repo is not empty.
I am trying to delete the repo as well as the images with pulumi destroy
command.
This code that creates the ecr image:
const imageUrl = pulumi.output(
awsx.ecr.buildAndPushImage('my-image', {
context: './',
dockerfile: './Dockerfile.track',
}).imageValue
) as pulumi.Output<string>
steep-toddler-94095
09/20/2022, 2:50 AMpulumi up
. sort of like a reverse pulumi config refresh
or something like what pulumi config set --update-state foo bar
would do if it were a real command?red-energy-41002
09/20/2022, 8:00 AMnull
. I have tried several ways to set the config to null
but I cant manage to do it and then the default config is used. Is this somehow possible?
_, err := s.NewChartRelease(otelCollectorChart, namespace.Metadata.Elem().Name(), pulumi.Map{
"fullnameOverride": pulumi.String("otel-collector"),
"mode": pulumi.String("deployment"),
"config": pulumi.Map{
"receivers": pulumi.Map{
"prometheus": nil,
}}})
In this example I want to set the "prometheus" config to nullred-energy-41002
09/20/2022, 8:00 AMnull
. I have tried several ways to set the config to null
but I cant manage to do it and then the default config is used. Is this somehow possible?
_, err := s.NewChartRelease(otelCollectorChart, namespace.Metadata.Elem().Name(), pulumi.Map{
"fullnameOverride": pulumi.String("otel-collector"),
"mode": pulumi.String("deployment"),
"config": pulumi.Map{
"receivers": pulumi.Map{
"prometheus": nil,
}}})
In this example I want to set the "prometheus" config to null