不能隐式地将类型Pulumi.Output<Pulumi.AzureNative.Resources.ResourceGroup>转换为Pulumi.AzureNative.Resources.ResourceGroup
public GenerateResourceGroup(Input<string> location, string rgName, Dictionary<string, string> tags)
{
var config = new Pulumi.Config();
var rg = new
我想在Azure广告里找个小组。
var group = Output.Create(
GetGroup.InvokeAsync(
new GetGroupArgs
{
Name = "Administrators"
}));
PS C:\dev\___> pulumi preview
Previewing update (dev):
Type Name Plan Info
pulumi:pulumi:Stack
我在一条azure devops管道中运行pulumi。我需要找到管道服务主体ObjectId var clientConfig = Output.Create(Pulumi.Azure.Core.Invokes.GetClientConfig());
var clientId = clientConfig.Apply(c => c.ObjectId); 这给了我作为输出的应用程序ObjectId,现在我如何才能找到我的服务主体ObjectId。 我不能这样做,因为clientId是Output<string>,而ObjectId需要string var adApp = O
我正在努力提供资源组的下课。从堆栈类调用它,但输出变量面临一些问题。
class GenerateResourceGroup
{
public GenerateResourceGroup(Input<string> location, Input<string> rgName, Dictionary<string, string> tags)
{
Console.WriteLine(location);
Console.WriteLine(rgName);
var config = new Pu
我正试着和普利米建立一个Azure基础设施。到目前为止,我已经使用了pulumi preview命令,而且似乎大多数事情都已经就绪。
我已经能够理清大部分的事情,但不相关的部分与Azure广告。
例如,下面的代码起作用:
var group = Output.Create(
GetGroup.InvokeAsync(
new GetGroupArgs
{
Name = "Administrators 2"
}));
var tenantId = config.Apply(c => c.Tena
Config数据:
config:
pulumi-ecs-stack:listener_rules_data:
0:
pathPattern:
- "/login/*"
- "/auth/*"
- "/info/*"
我的脚本:
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
import * as awsx from "@pul
我正在创建一个将与多个堆栈共享的ACR,并且我需要输出中的信息 如何保护密码输出? using Pulumi;
using Pulumi.Azure.Core;
using Pulumi.Azure.ContainerService;
class MyStack : Stack
{
public MyStack()
{
string baseName = $"{Deployment.Instance.ProjectName}-{Deployment.Instance.StackName}";
string restricted
我正在尝试使用Pulumi创建一个新的EKS集群。在其中一个步骤中,我需要使用私有子网In。当我尝试使用VPCID获取I时,它给出错误 TSError: ⨯ Unable to compile TypeScript:
index.ts(9,2): error TS2322: Type 'Output<string>' is not assignable to type 'string'. 这就是我正在尝试做的事情 import * as pulumi from "@pulumi/pulumi";
import * as awsx f
我有一个用于keycloak的基本Pulumi构建,其中我设置了一个领域,创建了一个作用域,创建了一个客户机,并更新了我的客户端的作用域。
class RealmBuild : Stack
{
public RealmBuild()
{
var realm = new Realm("ExampleRealm-realm", new RealmArgs
{
RealmName = "ExampleRealm"
});
var recipemanagementSc
我试图使用Pulumi来创建一个AWS,它操作一个DynamoDB表,并由一个请求触发。
当我运行pulumi up时,我的配置工作得很好,但是当我运行Vitest时,我的测试通过了,但在非零和以下消息中退出:
⎯⎯⎯ Unhandled Rejection ⎯⎯⎯
Error: Could not find property info for real property on object: sdk
我可以看到错误来自,但我不知道是什么原因造成的。我是做错了什么,还是这是一个错误(在这种情况下,我可以创建一个问题)?
下面是一个总结,我认为有所有相关的信息,但有一个最小的回购演示问题 (Gi
我想反序列化一个字符串o JSON,并在一个字符串上输出数据:
public class Test
{
public int id { get; set; }
public string name { get; set; }
public long revisionDate { get; set; }
}
private void btnRetrieve_Click(object sender, EventArgs e)
{
string json = @"{""Name"":{""id""
我想把Dictionary转换成Json。键是一个字符串,值是CompaignModel的ICollection:
IDictionary<string, ICollection<BuzzCompaignModel>> BuzzCompaignByInterest ;
下面是包含BuzzCompaign模型的内容:
public class BuzzCompaignModel
{
public long BuzzCompaignId { get; set; }
public string Name { get; set; }
在错误下面中断pulumi up命令
error: could not get cloud url: failed to read Pulumi credentials file. Please re-run `pulumi login` to reset your credentials file: unexpected end of JSON input
当尝试运行pulumi login时,它会出现以下错误
error: could not determine current cloud: failed to read Pulumi credentials file. Please re
我想使用Pulumi在DigitalOcean上创建一些服务器。我有以下代码:
for i in range(0, amount):
name = f"droplet-{i+1}"
droplet = digitalocean.Droplet(
name,
image=_image,
region=_region,
size=_size,
)
pulumi.export(f"droplet-ip-{i+1}", droplet.ipv4_address)
这将正确地
当我跑起来的时候我犯了错误。
错误: 1234567890987.dkr.ecr.us-west-2.amazonaws.com/cloud/abcd-svc-4c4ac5e : pulumi_docker.docker.ResourceError:不提供图像摘要
普鲁米
版本:
pulumi==3.40.1
脉冲-aws=5.15.0
船坞=3.4.1
=0.21.0
Type Name Plan Info
pulumi:pulumi:Stack abcdef-staging-12345
我正在编写一个使用的烧瓶应用程序。我在跟踪。但是当我发送一个POST请求时,我得到了一个程序运行,没有可用的Pulumi引擎;使用pulumi 错误重新运行。自动化API不是应该单独运行CLI吗?
普鲁米CLI可供查阅:
pulumi版本v3.24.1
编辑:我遵循了pulumi示例,这是我的app.py
import pulumi
from flask import Flask, request, make_response, jsonify
from pulumi import automation as auto
import os
from pulumi_aws import s3
我有一门课:
public class AObject {
public string RawJson { get; set; }
public decimal Rating { get; set; }
public BObject BObject { get; set; }
}
public class BObject {
public string Id { get; set; }
}
问题是-如何将AObject作为有效的JSON对象返回。AObject.RawJson是一个字符串,它包含一个序列化的字符串JSON-object (来自远程API)。
如
我正在创建一个RPG游戏,我需要加载地图与瓷砖。我把平铺的部分拆了(我在用MonoGame.Extended)。但我需要地图的额外数据。我的计划是使用一个包含必要信息的JSON文件。但是,我希望它通过内容管道,因为它与贴图直接相关。
我尝试使用自定义内容管道扩展。它使用JSON.Net将JSON文件反序列化为Dictionary<string, dynamic>。但是,当我编译DLL文件并试图将其引用到管道工具时,管道工具总是会崩溃。
内容进口商:
using System;
using System.Collections.Generic;
using System.IO;
u
我使用Pulumi CLI和pulumi new azure-typescript创建了一个新的Pulumi Typescript程序,并创建了以下index.ts (基于新的):
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure-native";
const resourceGroup = new azure.resources.ResourceGroup("rg-spring-boot", {location: "West
考虑以下TypeScript类:
export class Spot {
public flight:number;
public dateAndTimes:Map<string,string>
public unitCost:number;
constructor(){
this.flight=0;
this.dateAndTimes= new Map<string,string>();
this.unitCost=0;
}
}
如何将Spot对象转换为JSON?
我尝试使