adventurous-garage-59192
09/08/2020, 2:50 AMobject
and invoke args don't accept Output<T>
.
var globalKv = Output
.Tuple(cloudInfra.RequireOutput("").Apply(x => (string) x), cloudInfra.RequireOutput("").Apply(x => (string) x))
.Apply(tuple =>
GetKeyVault.InvokeAsync(new GetKeyVaultArgs
{
Name = tuple.Item1,
ResourceGroupName = tuple.Item2
}
));
fresh-lifeguard-12682
09/09/2020, 4:55 PMfresh-lifeguard-12682
09/09/2020, 5:00 PMworried-city-86458
09/10/2020, 8:28 PMPulumi.Aws.Iam.GetPolicyDocument
but this has two side effects...
• Sid
is being passed as an empty string despite being a `string?`; I would expect not specifying this to omit the value
• I'm now working with an output which causes problems with preview not propagating the value; can this be handled better?adamant-advantage-95831
09/11/2020, 3:42 PMworried-city-86458
09/11/2020, 7:25 PMfresh-lifeguard-12682
09/13/2020, 3:21 AMfierce-memory-34976
09/14/2020, 9:35 AMworried-city-86458
09/15/2020, 3:26 AMvar cluster = new Cluster($"{prefix}-cluster",
new ClusterArgs
{
RoleArn = clusterRole.Arn,
Version = config.KubeVersion,
VpcConfig = new ClusterVpcConfigArgs { SubnetIds = subnetIds }
},
new CustomResourceOptions { DependsOn = clusterPolicies });
becomes:
var cluster = new Cluster($"{prefix}-cluster",
new()
{
RoleArn = clusterRole.Arn,
Version = config.KubeVersion,
VpcConfig = new ClusterVpcConfigArgs { SubnetIds = subnetIds }
},
new() { DependsOn = clusterPolicies });
But there is a problem that Input<T>
types don't play nice.
For example, trying to remove ClusterVpcConfigArgs
above causes a compiler error:worried-city-86458
09/15/2020, 3:35 AMworried-city-86458
09/15/2020, 5:46 AMfierce-memory-34976
09/17/2020, 12:23 PMRetry #5; creation failed: no matches for kind "Ingress" in version "<http://networking.k8s.io/v1|networking.k8s.io/v1>
var ingress = new Ingress("test-ingress", new Pulumi.Kubernetes.Types.Inputs.Networking.V1.IngressArgs
{
Metadata = new ObjectMetaArgs
{
Annotations = new InputMap<string>
{
{"<http://kubernetes.io/ingress.global-static-ip-name|kubernetes.io/ingress.global-static-ip-name>", "ip-dev" },
//{"<http://networking.gke.io/managed-certificates|networking.gke.io/managed-certificates>", "" }
}
},
Spec = new Pulumi.Kubernetes.Types.Inputs.Networking.V1.IngressSpecArgs
{
DefaultBackend = new Pulumi.Kubernetes.Types.Inputs.Networking.V1.IngressBackendArgs
{
Service = new Pulumi.Kubernetes.Types.Inputs.Networking.V1.IngressServiceBackendArgs
{
Name = "test-service-nodeportapi",
Port = new Pulumi.Kubernetes.Types.Inputs.Networking.V1.ServiceBackendPortArgs
{
Number = 80
}
}
}
}
},
new CustomResourceOptions
{
Provider = provider
});
I am working with GCP/GKEfierce-memory-34976
09/21/2020, 10:11 AMerror: creation of resource default/test-ingress-2ap83ye0 failed because the Kubernetes API server reported
that the apiVersion for this resource does not exist. Verify that any required CRDs have been created: no matches for ki
nd "Ingress" in version "<http://networking.k8s.io/v1|networking.k8s.io/v1>"
fierce-memory-34976
09/21/2020, 11:19 AMapiVersion: <http://cloud.google.com/v1|cloud.google.com/v1>
kind: BackendConfig
metadata:
name: my-backendconfig
spec:
healthCheck:
checkIntervalSec: interval
timeoutSec: timeout
healthyThreshold: health-threshold
unhealthyThreshold: unhealthy-threshold
type: protocol
requestPath: path
port: port
Is it possible to create such resource with pulumi C# and if yes, what's it's name and how do i tell the ingress resource to use this config? i need this to customize the health check endpoint for my ingress configurationfierce-memory-34976
09/23/2020, 11:02 AMenv: [
{
name: "DD_KUBERNETES_KUBELET_HOST",
valueFrom: {
fieldRef: {
fieldPath: "status.hostIP",
},
},
},
Is it possible to use "valueFrom" and how in Pulumi in C#?fierce-memory-34976
09/23/2020, 1:06 PMnice-scientist-89715
09/23/2020, 8:05 PMgorgeous-cpu-53034
09/24/2020, 1:23 PMable-rose-67471
09/25/2020, 8:11 AMstatic _Task_<int> Main() => Deployment.RunAsync<_AppStack_>();
The AppStack
class is just one of the services for my applications supporting infrastructure. If I have other services, for example PaymentApiStack
, SmtpStack
, etc; is it possible to have multiple stacks in one Pulumi program or would I have to create many programs to achieve this?
Or am I misunderstanding the purpose of a Stacks?miniature-leather-70472
09/25/2020, 4:26 PMbored-activity-40468
09/25/2020, 9:15 PMfresh-lifeguard-12682
10/02/2020, 8:01 PMconst customDomain = new CDNCustomDomainResource("cdn-custom-domain", {
resourceGroupName: resourceGroup.name,
// Ensure that there is a CNAME record for demo <http://pointing.pulumi.com|pointing.pulumi.com> to <http://demopulumi.azureedge.net|demopulumi.azureedge.net>.
// You would do that in your domain registrar's portal.
customDomainHostName: "<http://demo.pulumi.com|demo.pulumi.com>",
profileName: cdn.name,
endpointName: endpoint.name,
// This will enable HTTPS through Azure's one-click automated certificate deployment.
// The certificate is fully managed by Azure from provisioning to automatic renewal
// at no additional cost to you.
httpsEnabled: true,
}, { parent: endpoint });
sticky-jordan-27156
10/06/2020, 8:33 PM"West Europe"
in https://github.com/nojaf/apim/commit/7cb09a7f2b14c28a5b8e3655a5c7df7282a3a7d0#diff-c018afa905d693ab55e41476844fd5d0R24 for example.chilly-hairdresser-56259
10/08/2020, 6:47 PMbored-activity-40468
10/12/2020, 6:14 PMfresh-summer-65887
10/14/2020, 8:14 PMOutputstring
as a stack output and failing hard 😞. The error I get with this is:
System.InvalidOperationException: [Output] Global.GlobalStack.UserPasswords contains invalid type Pulumi.Output`1[[System.String, System.Private.CoreLib, Version=4.0.0.0
, Culture=neutral, PublicKeyToken=7cec85d7bea7798e]]:
The only generic types allowed are ImmutableArray... and ImmutableDictionarystring, ...`.
at Pulumi.Serialization.Converter.CheckTargetType(String context, Type targetType, HashSet`1 seenTypes)
at Pulumi.Serialization.Converter.CheckTargetType(String context, Type targetType, HashSet`1 seenTypes)
at Pulumi.Serialization.OutputCompletionSource.InitializeOutputs(Resource resource)
at Pulumi.Deployment.Pulumi.IDeploymentInternal.ReadOrRegisterResource(Resource resource, ResourceArgs args, ResourceOptions options)
at Pulumi.Resource..ctor(String type, String name, Boolean custom, ResourceArgs args, ResourceOptions options)
at Pulumi.ComponentResource..ctor(String type, String name, ComponentResourceOptions options)
at Pulumi.Stack..ctor(StackOptions options)
at Global.GlobalStack..ctor() in C:\dev\logicality\cloud-infra\aws\global\Global\GlobalStack.cs:line 13
wet-noon-14291
10/14/2020, 9:59 PMDeployment.Stack.Name
that would give me `Dev`/`Test`... depending on the name?bored-activity-40468
10/17/2020, 3:37 PMred-lighter-44012
10/21/2020, 10:16 AMred-lighter-44012
10/21/2020, 2:15 PM