bitter-application-91815
09/22/2020, 5:42 PMbitter-application-91815
09/22/2020, 5:42 PMcurved-cartoon-90054
09/22/2020, 6:45 PMwet-noon-14291
09/22/2020, 8:28 PMlet tenant =
Tenant("my-pulumi-tenant",
TenantArgs(
AllowedLogoutUrls = inputList [input "<http://site/ut>"],
ChangePassword =
input (
Inputs.TenantChangePasswordArgs(
Enabled = input true,
Html = input "<html></html>"
)),
DefaultRedirectionUri = input "<https://site/redirect>",
FriendlyName = input "My Tenant name"
))
dict [
"id", tenant.Id :> obj
"name", tenant.FriendlyName :> obj
]
When I run pulumi everything seems to work out just fine, but I can't see any tenants when I log into auth0. Does anyone have any clue of what is going on?wet-noon-14291
09/22/2020, 8:45 PMbitter-application-91815
09/22/2020, 9:28 PM// make sure to
_, err = yaml.NewConfigGroup(ctx, fmt.Sprintf("axiomdb-yaml-config-group-%s", w.targetEnv), &yaml.ConfigGroupArgs{
Files: []string{yamlSctsFile}},
)
if err != nil {
return err
}
bitter-application-91815
09/22/2020, 9:29 PMyamlSctsFile
is the path to the secretsFile, base64'd `
.docker/config.json
bitter-application-91815
09/22/2020, 9:29 PMbitter-application-91815
09/22/2020, 9:29 PM<https://stackoverflow.com/questions/59882357/pulumi-how-to-pull-a-docker-image-from-a-private-registry>
bitter-application-91815
09/22/2020, 9:30 PMbitter-application-91815
09/22/2020, 9:30 PM* decoding YAML: rpc error: code = Unknown desc = invocation of kubernetes:yaml:decode returned an error: error unmarshaling JSON: while decoding JSON: json: cannot unmarshal string into Go value of type map[string]interface {}
exit status 1
clever-plumber-29709
09/23/2020, 12:09 AMlittle-cartoon-10569
09/23/2020, 8:05 AMelegant-island-39916
09/23/2020, 9:52 AMFile "/home/user/Projects/deepseer/deployments/venv/lib/python3.7/site-packages/pulumi_kubernetes/yaml.py", line 531, in <lambda>
CustomResourceDefinition(f"{x}", opts, **obj)))]
TypeError: __init__() got an unexpected keyword argument 'status'
It seems pulumi fails to parse the gitlab helm chart somehow
How can I work around this issue? (details in replies)hundreds-receptionist-31352
09/23/2020, 6:12 PMconst value = new customComponentResource.something(); -> got an Output<String>
let lb2 = pulumi.interpolate`${value}`
export const lb2 -> I see the value ok.
but customfunction(lb2) -> I got an lb2 Output<String> I need string.
bitter-dentist-28132
09/23/2020, 8:15 PMbroad-morning-54433
09/23/2020, 9:12 PMoutput
method on azure.servicebus.Queue
? And my follow up question.... how can output bindings be configured on Service Bus Queues?high-wire-68732
09/23/2020, 10:44 PMerror: [WARN] A duplicate Security Group rule was found
Multiple times, once for each Listener.
Any idea how to be able to achieve this?
Here's a sample of what we are trying to do:
import * as awsx from '@pulumi/awsx';
const vpc = new awsx.ec2.Vpc('test-vpc', {
vpcId: '...',
});
// LOAD BALANCER DEFINITION
const lb = new awsx.lb.ApplicationLoadBalancer('testLB', {
vpc,
subnets: [
// ...
],
external: true,
tags: {
'Name': 'testLB'
},
});
// FIRST APP DEFINITION
const targetGroup1 = lb.createTargetGroup('testTG1', {
port: 80,
loadBalancer: lb,
healthCheck: {
path: '/api',
},
tags: {
'Name': 'testTG1'
},
});
const httpListener1 = lb.createListener('testHTTP1', {
defaultActions: [{
fixedResponse: {
contentType: 'text/plain',
statusCode: '404',
},
type: 'fixed-response',
}],
loadBalancer: lb,
port: 80,
protocol: 'HTTP',
external: true,
});
httpListener1.addListenerRule('testListener1', {
actions: [{
targetGroupArn: targetGroup1.targetGroup.arn,
type: 'forward',
}],
conditions: [
{
pathPattern: {
values: [
'/api/*',
],
},
},
],
priority: 200,
});
new awsx.ecs.FargateService('api', {
desiredCount: 1,
subnets: [
// ...
],
taskDefinitionArgs: {
tags: {
'Name': 'api'
},
containers: {
adminBackend: {
image: '...',
memory: 512,
portMappings: [
targetGroup1,
],
},
},
},
});
// SECOND APP DEFINITION
const targetGroup2 = lb.createTargetGroup('testTG2', {
port: 80,
loadBalancer: lb,
healthCheck: {
path: '/ui',
},
tags: {
'Name': 'testTG2'
},
});
const httpListener2 = lb.createListener('testHTTP2', {
defaultActions: [{
fixedResponse: {
contentType: 'text/plain',
statusCode: '404',
},
type: 'fixed-response',
}],
loadBalancer: lb,
port: 80,
protocol: 'HTTP',
external: true,
});
httpListener2.addListenerRule('testListener2', {
actions: [{
targetGroupArn: targetGroup2.targetGroup.arn,
type: 'forward',
}],
conditions: [
{
pathPattern: {
values: [
'/*',
],
},
},
],
priority: 200,
});
new awsx.ecs.FargateService('ui', {
desiredCount: 1,
subnets: [
// ...
],
taskDefinitionArgs: {
tags: {
'Name': 'ui'
},
containers: {
adminBackend: {
image: '...',
memory: 512,
portMappings: [
targetGroup2,
],
},
},
},
});
clever-plumber-29709
09/24/2020, 4:16 AMhelpful-processor-86468
09/24/2020, 11:08 AMerror: Exception calling application: code() takes at most 15 arguments (16 given)
- this is what I'm getting when using dynamic resource when trying to do pulumi destroy
. It was working fine for some time and now it's broken without any code change. What is happening?gorgeous-cpu-53034
09/24/2020, 12:07 PMbillions-greece-30724
09/24/2020, 1:52 PMPS C:\GitRepos\iac-pulumi\src\nvp-az-identity> pulumi preview
Previewing update (nvoicepay/production)
View Live: <https://app.pulumi.com/***/***-az-identity/production/previews/****>
Type Name Plan Info
pulumi:pulumi:Stack ***-az-identity-production 1 error
+ ├─ pulumi:providers:azuread Production create
= └─ azure:keyvault:KeyVault ***-prod-global-keyvault import 1 error
Diagnostics:
pulumi:pulumi:Stack (***-az-identity-production):
error: preview failed
azure:keyvault:KeyVault (***-prod-global-keyvault):
error: Preview failed: unrecognized resource type (Read): azure:keyvault/keyVault:KeyVault
billions-greece-30724
09/24/2020, 1:53 PMvar keyVault = new KeyVault(globalRegion.Configurator.GetKeyVaultName(), new KeyVaultArgs
{
Name = globalRegion.Configurator.GetKeyVaultName(),
Location = globalResourceGroup.Resource.Location,
ResourceGroupName = globalResourceGroup.Resource.Name,
TenantId = globalRegion.SharedConfig.TenantId,
SkuName = "standard",
//acc
EnabledForDiskEncryption = true,
EnabledForDeployment = true,
EnabledForTemplateDeployment = true,
}, new CustomResourceOptions
{
ImportId = NvpConfig.GlobalKeyVaultResourceId,
Provider = azProvider
}
);
red-energy-90711
09/24/2020, 2:41 PMclever-plumber-29709
09/24/2020, 3:17 PMhelpful-processor-86468
09/25/2020, 7:11 AMmammoth-insurance-9770
09/25/2020, 10:27 AMopts
argument which is then passed to the superconstructor:
class MyComponent(pulumi.ComponentResource):
def __init__(self, name, opts = None):
super().__init__('pkg:index:MyComponent', name, None, opts)
I was hopeful that this would cause Pulumi to apply those opts
to all the resources inside the ComponentResource
, so that if for example I wanted to use a custom provider, I only have to specify when creating my compontent resource:
my_component = MyComponent(opts=ResourceOptions(provider=my_provider))
But this doesn't seem to be the case. So, what is the appropriate way of propagating these options onward? Should I pass opts
into every child resource:
class MyComponent(pulumi.ComponentResource):
def __init__(self, name, opts = None):
super().__init__('pkg:index:MyComponent', name, None, opts)
my_resource1 = ResourceA(opts=opts)
my_resource2 = ResourceB(opts=opts)
Although, this makes life more difficult when I need to add additional fields to the ResourceOptions
of certain resources, such as depends_on
.
Or, should I pick out the fields that I want:
class MyComponent(pulumi.ComponentResource):
def __init__(self, name, opts = None):
super().__init__('pkg:index:MyComponent', name, None, opts)
my_resource1 = ResourceA(opts=ResourceOptions(provider=opts.provider))
my_resource2 = ResourceB(opts=ResourceOptions(provider=opts.provider))
which is OK, but I am concerned I will then by missing options which were supposed to be progagated down the tree. What was the intended usage here?
Thanks in advance 🙂proud-pizza-80589
09/25/2020, 12:34 PMconst bucket = new aws.s3.Bucket("my-bucket");
gifted-student-18589
09/25/2020, 3:50 PMmillions-furniture-75402
09/25/2020, 4:54 PM// systemBackupLambdaId = backupLambda.id exported from the other project
const systemBackupLambda = aws.lambda.Function.get("system-backup-lambda", systemBackupLambdaId);
I’m getting an error I don’t understand:
Diagnostics:
pulumi:pulumi:Stack (monitoring-service-sandbox):
error: preview failed
aws:lambda:Function (system-backup-lambda):
error: Preview failed: refreshing urn:pulumi:sandbox::monitoring-service::aws:lambda/function:Function::system-backup-lambda: 1 error occurred:
* InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, GetFunctionInput.FunctionName.
millions-furniture-75402
09/25/2020, 4:54 PM// systemBackupLambdaId = backupLambda.id exported from the other project
const systemBackupLambda = aws.lambda.Function.get("system-backup-lambda", systemBackupLambdaId);
I’m getting an error I don’t understand:
Diagnostics:
pulumi:pulumi:Stack (monitoring-service-sandbox):
error: preview failed
aws:lambda:Function (system-backup-lambda):
error: Preview failed: refreshing urn:pulumi:sandbox::monitoring-service::aws:lambda/function:Function::system-backup-lambda: 1 error occurred:
* InvalidParameter: 1 validation error(s) found.
- minimum field size of 1, GetFunctionInput.FunctionName.
const bastionEc2Instance = aws.ec2.Instance.get("bastion-ec2", bastionInstanceId);
const systemBackupLambda = aws.lambda.Function.get("system-backup-lambda", systemBackupLambdaId, {
name: systemBackupLambdaId
});