sticky-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 nullenough-house-68209
09/20/2022, 10:40 AMType Name Plan Info
+ pulumi:pulumi:Stack cloud_func-dev create
+ ├─ gcp:storage:Bucket cf_demo_bucket create
+ ├─ gcp:storage:BucketObject eta_demo_object create
└─ gcp:cloudfunctions/functions:Function eta_demo_function 1 error
Diagnostics:
gcp:cloudfunctions/functions:Function (eta_demo_function):
error: unrecognized resource type (Check): gcp:cloudfunctions/functions:Function
gorgeous-accountant-60580
09/20/2022, 1:57 PMmodern-evening-83482
09/20/2022, 4:33 PMcurved-hair-82998
09/21/2022, 7:46 AMtf2pulumi --target-language go
error: rpc error: code = Unimplemented desc = GetSchema is not yet implemented
busy-daybreak-12707
09/21/2022, 9:29 AMsteep-lock-88842
09/21/2022, 3:18 PMpulumi up
command to create the key followed by a pulumi stack change-secrets-provider
, am i understanding that correctly?fancy-xylophone-7581
09/21/2022, 4:05 PM(async () => {
publicSubnets = await vpc.publicSubnets;
publicSubnets.forEach(
sub => {
// console.log(sub.id);
new aws.ec2.Tag('',{
resourceId: sub.id,
key: '<http://kubernetes.io/role/elb|kubernetes.io/role/elb>',
value: '1'
});
}
);
})();
gorgeous-accountant-60580
09/21/2022, 5:41 PMauthorization.GetClientConfig
call, as that is a provider function on the azure-native provider. That is, it can be handled in the Call()
function as defined in the unit testing documentation.
The code I have for calling the Azure SDK is in an ApplyT. Is it possible to intercept this as well, and specify the return value in a similar way as with the provider functions, or will I have to handle this by creating an interface I can mock?colossal-belgium-59643
09/21/2022, 10:00 PMerror: could not get cloud url: could not load current project: 1 error occurred:
* #/options/refresh: expected boolean, but got string
lemon-vase-32091
09/22/2022, 7:27 AMsparse-gold-10561
09/22/2022, 2:06 PMARN of the SQS queue specified as the target for the dead-letter queue.
. However, I am trying to set it as a ECS target and I'm a bit confused as to if the documentation is wrong or if I really need a SQS DQL for an ECS target? Any advice would be great. thanks!full-artist-27215
09/22/2022, 6:03 PMtrue
whenever I create one of these repositories (in particular, the xray_index
property: https://www.pulumi.com/registry/packages/artifactory/api-docs/localgenericrepository/#xray_index_python). I know that I can explicitly check the type of the resource first and then see if the property is set:
if args.resource_type in ["artifactory:index/localGenericRepository:LocalGenericRepository", ...]:
if not args.props.get("xrayIndex"):
report_violation(...)
However, I was wondering if it would instead be possible to just see if the resource had an xrayIndex
property (without listing out all the resource types explicitly). However, it only appears that I have access to whatever properties happen to have been set on the concrete resource. Since this particular boolean property defaults to false
, this makes any resources that are in violation "invisible" to this kind of checking logic.
Is there any way in a policy to see all the possible properties a resource could have, rather than just the ones that have been set on any given instance?
After typing this out, I think I may end up sticking with the more explicit approach, but now I'm curious 😅proud-nail-99860
09/22/2022, 11:32 PMcolossal-caravan-76991
09/23/2022, 9:29 AMclean-salesclerk-32849
09/23/2022, 8:47 PM> $ pulumi new error: could not get cloud url: could not load current project: 1 error occurred:
* #/config: expected string or null, but got object
I upgraded pulumi and switched to a new network. Any suggestiosn?late-lizard-19909
09/23/2022, 8:50 PMcolossal-vr-62639
09/26/2022, 6:16 AMmy-{pre-prod or prod}-project/{resource-collection}-1
• my-project/{pre-prod or prod}-{resource-collection}-1
Anyone have any views on this they don't mind sharing?stocky-father-68249
09/26/2022, 6:26 AMrhythmic-whale-48997
09/26/2022, 6:44 AMadamant-father-26302
09/26/2022, 7:28 AMproud-art-41399
09/26/2022, 9:30 AMpulumi/actions@v3
parameters are as follows:
with:
command: up
refresh: true
stack-name: ***
work-dir: infra
cloud-url: s3://***
comment-on-pr: false
github-token: ***
parallel: 2147483647
target-dependents: false
upsert: false
edit-pr-comment: true
pulumi-version: ^3
color: auto
env:
AWS_DEFAULT_REGION: ***
AWS_REGION: ***
AWS_ACCESS_KEY_ID: ***
AWS_SECRET_ACCESS_KEY: ***
AWS_SESSION_TOKEN: ***
pythonLocation: /opt/hostedtoolcache/Python/3.8.13/x64
PKG_CONFIG_PATH: /opt/hostedtoolcache/Python/3.8.13/x64/lib/pkgconfig
Python_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
Python2_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
Python3_ROOT_DIR: /opt/hostedtoolcache/Python/3.8.13/x64
LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.8.13/x64/lib
PULUMI_CONFIG_PASSPHRASE: ***
I was able to track this down to happen somewhere between Pulumi CLI v3.39.1 (produces output) and v3.39.3 (doesn't produce output). I looked at release notes (https://github.com/pulumi/pulumi/releases) but couldn't find anything relevant. It happens both for Pulumi programs written in Python and TypeScript, if that is important. Anyone has a clue what to try next?gorgeous-accountant-60580
09/26/2022, 10:17 AMcolossal-vr-62639
09/26/2022, 12:48 PMpulumi stack init
on an existing stack, is there a way to ignore the fact that it already exists?
Use case: Looking at a way to create stacks on the fly without needing to do a lookup of sorts before issuing an init
.lively-crayon-44649
09/26/2022, 12:57 PMlocal.Command
every time a set of files on the local filesystem changes. I think this is the use of the triggers
argument to local.Command
, but am wondering what the best thing to pass here is. It is a hash of the files that I construct myself? I was hoping Pulumi would have something here, but the asset and archive classes for instance don't appear to expose any methods or paths in that vein. All suggestions welcome!