creamy-fall-88031
03/24/2022, 9:56 AMconst publicIPAddress = new azure_native.network.PublicIPAddress(`ipaddr-${environmentLabel}`, {
idleTimeoutInMinutes: 10,
publicIPAddressVersion: "IPv4",
publicIPAllocationMethod: "Static",
publicIpAddressName: `ip-lb-testaks-${environmentLabel}`,
resourceGroupName: `mc_${managedClusterName}`,
sku: {
name: "Standard",
tier: "Global",
},
dnsSettings: {
//domainnamelabel.location.cloudapp.azure.com => <http://testaks.northcentralus.cloudapp.azure.com|testaks.northcentralus.cloudapp.azure.com>
domainNameLabel: "testaks"
}
});
This is how I try to inject the property in containerservice.ManagedCluster constructor:
networkProfile: {
networkPlugin: "azure",
serviceCidr: "10.10.0.0/24",
dnsServiceIP: "10.10.0.10",
dockerBridgeCidr: "172.17.0.1/16",
loadBalancerProfile: {
outboundIPs: {
publicIPs: publicIPAddress.id
}
},
},
Right out of the box I get the following error on the publicIPs: publicIPAddress.id
line:
Type 'Output<string>' is not assignable to type 'Input<ResourceReferenceArgs>'.
Type 'Output<string>' is not assignable to type 'OutputInstance<ResourceReferenceArgs>'.
Types of property 'apply' are incompatible.
Type '{ <U>(func: (t: string) => Promise<U>): Output<U>; <U>(func: (t: string) => OutputInstance<U>): Output<U>; <U>(func: (t: string) => U): Output<...>; }' is not assignable to type '{ <U>(func: (t: ResourceReferenceArgs) => Promise<U>): Output<U>; <U>(func: (t: ResourceReferenceArgs) => OutputInstance<U>): Output<...>; <U>(func: (t: ResourceReferenceArgs) => U): Output<...>; }'.
Types of parameters 'func' and 'func' are incompatible.
Types of parameters 't' and 't' are incompatible.
Type 'string' has no properties in common with type 'ResourceReferenceArgs'.ts(2322)
Can anyone please provide me with some clarity what I'm doing wrong here?full-receptionist-92539
03/24/2022, 10:44 AMdb_prod = snowflake.Database(
"MY_DB",
name="MY_DB"
)
Schema code
schema = snowflake.Schema(
f"{db_prod.name}|MY_SCHEMA",
name="MY_SCHEMA",
database=db_prod,
is_managed=True
)
My problem is that I cannot get the name of my database based on the db_prod
object. I know that the object has not been evaluated yet, but is there any way to extract the name of my database and use it in my schema?
My naive solution is to assign the name of the database in a variable and then use the variable in both places.flaky-yak-39108
03/24/2022, 11:41 AMastonishing-notebook-93377
03/24/2022, 12:11 PMastonishing-notebook-93377
03/24/2022, 1:08 PMdry-salesmen-32588
03/25/2022, 1:26 PMextraVolumes:
- type: 'secret'
name: 'creds'
It doesn't really fit the "dict" pattern. that the examples used on the website/github is referring tocreamy-fall-88031
03/25/2022, 5:16 PMinterface ManagedClusterLoadBalancerProfileOutboundIPsArgs {
/**
* A list of public IP resources.
*/
publicIPs?: pulumi.Input<pulumi.Input<inputs.containerservice.ResourceReferenceArgs>[]>;
so... publicIPs: what_exactly
??
The following is clearly not correct:
{
publicIPs: ipresource.id
}
chilly-plastic-75584
03/28/2022, 2:47 AMchilly-plastic-75584
03/28/2022, 7:08 PMwonderful-motherboard-66151
03/29/2022, 8:34 AMerror: Could not connect to server: Error 9999: An internal error has occurred. Please retry or report your issues.
I just found a few resources explaining some SSL stuff⦠But even if I disable SSL I get the same errorā¦blue-pharmacist-31672
03/29/2022, 3:56 PMnew QueuePolicy(
$"policy-name",
new QueuePolicyArgs
{
QueueUrl = queue.Id,
Policy = policyJson
},
new CustomResourceOptions
{
Provider = provider,
Protect = isQueueProtected,
DependsOn = queue,
CustomTimeouts = new CustomTimeouts
{
Create = TimeSpan.FromMinutes(30),
Update = TimeSpan.FromMinutes(30),
}
}
);
However the error message from the pulumi deploy is where the timeout is echoed as 2m0s
aws:sqs:QueuePolicy (policy-name):
error: 1 error occurred:
* creating urn:pulumi:*******: 1 error occurred:
* error waiting for SQS Queue Policy (<https://sqs.us-west-1.amazonaws.com/*****>) to be set: timeout while waiting for state to become 'equal' (last state: 'notequal', timeout: 2m0s)
Really appreciate any advice on this. Thank you.rough-oyster-77458
03/29/2022, 4:42 PMresource1
and resource2
.
resource2
depends on resource1
, but there's no explicit relationship.
How can I ask Pulumi to deploy resource1
first and resource2
afterwards?bright-receptionist-28471
03/29/2022, 9:18 PMgcp:project
and <namespace>:project
set in configchilly-plastic-75584
03/29/2022, 11:23 PMbright-horse-50102
03/30/2022, 12:51 AMrough-oyster-77458
03/30/2022, 6:36 PMparent=parent_id
to a resource Pulumi wants to delete this resource? Is that expected behaviour?chilly-plastic-75584
03/30/2022, 7:34 PMkind-island-70054
03/31/2022, 10:52 AM// Define Semaphore SA access rights
["roles/run.developer"].map(
(role) =>
new gcp.projects.IAMMember(`semaphoreci-${role}`, {
project: configs.gcp.project,
role,
member: pulumi.interpolate`serviceAccount:${configs.semaphore.serviceAccountEmail}`,
})
);
It fails to deploy though when I try to get the project number this way: gcp.organizations.getProject().then((project) => project.number)
I tried adding several roles to my service account so that it can execute that command but it keeps failing saying that I need to allow the Cloud Resource Manager API (it is already enabled). Anyone knows how to allow a service account from another project to be able to execute that command?quaint-river-59320
03/31/2022, 3:11 PM//Create RDS Secret
var config = new Pulumi.Config();
string dbUser = config.Get("rdsUser").ToString();
var password = new Random.RandomPassword("chpm-rds-password", new Random.RandomPasswordArgs
{
Length = 16,
Special = true
});
var rdsSecret = new AwsClassic.SecretsManager.Secret("CHPM-DB-Secret");
var secretObject = new
{
UserName = dbUser,
Password = password.Result,
Endpoint = "test"
};
brave-doctor-12316
04/01/2022, 7:03 PMcalm-tent-21096
04/03/2022, 6:40 PMvar languageIdentity = new AzureNative.ManagedIdentity.UserAssignedIdentity(name, new AzureNative.ManagedIdentity.UserAssignedIdentityArgs
{
ResourceGroupName = _cognitiveRg.Name,
ResourceName = name
});
languageIdentity.Id.Apply(id =>
{
var langStorageAssignment = new AzureNative.Authorization.RoleAssignment("lang-storage-assignment", new AzureNative.Authorization.RoleAssignmentArgs
{
PrincipalType = AzureNative.Authorization.PrincipalType.ServicePrincipal,
PrincipalId = languageIdentity.PrincipalId,
RoleDefinitionId = "/subscriptions/xxx/providers/Microsoft.Authorization/roleDefinitions/ba92f5b4-2d11-453d-a403-e96b0029c9fe", // storage blob data contributor
Scope = _coreRef.GetOutput("StorageAccountId").Apply(sa => Convert.ToString(sa) ?? string.Empty)
});
var searchContributorAssignment = new AzureNative.Authorization.RoleAssignment("lang-search-contributor", new AzureNative.Authorization.RoleAssignmentArgs
{
PrincipalType = AzureNative.Authorization.PrincipalType.ServicePrincipal,
PrincipalId = languageIdentity.PrincipalId,
RoleDefinitionId = "/subscriptions/xxx/providers/Microsoft.Authorization/roleDefinitions/b24988ac-6180-42a0-ab88-20f7382dd24c",
Scope = _searchService?.Id ?? throw new Exception("Search Service not available")
});
language = new Account(name, new AccountArgs
{
Kind = "TextAnalytics",
AccountName = name,
Identity = new AzureNative.CognitiveServices.Inputs.IdentityArgs
{
Type = AzureNative.CognitiveServices.IdentityType.UserAssigned,
UserAssignedIdentities =
{
{
id,
new AzureNative.CognitiveServices.Inputs.UserAssignedIdentityArgs { PrincipalId = languageIdentity.PrincipalId }
}
}
},
// ...
calm-tent-21096
04/03/2022, 6:41 PMlanguage
doesn't work, but it's the only way I can see that compilescalm-tent-21096
04/03/2022, 6:41 PMimportant-sugar-9877
04/04/2022, 12:08 PMstocky-butcher-62635
04/04/2022, 3:33 PMcsproj
that looks like this. What do I do with it?stocky-butcher-62635
04/04/2022, 3:35 PMC:\Users\Richard Barraclough\.pulumi\bin
to my %PATH
but running the programme just says
System.InvalidOperationException: 'Program run without the Pulumi engine available; re-run using theCLI'pulumi
stocky-butcher-62635
04/04/2022, 3:36 PMstocky-butcher-62635
04/04/2022, 3:53 PMpulumi
command to read.
And it needs AzureCLI installing
So what about the yml files? Thre seems to be some information that's written in C# and some more information that's written in yml?acoustic-tiger-77630
04/04/2022, 6:36 PMclever-glass-42863
04/04/2022, 9:57 PMpulumi up
command into the dotnet Program itself? Are all the extra command line arguments passed through passively? Or will we need to do something else to do that; for example just rely on environment variables.
internal class Program
{
static Task<int> Main()
{
// I want to parse command-line args here, but does pulumi up pass them through?
// Or just use Environment variables?
return Deployment.RunAsync<MyCoolStack>();
}
}